Jet Class Reference Representation of a clustered jet of particles. More...
Detailed DescriptionConstructor & Destructor Documentation
Set all the jet data, with full particle information.
Member Function Documentation
Get the Definition at line 81 of file ParticleBase.hh.
Get the Definition at line 79 of file ParticleBase.hh. { return momentum().abspseudorapidity(); }
Get the Definition at line 90 of file ParticleBase.hh.
Get the Definition at line 88 of file ParticleBase.hh. { return momentum().absrapidity(); }
Angle between this vector and another. Definition at line 125 of file ParticleBase.hh.
Angle between this vector and another. Definition at line 127 of file ParticleBase.hh. Angle between this vector and another (3-vector) Definition at line 129 of file ParticleBase.hh.
Azimuthal angle Definition at line 93 of file ParticleBase.hh. { return momentum().azimuthalAngle(mapping); }
b particles which have been tag-matched to this jet (and pass an optional Cut) The default jet finding adds b-hadron tags by ghost association. b particles which have been tag-matched to this jet _and_ pass a selector function Definition at line 112 of file Jet.hh. { return filter_select(bTags(), f); } Reset this jet as empty. Definition at line 10 of file Jet.cc. { _momentum = FourMomentum(); _pseudojet.reset(0,0,0,0); _particles.clear(); return *this; }
Check whether this jet contains a bottom-flavoured hadron.
Definition at line 143 of file Jet.cc. { foreach (const Particle& p, particles()) { const PdgId pid = p.pid(); if (abs(pid) == PID::BQUARK) return true; if (PID::isHadron(pid) && PID::hasBottom(pid)) return true; if (include_decay_products) { const HepMC::GenVertex* gv = p.genParticle()->production_vertex(); if (gv) { foreach (const GenParticle* pi, Rivet::particles(gv, HepMC::ancestors)) { const PdgId pid2 = pi->pdg_id(); if (PID::isHadron(pid2) && PID::hasBottom(pid2)) return true; } } } } return false; }
Check whether this jet contains a charm-flavoured hadron.
Definition at line 124 of file Jet.cc. { foreach (const Particle& p, particles()) { const PdgId pid = p.pid(); if (abs(pid) == PID::CQUARK) return true; if (PID::isHadron(pid) && PID::hasCharm(pid)) return true; if (include_decay_products) { const HepMC::GenVertex* gv = p.genParticle()->production_vertex(); if (gv) { foreach (const GenParticle* pi, Rivet::particles(gv, HepMC::ancestors)) { const PdgId pid2 = pi->pdg_id(); if (PID::isHadron(pid2) && PID::hasCharm(pid2)) return true; } } } } return false; }
Nicer alias for containsParticleId. Definition at line 70 of file Jet.hh. { return containsParticle(particle); }
Nicer alias for containsParticleId. Definition at line 75 of file Jet.hh. { return containsParticleId(pid); }
Nicer alias for containsParticleId. Definition at line 80 of file Jet.hh. { return containsParticleId(pids); }
c (and not b) particles which have been tag-matched to this jet (and pass an optional Cut) The default jet finding adds c-hadron tags by ghost association.
c (and not b) particles which have been tag-matched to this jet and pass a selector function Definition at line 127 of file Jet.hh. { return filter_select(cTags(), f); }
Get the energy directly (alias). Definition at line 43 of file ParticleBase.hh.
Get the energy-squared (alias). Definition at line 48 of file ParticleBase.hh.
Get the Definition at line 77 of file ParticleBase.hh.
Get the mass**2 directly. Definition at line 72 of file ParticleBase.hh.
Get equivalent single momentum four-vector (const) (alias). Definition at line 29 of file ParticleBase.hh. { return momentum(); };
Get equivalent single momentum four-vector. Implements ParticleBase. Definition at line 188 of file Jet.hh. { return _momentum; }
Cast operator for conversion to FourMomentum. Definition at line 32 of file ParticleBase.hh. { return momentum(); }
Get the 3-momentum magnitude directly. Definition at line 101 of file ParticleBase.hh.
Get the 3-momentum magnitude-squared directly. Definition at line 103 of file ParticleBase.hh. Get the 3-momentum directly. Definition at line 99 of file ParticleBase.hh. Get the particles in this jet (const version) Definition at line 56 of file Jet.hh. { return _particles; } Get the particles in this jet which pass a cut (const) Definition at line 58 of file Jet.hh. { return filterBy(_particles, c); }
Get the Definition at line 95 of file ParticleBase.hh.
Angle subtended by the 3-vector and the z-axis. Definition at line 120 of file ParticleBase.hh. { return momentum().polarAngle(); }
Access the internal FastJet3 PseudoJet (as a const reference) Definition at line 211 of file Jet.hh. { return _pseudojet; }
x component of momentum, squared. Definition at line 113 of file ParticleBase.hh.
y component of momentum, squared. Definition at line 115 of file ParticleBase.hh.
z component of momentum, squared. Definition at line 117 of file ParticleBase.hh.
Get the Definition at line 86 of file ParticleBase.hh.
Definition at line 239 of file Jet.hh. { return setParticles(particles); }
Set the particles collection with full particle information. If set, this overrides particle info extracted from the PseudoJet Definition at line 55 of file Jet.cc. { _particles = particles; return *this; }
Set the jet data from a FastJet PseudoJet, with optional particle constituents and tags lists.
Definition at line 28 of file Jet.cc. { clear(); _pseudojet = pj; _momentum = FourMomentum(pj.e(), pj.px(), pj.py(), pj.pz()); _particles = particles; _tags = tags; // if (_particles.empty()) { // foreach (const fastjet::PseudoJet pjc, _pseudojet.constituents()) { // // If there is no attached user info, we can't create a meaningful particle, so skip // if (!pjc.has_user_info<RivetFJInfo>()) continue; // const RivetFJInfo& fjinfo = pjc.user_info<RivetFJInfo>(); // // Don't add ghosts to the particles list // if (fjinfo.isGhost) continue; // // Otherwise construct a Particle from the PseudoJet, preferably from an associated GenParticle // ?if (fjinfo.genParticle != NULL) { // _particles.push_back(Particle(fjinfo.genParticle)); // } else { // if (fjinfo.pid == 0) continue; // skip if there is a null PID entry in the FJ info // const FourMomentum pjcmom(pjc.e(), pjc.px(), pjc.py(), pjc.pz()); // _particles.push_back(Particle(fjinfo.pid, pjcmom)); // } // } // } return *this; }
Number of particles in this jet. Definition at line 51 of file Jet.hh. { return _particles.size(); } Particles which have been tag-matched to this jet _and_ pass a selector function.
Definition at line 99 of file Jet.hh. { return filter_select(tags(), f); } Particles which have been tag-matched to this jet _and_ pass a Cut.
Definition at line 162 of file Jet.cc. { return filter_select(tags(), c); }
Tau particles which have been tag-matched to this jet and pass a selector function. Definition at line 142 of file Jet.hh. { return filter_select(tauTags(), f); }
Synonym for polarAngle. Definition at line 122 of file ParticleBase.hh.
Apply an active Lorentz transform to this jet
Member Data Documentation
The documentation for this class was generated from the following files: Generated on Tue Dec 13 2016 16:32:46 for The Rivet MC analysis system by ![]() |