MergedFinalState.hh
// -*- C++ -*-
#ifndef RIVET_MergedFinalState_HH
#define RIVET_MergedFinalState_HH
#include "Rivet/Tools/Logging.hh"
#include "Rivet/Rivet.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
namespace Rivet {
class MergedFinalState : public FinalState {
public:
MergedFinalState(const FinalState& fspa, const FinalState& fspb) {
setName("MergedFinalState");
addProjection(fspa, "FSA");
addProjection(fspb, "FSB");
}
virtual const Projection* clone() const {
return new MergedFinalState(*this);
}
protected:
void project(const Event& e);
int compare(const Projection& p) const;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet::MergedFinalState::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: MergedFinalState.hh:29
Rivet::MergedFinalState::compare
int compare(const Projection &p) const
Compare projections.
Definition: MergedFinalState.cc:11
Rivet::Event
Definition: Event.hh:22
Rivet::MergedFinalState
Get final state particles merged from two FinalState projections.
Definition: MergedFinalState.hh:16
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::MergedFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Definition: MergedFinalState.cc:17