Rivet API documentation
![]() |
Rivet 4.1.3
|
Projection.hh
118 // /// @todo Does it really make sense to restrict Projections to particular beam configs? Do we use this in practice?
201 virtual unique_ptr<Projection> clone() const { return unique_ptr<Projection>(new clsname(*this)); }
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
static Log & getLog(const std::string &name)
Projection(const Projection &)=default
Explicit (but not careful!) copy construction (required for clone()).
virtual Projection & operator=(const Projection &)=delete
Suppress copy assignment.
virtual CmpState compare(const Projection &p) const =0
Cmp< Projection > mkPCmp(const Projection &otherparent, const std::string &pname) const
bool valid() const
Get the state of the projetion.
Definition Projection.hh:67
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
virtual std::string name() const
Get the name of the projection.
Definition Projection.hh:62
bool before(const Projection &p) const
Log & getLog() const
Get a Log object based on the getName() property of the calling projection object.
Definition Projection.hh:142
virtual ~Projection()=default
Virtual destructor for safe inheritability.
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
virtual void project(const Event &e)=0
bool failed() const
Get the state of the projetion.
Definition Projection.hh:72
void fail()
Set the projection in an unvalid state.
Definition Projection.hh:153
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
Definition MC_CENT_PPB_Projections.hh:10
Generated on for Rivet by
