Rivet API documentation
![]() |
Rivet 4.1.3
|
SmearedParticles.hh
85 const Particles& truthparticles = apply<ParticleFinder>(e, "TruthParticles").particlesByPt(); //truthParticles();
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
const FourMomentum & mom() const
Get the equivalent momentum four-vector (const) (alias).
Definition ParticleBase.hh:39
size_t size() const
Count the final-state particles.
Definition ParticleFinder.hh:51
ParticleFinder(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
Definition ParticleFinder.hh:20
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition Particle.hh:45
virtual void addConstituent(const Particle &c, bool addmom=false)
Add a single direct constituent to this particle.
const PROJ & getProjection(const std::string &name) const
Definition ProjectionApplier.hh:71
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
Cmp< Projection > mkPCmp(const Projection &otherparent, const std::string &pname) const
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
SmearedParticles(const ParticleFinder &pf, Args &&... effSmearFns)
Constructor with a variadic ordered list of efficiency and smearing function args.
Definition SmearedParticles.hh:23
const Particles truthParticles() const
Get the truth particles (sorted by pT).
Definition SmearedParticles.hh:122
void project(const Event &e)
Perform the particle finding & smearing calculation.
Definition SmearedParticles.hh:84
RIVET_DEFAULT_PROJ_CLONE(SmearedParticles)
Clone on the heap.
void reset()
Reset the projection. Smearing functions will be unchanged.
Definition SmearedParticles.hh:127
CmpState compare(const Projection &p) const
Definition SmearedParticles.hh:56
SmearedParticles(const ParticleFinder &pf, const Cut &c, Args &&... effSmearFns)
Constructor with a variadic ordered list of efficiency and smearing function args.
Definition SmearedParticles.hh:34
Jets select(const Jets &jets, const Cut &c)
Filter a jet collection in-place to the subset that passes the supplied Cut.
Definition JetUtils.hh:157
#define MSG_TRACE(x)
Lowest-level, most verbose messaging, using MSG_LVL.
Definition Logging.hh:180
#define MSG_DEBUG(x)
Debug messaging, not enabled by default, using MSG_LVL.
Definition Logging.hh:182
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
T getEnvParam(const std::string name, const T &fallback)
Get a parameter from a named environment variable, with automatic type conversion.
Definition Utils.hh:874
Definition MC_CENT_PPB_Projections.hh:10
Cmp< T > cmp(const T &t1, const T &t2)
Global helper function for easy creation of Cmp objects.
Definition Cmp.hh:255
STL namespace.
Functor for simultaneous efficiency-filtering and smearing of Particles.
Definition ParticleSmearingFunctions.hh:58
Generated on for Rivet by
