SmearedJets.hh 42 SmearedJets(const JetFinder& ja, const JetEffFn& bTagEffFn, const JetEffFn& cTagEffFn, Args&& ... effSmearFns)
43 : _detFns({JetEffSmearFn(std::forward<Args>(effSmearFns))...}), _bTagEffFn(bTagEffFn), _cTagEffFn(cTagEffFn)
91 MSG_DEBUG("Truth jet: " << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta());
95 // Re-add constituents & tags if (we assume accidentally) they were lost by the smearing function
98 MSG_DEBUG(" ->" << "mom=" << jdet.mom()/GeV << " GeV, pT=" << jdet.pT()/GeV << ", eta=" << jdet.eta());
104 if (jeff <= 0) { keep = false; break; } //< no need to roll expensive dice (and we deal with -ve probabilities, just in case)
105 if (jeff < 1 && rand01() > jeff) { keep = false; break; } //< roll dice (and deal with >1 probabilities, just in case)
115 if (!btag && j.bTagged()) j.tags().erase(std::remove_if(j.tags().begin(), j.tags().end(), hasBottom), 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:23 Particles & tags() Particles which have been tag-matched to this jet. Definition Jet.hh:113 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:45 const PROJ & declare(const PROJ &proj, const std::string &name) const Register a contained projection (user-facing version) Definition ProjectionApplier.hh:175 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 Wrapper projection for smearing Jets with detector resolutions and efficiencies. Definition SmearedJets.hh:19 void project(const Event &e) Perform the jet finding & smearing calculation. Definition SmearedJets.hh:83 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:28 SmearedJets(const JetFinder &ja, const JetEffFn &bTagEffFn, const JetEffFn &cTagEffFn, Args &&... effSmearFns) Constructor with a parameter pack of efficiency and smearing functions, plus optional tagging efficie... Definition SmearedJets.hh:42 CmpState compare(const Projection &p) const Compare to another SmearedJets. Definition SmearedJets.hh:64 const Jets truthJets() const Get the truth jets (sorted by pT) Definition SmearedJets.hh:131 void reset() Reset the projection. Smearing functions will be unchanged. Definition SmearedJets.hh:136 #define MSG_DEBUG(x) Debug messaging, not enabled by default, using MSG_LVL. Definition Logging.hh:182 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_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 uintptr_t get_address(std::function< T(U...)> f) Get a function pointer / hash integer from an std::function. Definition RivetSTL.hh:216 Functor for simultaneous efficiency-filtering and smearing of Jets. Definition JetSmearingFunctions.hh:94 Generated on Wed Oct 30 2024 15:42:55 for Rivet by 1.9.8 |