Rivet API documentation
![]() |
Rivet 4.1.3
|
ProjectionApplier.hh
96 [&name](const std::pair<std::shared_ptr<Projection>, std::string> &Qmember) {return Qmember.second == name;});
102 MSG_ERROR("Projection " << name << " not found in declQueue of " << this << " (" << this->name() << ")");
119 apply(const Event& evt, const Projection& proj) const { return pcast<PROJ>(_apply(evt, proj)); }
129 apply(const Event& evt, const std::string& name) const { return pcast<PROJ>(_apply(evt, name)); }
134 apply(const std::string& name, const Event& evt) const { return pcast<PROJ>(_apply(evt, name)); }
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
static Log & getLog(const std::string &name)
const Projection & getProjection(const std::string &name) const
Definition ProjectionApplier.hh:87
const PROJ & get(const std::string &name) const
Definition ProjectionApplier.hh:83
void setProjectionHandler(ProjectionHandler &projectionHandler) const
const PROJ & getProjection(const std::string &name) const
Definition ProjectionApplier.hh:71
std::set< ConstProjectionPtr > getProjections() const
Get the contained projections, including recursion.
Definition ProjectionApplier.hh:45
std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > apply(const std::string &name, const Event &evt) const
Apply the supplied projection on event evt (convenience arg-reordering alias).
Definition ProjectionApplier.hh:134
ProjectionHandler & getProjHandler() const
Get a reference to the ProjectionHandler for this thread.
Definition ProjectionApplier.hh:151
std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > apply(const Event &evt, const Projection &proj) const
Apply the supplied projection on event evt.
Definition ProjectionApplier.hh:119
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:184
std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > apply(const Event &evt, const PROJ &proj) const
Apply the supplied projection on event evt (user-facing alias).
Definition ProjectionApplier.hh:124
bool hasProjection(const std::string &name) const
Does this applier have a projection registered under the name name?
Definition ProjectionApplier.hh:55
void markAsOwned() const
Mark this object as owned by a proj-handler.
Definition ProjectionApplier.hh:140
std::set< ConstProjectionPtr > getImmediateChildProjections() const
Get the contained projections, excluding recursion.
Definition ProjectionApplier.hh:50
std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > apply(const Event &evt, const std::string &name) const
Apply the supplied projection on event evt (user-facing alias).
Definition ProjectionApplier.hh:129
const PROJ & getProjectionFromDeclQueue(const std::string name) const
Definition ProjectionApplier.hh:94
const PROJ & declare(const std::string &name, const PROJ &proj) const
Register a contained projection (user-facing, arg-reordered version).
Definition ProjectionApplier.hh:192
The projection handler is a central repository for projections to be used in a Rivet analysis run.
Definition ProjectionHandler.hh:43
const Projection & getProjection(const ProjectionApplier &parent, const string &name) const
set< const Projection * > getChildProjections(const ProjectionApplier &parent, ProjDepth depth=SHALLOW) const
bool hasProjection(const ProjectionApplier &parent, const string &name) const
Check if there is a name projection registered by parent.
#define MSG_ERROR(x)
Highest level messaging for serious problems, using MSG_LVL.
Definition Logging.hh:189
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
