SmearedParticles.hh 21 vector<ParticleEffSmearFn>& toEffSmearFns(vector<ParticleEffSmearFn>& v, const T& first, ARGS... args) { 148 if (peff <= 0) { keep = false; break; } //< no need to roll expensive dice (and we deal with -ve probabilities, just in case) 149 if (peff < 1 && rand01() > peff) { keep = false; break; } //< roll dice (and deal with >1 probabilities, just in case) void setName(const std::string &name) Used by derived classes to set their name. Definition: Projection.hh:133 Definition: ALICE_2010_I880049.cc:13 DEFAULT_RIVET_PROJ_CLONE(SmearedParticles) Clone on the heap. SmearedParticles(const ParticleFinder &pf, const ParticleSmearFn &smearFn, const ParticleEffFn &effFn, const Cut &c=Cuts::open()) Constructor with a smearing function followed by an efficiency function. Definition: SmearedParticles.hh:73 SmearedParticles(const ParticleFinder &pf, double eff, const Cut &c=Cuts::open()) Constructor with const efficiency. Definition: SmearedParticles.hh:38 SmearedParticles(const ParticleFinder &pf, const ParticleEffFn &effFn, const Cut &c=Cuts::open()) Constructor with an efficiency function. Definition: SmearedParticles.hh:45 const FourMomentum & mom() const Get equivalent single momentum four-vector (const) (alias). Definition: ParticleBase.hh:39 virtual void addConstituent(const Particle &c, bool addmom=false) Add a single direct constituent to this particle. Definition: Particle.cc:15 void reset() Reset the projection. Smearing functions will be unchanged. Definition: SmearedParticles.hh:160 SmearedParticles(const ParticleFinder &pf, const vector< ParticleEffSmearFn > &effSmearFns, const Cut &c=Cuts::open()) Constructor with an ordered list of efficiency and/or smearing functions. Definition: SmearedParticles.hh:80 SmearedParticles(const ParticleFinder &pf, const ParticleSmearFn &smearFn, double eff, const Cut &c=Cuts::open()) Constructor with a smearing function followed by const efficiency. Definition: SmearedParticles.hh:59 Particles particlesByPt(const Cut &c=Cuts::open()) const Definition: ParticleFinder.hh:100 Particle representation, either from a HepMC::GenEvent or reconstructed. Definition: Particle.hh:18 Base class for projections which return subsets of an event's particles. Definition: ParticleFinder.hh:11 Functor for simultaneous efficiency-filtering and smearing of Particles. Definition: ParticleSmearingFunctions.hh:55 Definition: Event.hh:22 Cmp< Projection > mkPCmp(const Projection &otherparent, const std::string &pname) const Definition: Projection.cc:55 Wrapper projection for smearing Jets with detector resolutions and efficiencies. Definition: SmearedParticles.hh:31 const Cut & open() Fully open cut singleton, accepts everything. Definition: Cuts.cc:81 SmearedParticles(const ParticleFinder &pf, double eff, const ParticleSmearFn &smearFn, const Cut &c=Cuts::open()) Constructor with const efficiency followed by a smearing function. Definition: SmearedParticles.hh:52 SmearedParticles(const ParticleFinder &pf, const ParticleEffFn &effFn, const ParticleSmearFn &smearFn, const Cut &c=Cuts::open()) Constructor with an efficiency function followed by a smearing function. Definition: SmearedParticles.hh:66 const PROJ & addProjection(const PROJ &proj, const std::string &name) Register a contained projection (user-facing version) Definition: ProjectionApplier.hh:170 size_t size() const Count the final-state particles. Definition: ParticleFinder.hh:35 void project(const Event &e) Perform the particle finding & smearing calculation. Definition: SmearedParticles.hh:134 int compare(const Projection &p) const Compare to another SmearedParticles. Definition: SmearedParticles.hh:113 SmearedParticles(const ParticleFinder &pf, const Cut &c, ARGS... effSmearFns) Constructor with a variadic ordered list of efficiency and smearing function args. Definition: SmearedParticles.hh:101 SmearedParticles(const ParticleFinder &pf, const initializer_list< ParticleEffSmearFn > &effSmearFns, const Cut &c=Cuts::open()) Constructor with an ordered list of efficiency and/or smearing functions. Definition: SmearedParticles.hh:91 double rand01() Return a uniformly sampled random number between 0 and 1. Definition: Random.cc:39 Cmp< T > cmp(const T &t1, const T &t2) Global helper function for easy creation of Cmp objects. Definition: Cmp.hh:285 Generated on Sun Feb 17 2019 21:04:56 for Rivet by ![]() |