SmearedJets.hh 23 // vector<JetEffSmearFn>& toEffSmearFns(vector<JetEffSmearFn>& v, const T& first, ARGS... args) { 136 MSG_DEBUG("Truth jet: " << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta()); 140 // Re-add constituents & tags if (we assume accidentally) they were lost by the smearing function 143 MSG_DEBUG(" ->" << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta()); 149 if (jeff <= 0) { keep = false; break; } //< no need to roll expensive dice (and we deal with -ve probabilities, just in case) 150 if (jeff < 1 && rand01() > jeff) { keep = false; break; } //< roll dice (and deal with >1 probabilities, just in case) 160 if (!btag && j.bTagged()) j.tags().erase(std::remove_if(j.tags().begin(), j.tags().end(), hasBottom), j.tags().end()); 166 if (!ctag && j.cTagged()) j.tags().erase(std::remove_if(j.tags().begin(), j.tags().end(), hasCharm), j.tags().end()); void setName(const std::string &name) Used by derived classes to set their name. Definition: Projection.hh:133 Definition: ALICE_2010_I880049.cc:13 void reset() Reset the projection. Smearing functions will be unchanged. Definition: SmearedJets.hh:177 int compare(const Projection &p) const Compare to another SmearedJets. Definition: SmearedJets.hh:108 Functor for simultaneous efficiency-filtering and smearing of Jets. Definition: JetSmearingFunctions.hh:73 const FourMomentum & mom() const Get equivalent single momentum four-vector (const) (alias). Definition: ParticleBase.hh:39 SmearedJets(const JetAlg &ja, const JetSmearFn &smearFn, const JetEffFn &bTagEffFn=JET_BTAG_PERFECT, const JetEffFn &cTagEffFn=JET_CTAG_PERFECT) Constructor with a reco efficiency and optional tagging efficiencies. Definition: SmearedJets.hh:40 double JET_CTAG_PERFECT(const Jet &j) Return 1 if the given Jet contains a c, otherwise 0. Definition: JetSmearingFunctions.hh:41 Particle representation, either from a HepMC::GenEvent or reconstructed. Definition: Particle.hh:18 SmearedJets(const JetAlg &ja, const JetEffFn &bTagEffFn=JET_BTAG_PERFECT, const JetEffFn &cTagEffFn=JET_CTAG_PERFECT, const initializer_list< JetEffSmearFn > &effSmearFns={}) Constructor with tagging efficiencies, plus an ordered init-list of efficiency and smearing functions... Definition: SmearedJets.hh:49 double JET_BTAG_PERFECT(const Jet &j) Return 1 if the given Jet contains a b, otherwise 0. Definition: JetSmearingFunctions.hh:38 Definition: Event.hh:22 SmearedJets(const JetAlg &ja, const initializer_list< JetEffSmearFn > &effSmearFns, const JetEffFn &bTagEffFn=JET_BTAG_PERFECT, const JetEffFn &cTagEffFn=JET_CTAG_PERFECT) Constructor with an ordered init-list of efficiency and smearing functions, plus optional tagging eff... Definition: SmearedJets.hh:66 void project(const Event &e) Perform the jet finding & smearing calculation. Definition: SmearedJets.hh:128 Cmp< Projection > mkPCmp(const Projection &otherparent, const std::string &pname) const Definition: Projection.cc:55 SmearedJets(const JetAlg &ja, const JetSmearFn &smearFn, const JetEffFn &bTagEffFn, const JetEffFn &cTagEffFn, const JetEffFn &jetEffFn) Constructor with trailing efficiency arg. Definition: SmearedJets.hh:87 SmearedJets(const JetAlg &ja, const vector< JetEffSmearFn > &effSmearFns, const JetEffFn &bTagEffFn=JET_BTAG_PERFECT, const JetEffFn &cTagEffFn=JET_CTAG_PERFECT) Constructor with an ordered vector of efficiency and smearing functions, plus optional tagging effici... Definition: SmearedJets.hh:74 const PROJ & addProjection(const PROJ &proj, const std::string &name) Register a contained projection (user-facing version) Definition: ProjectionApplier.hh:170 Particles & tags() Particles which have been tag-matched to this jet. Definition: Jet.hh:89 SmearedJets(const JetAlg &ja, const JetEffFn &bTagEffFn=JET_BTAG_PERFECT, const JetEffFn &cTagEffFn=JET_CTAG_PERFECT, const vector< JetEffSmearFn > &effSmearFns={}) Constructor with tagging efficiencies, plus an ordered vector of efficiency and smearing functions... Definition: SmearedJets.hh:57 Abstract base class for projections which can return a set of Jets. Definition: JetAlg.hh:15 Wrapper projection for smearing Jets with detector resolutions and efficiencies. Definition: SmearedJets.hh:33 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 ![]() |