SmearedJets.hh 23 // vector<JetEffSmearFn>& toEffSmearFns(vector<JetEffSmearFn>& v, const T& first, ARGS... args) {
150 MSG_DEBUG("Truth jet: " << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta());
154 // Re-add constituents & tags if (we assume accidentally) they were lost by the smearing function
157 MSG_DEBUG(" ->" << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta());
163 if (jeff <= 0) { keep = false; break; } //< no need to roll expensive dice (and we deal with -ve probabilities, just in case)
164 if (jeff < 1 && rand01() > jeff) { keep = false; break; } //< roll dice (and deal with >1 probabilities, just in case)
174 if (!btag && j.bTagged()) j.tags().erase(std::remove_if(j.tags().begin(), j.tags().end(), hasBottom), j.tags().end());
180 if (!ctag && j.cTagged()) j.tags().erase(std::remove_if(j.tags().begin(), j.tags().end(), hasCharm), j.tags().end());
Representation of a HepMC event, and enabler of Projection caching. Definition: Event.hh:22 Abstract base class for projections which can return a set of Jets. Definition: JetFinder.hh:15 Particles & tags() Particles which have been tag-matched to this jet. Definition: Jet.hh:119 const FourMomentum & mom() const Get equivalent single momentum four-vector (const) (alias). Definition: ParticleBase.hh:39 Particle representation, either from a HepMC::GenEvent or reconstructed. Definition: Particle.hh:53 const PROJ & declare(const PROJ &proj, const std::string &name) Register a contained projection (user-facing version) Definition: ProjectionApplier.hh:170 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:142 Wrapper projection for smearing Jets with detector resolutions and efficiencies. Definition: SmearedJets.hh:35 void project(const Event &e) Perform the jet finding & smearing calculation. Definition: SmearedJets.hh:142 SmearedJets(const JetFinder &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:65 SmearedJets(const JetFinder &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:44 SmearedJets(const JetFinder &ja, const JetSmearFn &smearFn, const JetEffFn &bTagEffFn, const JetEffFn &cTagEffFn, const JetEffFn &jetEffFn) Constructor with trailing efficiency arg. Definition: SmearedJets.hh:101 SmearedJets(const JetFinder &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:55 CmpState compare(const Projection &p) const Compare to another SmearedJets. Definition: SmearedJets.hh:122 const Jets truthJets() const Get the truth jets (sorted by pT) Definition: SmearedJets.hh:190 SmearedJets(const JetFinder &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:86 SmearedJets(const JetFinder &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:76 void reset() Reset the projection. Smearing functions will be unchanged. Definition: SmearedJets.hh:195 #define MSG_DEBUG(x) Debug messaging, not enabled by default, using MSG_LVL. Definition: Logging.hh:195 bool hasBottom(int pid) Does this particle contain a bottom quark? Definition: ParticleIdUtils.hh:581 bool hasCharm(int pid) Does this particle contain a charm quark? Definition: ParticleIdUtils.hh:579 double p(const ParticleBase &p) Unbound function access to p. Definition: ParticleBaseUtils.hh:653 double JET_CTAG_PERFECT(const Jet &j) Return 1 if the given Jet contains a c, otherwise 0. Definition: JetSmearingFunctions.hh:57 double JET_BTAG_PERFECT(const Jet &j) Return 1 if the given Jet contains a b, otherwise 0. Definition: JetSmearingFunctions.hh:53 function< Jet(const Jet &)> JetSmearFn Typedef for Jet smearing functions/functors. Definition: JetSmearingFunctions.hh:20 function< double(const Jet &)> JetEffFn Typedef for Jet efficiency functions/functors. Definition: JetSmearingFunctions.hh:23 Definition: MC_Cent_pPb.hh:10 Cmp< T > cmp(const T &t1, const T &t2) Global helper function for easy creation of Cmp objects. Definition: Cmp.hh:255 Functor for simultaneous efficiency-filtering and smearing of Jets. Definition: JetSmearingFunctions.hh:94 Generated on Fri May 13 2022 23:02:06 for Rivet by |