PartonicTops.hh 37 PartonicTops(DecayMode decaymode, bool emu_from_prompt_tau=true, bool include_hadronic_taus=false, const Cut& c=Cuts::OPEN, TopMode whichtop=LAST) 43 PartonicTops(DecayMode decaymode, const Cut& c, bool emu_from_prompt_tau=true, bool include_hadronic_taus=false, TopMode whichtop=LAST) 70 _theParticles = filter_select(event.allParticles(_cuts), (_topmode == LAST ? lastParticleWith(isTop) : firstParticleWith(isTop))); 75 const bool prompt_e = any(descendants, [&](const Particle& p){ return p.abspid() == PID::ELECTRON && p.isPrompt(_emu_from_prompt_tau) && !p.hasAncestor(PID::PHOTON, false); }); 76 const bool prompt_mu = any(descendants, [&](const Particle& p){ return p.abspid() == PID::MUON && p.isPrompt(_emu_from_prompt_tau) && !p.hasAncestor(PID::PHOTON, false); }); 77 if (prompt_e && (_decaymode == ELECTRON || _decaymode == E_MU || _decaymode == E_MU_TAU)) return true; 78 if (prompt_mu && (_decaymode == MUON || _decaymode == E_MU || _decaymode == E_MU_TAU)) return true; 79 const bool prompt_tau = any(descendants, [&](const Particle& p){ return p.abspid() == PID::TAU && p.isPrompt() && !p.hasAncestor(PID::PHOTON, false); }); 80 const bool prompt_hadronic_tau = any(descendants, [&](const Particle& p){ return p.abspid() == PID::TAU && p.isPrompt() && !p.hasAncestor(PID::PHOTON, false) && none(p.children(), isChargedLepton); }); 81 if (prompt_tau && (_decaymode == TAU || _decaymode == E_MU_TAU)) return (_include_hadronic_taus || !prompt_hadronic_tau); 82 if (_decaymode == HADRONIC && (!prompt_e && !prompt_mu && (!prompt_tau || (_include_hadronic_taus && prompt_hadronic_tau)))) return true; //< logical hairiness... Definition: ALICE_2010_I880049.cc:13 void project(const Event &event) Apply the projection on the supplied event. Definition: PartonicTops.hh:68 bool any(const CONTAINER &c) Return true if x is true for any x in container c, otherwise false. Definition: Utils.hh:287 DecayMode Enum for categorising top quark decay modes. Definition: PartonicTops.hh:21 Particles children(const Cut &c=Cuts::OPEN) const Get a list of the direct descendants from the current particle (with optional selection Cut) ... Definition: Particle.cc:104 Particle representation, either from a HepMC::GenEvent or reconstructed. Definition: Particle.hh:18 bool none(const CONTAINER &c) Return true if x is false for all x in container c, otherwise false. Definition: Utils.hh:315 Base class for projections which return subsets of an event's particles. Definition: ParticleFinder.hh:11 Definition: Event.hh:22 Jets filter_select(const Jets &jets, const Cut &c) Filter a jet collection in-place to the subset that passes the supplied Cut. Definition: JetUtils.hh:143 Determine whether a particle is the first in a decay chain to meet the cut/function. Definition: ParticleUtils.hh:558 int compare(const Projection &p) const Compare projections. Definition: PartonicTops.hh:91 DEFAULT_RIVET_PROJ_CLONE(PartonicTops) Clone on the heap. PartonicTops(const Cut &c=Cuts::OPEN, TopMode whichtop=LAST) Constructor optionally taking cuts object. Definition: PartonicTops.hh:31 PartonicTops(DecayMode decaymode, const Cut &c, bool emu_from_prompt_tau=true, bool include_hadronic_taus=false, TopMode whichtop=LAST) Constructor taking decay mode details (and an optional cuts object) Definition: PartonicTops.hh:43 const Particles & allParticles() const All the raw GenEvent particles, wrapped in Rivet::Particle objects. Definition: Event.cc:47 const Particles & tops() const Access to the found partonic tops. Definition: PartonicTops.hh:56 PartonicTops(DecayMode decaymode, bool emu_from_prompt_tau=true, bool include_hadronic_taus=false, const Cut &c=Cuts::OPEN, TopMode whichtop=LAST) Constructor taking decay mode details (and an optional cuts object) Definition: PartonicTops.hh:37 Determine whether a particle is the last in a decay chain to meet the cut/function. Definition: ParticleUtils.hh:577 PdgId abspid() const Absolute value of the PDG ID code. Definition: Particle.hh:137 bool isPrompt(bool allow_from_prompt_tau=false, bool allow_from_prompt_mu=false) const Alias for isDirect. Definition: Particle.hh:500 Jets & ifilter_select(Jets &jets, const Cut &c) Filter a jet collection in-place to the subset that passes the supplied Cut. Definition: JetUtils.cc:7 bool hasAncestor(PdgId pid, bool only_physical=true) const Definition: Particle.cc:193 TopMode Enum for categorising which top quark to be selected: last (weakly decaying) or first? Definition: PartonicTops.hh:24 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 ![]() |