#include <LeptonClusters.hh>
Public Member Functions | |
ClusteredLepton (Particle lepton) | |
void | addPhoton (const Particle &p, bool cluster) |
const Particle & | constituentLepton () const |
const ParticleVector & | constituentPhotons () const |
const GenParticle & | genParticle () const |
Get a const reference to the original GenParticle. | |
bool | hasGenParticle () const |
Check if the particle corresponds to a GenParticle. | |
PdgId | pdgId () const |
The PDG ID code for this Particle. | |
Particle & | setMomentum (const FourMomentum &momentum) |
Set the momentum of this Particle. | |
const FourMomentum & | momentum () const |
The momentum of this Particle. | |
double | energy () const |
The energy of this Particle. | |
double | mass () const |
The mass of this Particle. | |
bool | hasAncestor (PdgId pdg_id) const |
Check whether a given PID is found in the GenParticle's ancestor list. | |
Private Attributes | |
ParticleVector | _constituentPhotons |
Particle | _constituentLepton |
Definition at line 16 of file LeptonClusters.hh.
ClusteredLepton | ( | Particle | lepton | ) | [inline] |
Definition at line 19 of file LeptonClusters.hh.
00020 : 00021 Particle(lepton.pdgId(), lepton.momentum()), _constituentLepton(lepton) {}
void addPhoton | ( | const Particle & | p, | |
bool | cluster | |||
) | [inline] |
Definition at line 23 of file LeptonClusters.hh.
References ClusteredLepton::_constituentPhotons, Particle::momentum(), and Particle::setMomentum().
00023 { 00024 _constituentPhotons.push_back(p); 00025 if (cluster) setMomentum(momentum() + p.momentum()); 00026 }
const Particle& constituentLepton | ( | ) | const [inline] |
Definition at line 28 of file LeptonClusters.hh.
References ClusteredLepton::_constituentLepton.
Referenced by ZFinder::project(), WFinder::project(), and LeptonClusters::project().
00028 { return _constituentLepton; }
const ParticleVector& constituentPhotons | ( | ) | const [inline] |
Definition at line 29 of file LeptonClusters.hh.
References ClusteredLepton::_constituentPhotons.
Referenced by ZFinder::project(), WFinder::project(), and LeptonClusters::project().
00029 { return _constituentPhotons; }
double energy | ( | ) | const [inline, inherited] |
The energy of this Particle.
Definition at line 73 of file Particle.hh.
References FourMomentum::E(), and Particle::momentum().
00073 { 00074 return momentum().E(); 00075 }
const GenParticle& genParticle | ( | ) | const [inline, inherited] |
Get a const reference to the original GenParticle.
Definition at line 43 of file Particle.hh.
References Particle::_original.
Referenced by SVertex::_applyVtxTrackCuts(), FinalState::accept(), H1_1994_S2919893::analyze(), D0_2010_S8570965::analyze(), CDF_2008_S7540469::analyze(), BELLE_2006_S6265367::analyze(), ATLAS_2011_S8994773::analyze(), ATLAS_2010_S8894728::analyze(), InvMassFinalState::calc(), Jet::containsBottom(), Jet::containsCharm(), Jet::containsParticle(), LHCB_2010_S8758301::getLongestLivedAncestor(), Particle::hasAncestor(), SVertex::project(), MergedFinalState::project(), and DISFinalState::project().
bool hasAncestor | ( | PdgId | pdg_id | ) | const [inherited] |
Check whether a given PID is found in the GenParticle's ancestor list.
Definition at line 7 of file Particle.cc.
References Particle::genParticle(), and Rivet::particles().
Referenced by CMS_2011_S8978280::analyze(), ALICE_2011_S8945144::analyze(), and ALICE_2011_S8909580::analyze().
00007 { 00008 GenVertex* prodVtx = genParticle().production_vertex(); 00009 if (prodVtx == 0) return false; 00010 foreach (const GenParticle* ancestor, particles(prodVtx, HepMC::ancestors)) { 00011 if (ancestor->pdg_id() == pdg_id) return true; 00012 } 00013 return false; 00014 }
bool hasGenParticle | ( | ) | const [inline, inherited] |
Check if the particle corresponds to a GenParticle.
Definition at line 50 of file Particle.hh.
References Particle::_original.
Referenced by FinalState::accept(), LHCB_2010_S8758301::getLongestLivedAncestor(), and DISLepton::project().
00050 { 00051 return bool(_original); 00052 }
double mass | ( | ) | const [inline, inherited] |
The mass of this Particle.
Definition at line 78 of file Particle.hh.
References FourMomentum::mass(), and Particle::momentum().
Referenced by ALICE_2011_S8945144::analyze().
00078 { 00079 return momentum().mass(); 00080 }
const FourMomentum& momentum | ( | ) | const [inline, virtual, inherited] |
The momentum of this Particle.
Implements ParticleBase.
Definition at line 68 of file Particle.hh.
References Particle::_momentum.
Referenced by SVertex::_applyVtxTrackCuts(), CDF_2004_S5839831::_calcTransCones(), FinalState::accept(), Jet::addParticle(), ClusteredLepton::addPhoton(), UA5_1986_S1583476::analyze(), UA5_1982_S875503::analyze(), UA1_1990_S2044935::analyze(), TASSO_1990_S2148048::analyze(), STAR_2009_UE_HELEN::analyze(), STAR_2008_S7993412::analyze(), STAR_2008_S7869363::analyze(), STAR_2006_S6860818::analyze(), STAR_2006_S6500200::analyze(), SFM_1984_S1178091::analyze(), OPAL_1998_S3780481::analyze(), OPAL_1993_S2692198::analyze(), MC_ZJETS::analyze(), MC_WJETS::analyze(), MC_VH2BB::analyze(), MC_TTBAR::analyze(), MC_SUSY::analyze(), MC_PHOTONJETUE::analyze(), MC_PHOTONJETS::analyze(), MC_LEADINGJETS::analyze(), MC_HJETS::analyze(), MC_GENERIC::analyze(), MC_DIPHOTON::analyze(), MC_DIJET::analyze(), LHCB_2010_S8758301::analyze(), H1_2000_S4129130::analyze(), H1_1994_S2919893::analyze(), DELPHI_1996_S3430090::analyze(), DELPHI_1995_S3137023::analyze(), D0_2010_S8570965::analyze(), D0_2008_S7719523::analyze(), D0_2006_S6438750::analyze(), CMS_2011_S9120041::analyze(), CMS_2011_S8978280::analyze(), CMS_2011_S8884919::analyze(), CMS_2010_S8656010::analyze(), CMS_2010_S8547297::analyze(), CDF_2010_S8591881_QCD::analyze(), CDF_2009_S8436959::analyze(), CDF_2009_S8233977::analyze(), CDF_2008_S8095620::analyze(), CDF_2008_S7541902::analyze(), CDF_2008_S7540469::analyze(), CDF_2008_LEADINGJETS::analyze(), CDF_2006_S6653332::analyze(), CDF_2005_S6080774::analyze(), CDF_2004_S5839831::analyze(), CDF_2001_S4751469::analyze(), CDF_1993_S2742446::analyze(), CDF_1990_S2089246::analyze(), CDF_1988_S1865951::analyze(), BELLE_2006_S6265367::analyze(), ATLAS_2011_S9225137::analyze(), ATLAS_2011_S9212183::analyze(), ATLAS_2011_S9120807::analyze(), ATLAS_2011_S9108483::analyze(), ATLAS_2011_S9041966::analyze(), ATLAS_2011_S9019561::analyze(), ATLAS_2011_S9002537::analyze(), ATLAS_2011_S8994773::analyze(), ATLAS_2011_S8983313::analyze(), ATLAS_2011_CONF_2011_098::analyze(), ATLAS_2011_CONF_2011_090::analyze(), ATLAS_2010_S8919674::analyze(), ATLAS_2010_S8914702::analyze(), ATLAS_2010_S8894728::analyze(), ATLAS_2010_S8591806::analyze(), ATLAS_2010_CONF_2010_049::analyze(), ALICE_2011_S8945144::analyze(), ALICE_2011_S8909580::analyze(), ALICE_2010_S8706239::analyze(), ALICE_2010_S8625980::analyze(), ALEPH_2004_S5765862::analyze(), ALEPH_1996_S3486095::analyze(), ALEPH_1996_S3196992::analyze(), Thrust::calc(), Spherocity::calc(), Sphericity::calc(), JetShape::calc(), InvMassFinalState::calc(), FParameter::calc(), FastJets::calc(), BeamThrust::calc(), Rivet::cmpParticleByAscAbsPseudorapidity(), Rivet::cmpParticleByAscAbsRapidity(), Rivet::cmpParticleByAscE(), Rivet::cmpParticleByAscEt(), Rivet::cmpParticleByAscP(), Rivet::cmpParticleByAscPseudorapidity(), Rivet::cmpParticleByAscPt(), Rivet::cmpParticleByAscRapidity(), Rivet::cmpParticleByDescAbsPseudorapidity(), Rivet::cmpParticleByDescAbsRapidity(), Rivet::cmpParticleByDescPseudorapidity(), Rivet::cmpParticleByDescRapidity(), Rivet::cmpParticleByE(), Rivet::cmpParticleByEt(), Rivet::cmpParticleByP(), Rivet::cmpParticleByPt(), Rivet::deltaEta(), Rivet::deltaPhi(), Rivet::deltaR(), Particle::energy(), ATLAS_2010_S8918562::fillPtEtaNch(), Jet::hadronicEnergy(), Particle::mass(), Jet::neutralEnergy(), STARRandomFilter::operator()(), ALEPH_1996_S3196992::particleInJet(), ZFinder::project(), WFinder::project(), VetoedFinalState::project(), TriggerUA5::project(), TriggerCDFRun2::project(), TriggerCDFRun0Run1::project(), TotalVisibleMomentum::project(), SVertex::project(), NeutralFinalState::project(), MissingMomentum::project(), LeptonClusters::project(), Hemispheres::project(), DISLepton::project(), DISKinematics::project(), DISFinalState::project(), ClusteredPhotons::project(), and CentralEtHCM::project().
00068 { 00069 return _momentum; 00070 }
PdgId pdgId | ( | ) | const [inline, inherited] |
The PDG ID code for this Particle.
Definition at line 56 of file Particle.hh.
References Particle::_id.
Referenced by Rivet::PID::abspid(), STAR_2008_S7869363::analyze(), STAR_2006_S6860818::analyze(), STAR_2006_S6500200::analyze(), PDG_HADRON_MULTIPLICITIES_RATIOS::analyze(), PDG_HADRON_MULTIPLICITIES::analyze(), OPAL_1998_S3780481::analyze(), OPAL_1993_S2692198::analyze(), MC_WJETS::analyze(), MC_SUSY::analyze(), MC_GENERIC::analyze(), LHCB_2010_S8758301::analyze(), H1_1994_S2919893::analyze(), DELPHI_1996_S3430090::analyze(), DELPHI_1995_S3137023::analyze(), CMS_2011_S8978280::analyze(), CMS_2011_S8884919::analyze(), CMS_2010_S8656010::analyze(), CMS_2010_S8547297::analyze(), CDF_2008_S7541902::analyze(), CDF_2008_S7540469::analyze(), CDF_1993_S2742446::analyze(), BELLE_2006_S6265367::analyze(), ALICE_2011_S8945144::analyze(), ALICE_2011_S8909580::analyze(), ALEPH_1996_S3486095::analyze(), InvMassFinalState::calc(), Rivet::chargedParticleFilter(), Jet::containsBottom(), Jet::containsCharm(), Jet::containsParticleId(), Rivet::hadronFilter(), Jet::hadronicEnergy(), Rivet::PID::hasBottom(), Rivet::PID::hasCharm(), Rivet::PID::hasDown(), Rivet::PID::hasStrange(), Rivet::PID::hasTop(), Rivet::PID::hasUp(), LeadingParticlesFinalState::inList(), Rivet::PID::isBaryon(), Rivet::PID::isDiQuark(), Rivet::PID::isHadron(), Rivet::isInvisibleFilter(), Rivet::PID::isLepton(), Rivet::PID::isMeson(), Rivet::PID::isNucleus(), Rivet::PID::isPentaquark(), Rivet::PID::isRhadron(), Rivet::PID::isSUSY(), Rivet::PID::jSpin(), Rivet::PID::lSpin(), Jet::neutralEnergy(), Rivet::nonHadronFilter(), ZFinder::project(), WFinder::project(), VetoedFinalState::project(), NeutralFinalState::project(), IdentifiedFinalState::project(), DISLepton::project(), ClusteredPhotons::project(), ChargedLeptons::project(), Rivet::PID::sSpin(), and Rivet::PID::threeCharge().
00056 { 00057 return _id; 00058 }
Particle& setMomentum | ( | const FourMomentum & | momentum | ) | [inline, inherited] |
Set the momentum of this Particle.
Definition at line 62 of file Particle.hh.
References Particle::_momentum.
Referenced by ClusteredLepton::addPhoton(), and DISFinalState::project().
Particle _constituentLepton [private] |
Definition at line 34 of file LeptonClusters.hh.
Referenced by ClusteredLepton::constituentLepton().
ParticleVector _constituentPhotons [private] |
Definition at line 33 of file LeptonClusters.hh.
Referenced by ClusteredLepton::addPhoton(), and ClusteredLepton::constituentPhotons().