ClusteredLepton Class Reference

#include <LeptonClusters.hh>

Inheritance diagram for ClusteredLepton:
Inheritance graph
[legend]
Collaboration diagram for ClusteredLepton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ClusteredLepton (Particle lepton)
void addPhoton (const Particle &p, bool cluster)
const ParticleconstituentLepton () const
const ParticleVectorconstituentPhotons () 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.
ParticlesetMomentum (const FourMomentum &momentum)
 Set the momentum of this Particle.
const FourMomentummomentum () 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

Detailed Description

Definition at line 15 of file LeptonClusters.hh.


Constructor & Destructor Documentation

ClusteredLepton ( Particle  lepton  )  [inline]

Definition at line 18 of file LeptonClusters.hh.

00019                                      :
00020       Particle(lepton.pdgId(), lepton.momentum()),
      _constituentLepton(lepton) {}


Member Function Documentation

void addPhoton ( const Particle p,
bool  cluster 
) [inline]

Definition at line 22 of file LeptonClusters.hh.

References ClusteredLepton::_constituentPhotons, Particle::momentum(), and Particle::setMomentum().

00022                                                     {
00023       _constituentPhotons.push_back(p);
00024       if (cluster) setMomentum(momentum()+p.momentum());
00025     }

const Particle& constituentLepton (  )  const [inline]
const ParticleVector& constituentPhotons (  )  const [inline]
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]
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().

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(), 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().

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_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_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_2002_S4796047::analyze(), CDF_2001_S4751469::analyze(), CDF_1993_S2742446::analyze(), CDF_1990_S2089246::analyze(), CDF_1988_S1865951::analyze(), BELLE_2006_S6265367::analyze(), ATLAS_2011_S9120807::analyze(), ATLAS_2011_S9019561::analyze(), ATLAS_2011_S9002537::analyze(), ATLAS_2011_S8994773::analyze(), ATLAS_2011_S8983313::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_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(), FinalStateHCM::project(), DISLepton::project(), DISKinematics::project(), and ClusteredPhotons::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(), 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::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(), 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 FinalStateHCM::project().

00062                                                         {
00063       _momentum = momentum;
00064       return *this;
00065     }


Member Data Documentation

Definition at line 32 of file LeptonClusters.hh.

Referenced by ClusteredLepton::constituentLepton().


The documentation for this class was generated from the following file: