2 #ifndef RIVET_Projection_HH 3 #define RIVET_Projection_HH 5 #include "Rivet/Rivet.hh" 6 #include "Rivet/Projection.fhh" 7 #include "Rivet/ProjectionApplier.hh" 8 #include "Rivet/ProjectionHandler.hh" 9 #include "Rivet/Constraints.hh" 10 #include "Rivet/ParticleName.hh" 11 #include "Rivet/Event.fhh" 12 #include "Rivet/Tools/Logging.hh" 13 #include "Rivet/Cmp.fhh" 98 virtual const std::set<PdgIdPair>
beamPairs()
const;
101 virtual std::string
name()
const {
108 _beamPairs.insert(PdgIdPair(beam1, beam2));
115 string logname =
"Rivet.Projection." +
name();
143 set<PdgIdPair> _beamPairs;
152 inline bool std::less<const Rivet::Projection *>::operator()(
const Rivet::Projection* x,
159 #include "Rivet/Cmp.hh" void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Definition: MC_JetAnalysis.hh:9
Projection()
The default constructor.
Definition: Projection.cc:10
static Log & getLog(const std::string &name)
Definition: Logging.cc:55
virtual int compare(const Projection &p) const =0
virtual void project(const Event &e)=0
Projection & addPdgIdPair(PdgId beam1, PdgId beam2)
Add a colliding beam pair.
Definition: Projection.hh:107
Cmp< Projection > mkPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:57
Common base class for Projection and Analysis, used for internal polymorphism.
Definition: ProjectionApplier.hh:18
Specialization of Cmp for checking the ordering of two {Projection}s.
Definition: Cmp.hh:112
virtual std::string name() const
Get the name of the projection.
Definition: Projection.hh:101
virtual const Projection * clone() const =0
Clone on the heap.
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
bool before(const Projection &p) const
Definition: Projection.cc:28
virtual const std::set< PdgIdPair > beamPairs() const
Definition: Projection.cc:39
Base class for all Rivet projections.
Definition: Projection.hh:28
Log & getLog() const
Get a Log object based on the getName() property of the calling projection object.
Definition: Projection.hh:114
virtual ~Projection()
The destructor.
Definition: Projection.cc:18