rivet is hosted by Hepforge, IPPP Durham
ParticleBase Class Reference

Base class for particle-like things like Particle and Jet. More...

#include <ParticleBase.hh>

Inheritance diagram for ParticleBase:

List of all members.

Public Member Functions

 ParticleBase ()
 Default constructor.
virtual ~ParticleBase ()
 Virtual destructor.
Effective momentum accessors
virtual const FourMomentummomentum () const =0
 Get equivalent single momentum four-vector (const).
const FourMomentummom () const
 Get equivalent single momentum four-vector (const) (alias).
 operator const FourMomentum & () const
 Cast operator for conversion to FourMomentum.
Convenience access to the effective 4-vector properties
double E () const
 Get the energy directly.
double energy () const
 Get the energy directly (alias).
double pt () const
 Get the $ p_T $ directly.
double pT () const
 Get the $ p_T $ directly (alias).
double perp () const
 Get the $ p_T $ directly (alias).
double pt2 () const
 Get the $ p_T^2 $ directly.
double pT2 () const
 Get the $ p_T^2 $ directly (alias).
double perp2 () const
 Get the $ p_T^2 $ directly (alias).
double Et () const
 Get the $ E_T $ directly.
double mass () const
 Get the mass directly.
double mass2 () const
 Get the mass**2 directly.
double pseudorapidity () const
 Get the $ \eta $ directly.
double eta () const
 Get the $ \eta $ directly (alias).
double abspseudorapidity () const
 Get the $ |\eta| $ directly.
double abseta () const
 Get the $ |\eta| $ directly (alias).
double rapidity () const
 Get the $ y $ directly.
double rap () const
 Get the $ y $ directly (alias).
double absrapidity () const
 Get the $ |y| $ directly.
double absrap () const
 Get the $ |y| $ directly (alias).
double azimuthalAngle (const PhiMapping mapping=ZERO_2PI) const
 Azimuthal angle $ \phi $.
double phi (const PhiMapping mapping=ZERO_2PI) const
 Get the $ \phi $ directly.
Vector3 p3 () const
 Get the 3-momentum directly.
double px () const
 x component of momentum.
double py () const
 y component of momentum.
double pz () const
 z component of momentum.
double polarAngle () const
 Angle subtended by the 3-vector and the z-axis.
double theta () const
 Synonym for polarAngle.
double angle (const ParticleBase &v) const
 Angle between this vector and another.
double angle (const FourVector &v) const
 Angle between this vector and another.
double angle (const Vector3 &v3) const
 Angle between this vector and another (3-vector)

Detailed Description

Base class for particle-like things like Particle and Jet.

Definition at line 12 of file ParticleBase.hh.


Constructor & Destructor Documentation

ParticleBase ( ) [inline]

Default constructor.

Definition at line 16 of file ParticleBase.hh.

{ }
virtual ~ParticleBase ( ) [inline, virtual]

Virtual destructor.

Definition at line 19 of file ParticleBase.hh.

{ }

Member Function Documentation

double abseta ( ) const [inline]

Get the $ |\eta| $ directly (alias).

Definition at line 73 of file ParticleBase.hh.

References FourVector::abseta(), and ParticleBase::momentum().

Referenced by CMS_2012_I1087342::analyze(), TOTEM_2012_I1115294::analyze(), TOTEM_2014_I1328627::analyze(), CMS_2011_S9088458::analyze(), CMSTOTEM_2014_I1294140::analyze(), CMS_2011_S8957746::analyze(), UA5_1982_S875503::analyze(), CDF_2001_S4563131::analyze(), CMS_2013_I1273574::analyze(), D0_1996_S3324664::analyze(), ATLAS_2010_CONF_2010_049::analyze(), CDF_2008_S7540469::analyze(), CMS_2011_S9215166::analyze(), MC_IDENTIFIED::analyze(), CDF_1997_S3541940::analyze(), D0_2008_S7863608::analyze(), UA5_1986_S1583476::analyze(), D0_2009_S8202443::analyze(), ATLAS_2013_I1219109::analyze(), CMS_2015_I1385107::analyze(), ATLAS_2012_I1082009::analyze(), CMS_2011_S9120041::analyze(), CMS_2015_I1310737::analyze(), D0_2009_S8349509::analyze(), STAR_2009_UE_HELEN::analyze(), ATLAS_2012_CONF_2012_104::analyze(), ATLAS_2012_I1126136::analyze(), ATLAS_2010_S8919674::analyze(), ATLAS_2012_I1186556::analyze(), ATLAS_2012_I1183818::analyze(), ATLAS_2012_I1199269::analyze(), ATLAS_2011_I921594::analyze(), ATLAS_2013_I1217863_Z::analyze(), ATLAS_2013_I1244522::analyze(), ATLAS_2014_I1306294::analyze(), ATLAS_2013_I1217863_W::analyze(), ATLAS_2013_I1263495::analyze(), ATLAS_2011_S8983313::analyze(), ATLAS_2011_S9128077::analyze(), ATLAS_2011_CONF_2011_090::analyze(), ATLAS_2012_I1180197::analyze(), ATLAS_2012_I1204447::analyze(), ATLAS_2012_CONF_2012_153::analyze(), ATLAS_2014_I1327229::analyze(), ATLAS_2011_S9212353::analyze(), ATLAS_2011_S9225137::analyze(), and ATLAS_2012_I1203852::analyze().

{ return momentum().abseta(); }
double abspseudorapidity ( ) const [inline]

Get the $ |\eta| $ directly.

Definition at line 71 of file ParticleBase.hh.

References FourVector::abspseudorapidity(), and ParticleBase::momentum().

{ return momentum().abspseudorapidity(); }
double absrapidity ( ) const [inline]

Get the $ |y| $ directly.

Definition at line 80 of file ParticleBase.hh.

References FourMomentum::absrapidity(), and ParticleBase::momentum().

Referenced by CMS_2014_I1298810::analyze().

{ return momentum().absrapidity(); }
double angle ( const ParticleBase v) const [inline]

Angle between this vector and another.

Definition at line 108 of file ParticleBase.hh.

References FourVector::angle(), and ParticleBase::momentum().

Referenced by H1_2000_S4129130::analyze(), and H1_1994_S2919893::analyze().

{ return momentum().angle(v.momentum()); }
double angle ( const FourVector v) const [inline]

Angle between this vector and another.

Definition at line 110 of file ParticleBase.hh.

References FourVector::angle(), and ParticleBase::momentum().

{ return momentum().angle(v); }
double angle ( const Vector3 v3) const [inline]

Angle between this vector and another (3-vector)

Definition at line 112 of file ParticleBase.hh.

References FourVector::angle(), and ParticleBase::momentum().

{ return momentum().angle(v3); }
double energy ( ) const [inline]

Get the energy directly (alias).

Definition at line 42 of file ParticleBase.hh.

References FourMomentum::E(), and ParticleBase::momentum().

{ return momentum().E(); }
double eta ( ) const [inline]

Get the $ \eta $ directly (alias).

Definition at line 69 of file ParticleBase.hh.

References FourVector::eta(), and ParticleBase::momentum().

Referenced by ATLAS_2012_I1118269::analyze(), ATLAS_2011_I894867::analyze(), LHCB_2010_I867355::analyze(), CMS_2012_I1193338::analyze(), TOTEM_2012_002::analyze(), CMS_2012_I1184941::analyze(), CMS_2010_S8656010::analyze(), ATLAS_2010_S8591806::analyze(), CMS_2015_I1384119::analyze(), STAR_2008_S7993412::analyze(), CMSTOTEM_2014_I1294140::analyze(), STAR_2006_S6870392::analyze(), ALICE_2012_I1181770::analyze(), ATLAS_2015_I1387176::analyze(), H1_1994_S2919893::analyze(), CMS_QCD_10_024::analyze(), MC_HINC::analyze(), CDF_2005_S6080774::analyze(), CMS_2010_S8547297::analyze(), D0_1996_S3324664::analyze(), ATLAS_2011_S8994773::analyze(), MC_DIPHOTON::analyze(), CDF_1990_S2089246::analyze(), D0_2008_S6879055::analyze(), CDF_1993_S2742446::analyze(), CDF_2009_S8436959::analyze(), MC_ZINC::analyze(), CDF_2008_S7540469::analyze(), CMS_2011_S8973270::analyze(), CMS_2011_S9215166::analyze(), D0_2010_S8570965::analyze(), SFM_1984_S1178091::analyze(), ALICE_2010_S8625980::analyze(), D0_2006_S6438750::analyze(), MC_DIJET::analyze(), ATLAS_2012_I1119557::analyze(), ATLAS_2014_I1298811::analyze(), MC_WINC::analyze(), CMS_2011_S8884919::analyze(), ATLAS_2012_I946427::analyze(), ATLAS_2012_I1126136::analyze(), ATLAS_2012_CONF_2012_104::analyze(), LHCB_2013_I1208105::analyze(), ATLAS_2014_I1307756::analyze(), ATLAS_2012_I1190891::analyze(), UA1_1990_S2044935::analyze(), ATLAS_2012_I1186556::analyze(), CMS_2013_I1218372::analyze(), ATLAS_2012_I1183818::analyze(), ATLAS_2012_CONF_2012_105::analyze(), ATLAS_2012_I1199269::analyze(), ATLAS_2011_S9212183::analyze(), ATLAS_2013_I1244522::analyze(), ATLAS_2011_CONF_2011_098::analyze(), ATLAS_2012_CONF_2012_103::analyze(), ATLAS_2012_I1112263::analyze(), MC_GENERIC::analyze(), ATLAS_2012_I1095236::analyze(), ATLAS_2011_S9120807::analyze(), ATLAS_2012_I1125961::analyze(), ATLAS_2012_I1180197::analyze(), ATLAS_2012_CONF_2012_001::analyze(), ATLAS_2012_CONF_2012_109::analyze(), ATLAS_2012_I1117704::analyze(), ATLAS_2010_S8914702::analyze(), D0_2008_S7719523::analyze(), ATLAS_2011_S9019561::analyze(), ATLAS_2010_S8894728::analyze(), ATLAS_2011_S9212353::analyze(), ATLAS_2012_I943401::analyze(), ATLAS_2011_S9225137::analyze(), ATLAS_2012_I1093738::analyze(), MC_VH2BB::analyze(), CDF_2004_S5839831::analyze(), ATLAS_2012_I1093734::analyze(), ATLAS_2014_I1282447::analyze(), ATLAS_2012_I1204447::apply_reco_eff(), ATLAS_2014_I1327229::apply_reco_eff(), CMS_2013_I1261026::eventDecomp(), ATLAS_2012_I1094061::fillHistos(), ATLAS_2012_I1084540::fillMap(), ATLAS_2011_I928289_W::FillPlots1d(), ATLAS_2010_S8918562::fillPtEtaNch(), ATLAS_2012_I1091481::getSeta(), CMS_2013_I1258128::makePhotonCut(), TriggerCDFRun2::project(), TriggerCDFRun0Run1::project(), FinalState::project(), NeutralFinalState::project(), and TriggerUA5::project().

{ return momentum().eta(); }
double mass2 ( ) const [inline]

Get the mass**2 directly.

Definition at line 64 of file ParticleBase.hh.

References FourMomentum::mass2(), and ParticleBase::momentum().

{ return momentum().mass2(); }
const FourMomentum& mom ( ) const [inline]

Get equivalent single momentum four-vector (const) (alias).

Definition at line 28 of file ParticleBase.hh.

References ParticleBase::momentum().

Referenced by CMS_2015_I1346843::analyze(), Hemispheres::calc(), Particle::pseudojet(), Jet::setState(), and Variables::Variables().

{ return momentum(); };
operator const FourMomentum & ( ) const [inline]

Cast operator for conversion to FourMomentum.

Definition at line 31 of file ParticleBase.hh.

References ParticleBase::momentum().

{ return momentum(); }
double perp2 ( ) const [inline]

Get the $ p_T^2 $ directly (alias).

Definition at line 56 of file ParticleBase.hh.

References ParticleBase::pt2().

{ return pt2(); }
double phi ( const PhiMapping  mapping = ZERO_2PI) const [inline]
double polarAngle ( ) const [inline]

Angle subtended by the 3-vector and the z-axis.

Definition at line 103 of file ParticleBase.hh.

References ParticleBase::momentum(), and FourVector::polarAngle().

{ return momentum().polarAngle(); }
double pseudorapidity ( ) const [inline]

Get the $ \eta $ directly.

Definition at line 67 of file ParticleBase.hh.

References FourVector::eta(), and ParticleBase::momentum().

{ return momentum().eta(); }
double pt ( ) const [inline]

Get the $ p_T $ directly.

Definition at line 45 of file ParticleBase.hh.

References ParticleBase::momentum(), and FourMomentum::pt().

Referenced by ParticleBase::perp(), and ParticleBase::pT().

{ return momentum().pt(); }
double pT ( ) const [inline]

Get the $ p_T $ directly (alias).

Definition at line 47 of file ParticleBase.hh.

References ParticleBase::pt().

Referenced by ATLAS_2012_I1118269::analyze(), MC_JetAnalysis::analyze(), CMS_2012_I1087342::analyze(), TOTEM_2012_002::analyze(), CDF_2006_S6450792::analyze(), CMS_2010_S8656010::analyze(), CMS_2012_PAS_QCD_11_010::analyze(), ATLAS_2010_S8591806::analyze(), CMS_2011_S9088458::analyze(), STAR_2008_S7993412::analyze(), LHCF_2012_I1115479::analyze(), ALICE_2014_I1300380::analyze(), ALICE_2011_S8909580::analyze(), ALICE_2011_S8945144::analyze(), CMS_2011_S9086218::analyze(), CDF_2007_S7057202::analyze(), ATLAS_2012_I1188891::analyze(), ATLAS_2014_I1282441::analyze(), ALICE_2015_I1357424::analyze(), CMS_2010_S8547297::analyze(), MC_HINC::analyze(), ATLAS_2011_S8994773::analyze(), CMS_2013_I1273574::analyze(), CDF_1988_S1865951::analyze(), CDF_2008_S7828950::analyze(), ATLAS_2010_CONF_2010_049::analyze(), ZEUS_2001_S4815815::analyze(), ALICE_2010_S8706239::analyze(), CDF_2012_NOTE10874::analyze(), CMS_2011_S8973270::analyze(), ATLAS_2011_I930220::analyze(), MC_ZINC::analyze(), CDF_2008_S7540469::analyze(), CDF_1996_S3108457::analyze(), SFM_1984_S1178091::analyze(), CMS_2015_I1346843::analyze(), MC_DIJET::analyze(), MC_HFJETS::analyze(), MC_LEADJETUE::analyze(), STAR_2006_S6500200::analyze(), ATLAS_2014_I1325553::analyze(), CDF_2009_S8233977::analyze(), ATLAS_2014_I1268975::analyze(), ATLAS_2014_I1298811::analyze(), MC_WINC::analyze(), CMS_2015_I1385107::analyze(), ATLAS_2013_I1219109::analyze(), STAR_2006_S6860818::analyze(), CMS_2011_S8978280::analyze(), CMS_2011_S8884919::analyze(), CMS_2014_I1298810::analyze(), ATLAS_2010_S8817804::analyze(), D0_2008_S7662670::analyze(), MC_ZZJETS::analyze(), ATLAS_2014_I1326641::analyze(), CMS_2011_S9120041::analyze(), MC_PHOTONS::analyze(), MC_WWJETS::analyze(), CMS_2015_I1310737::analyze(), STAR_2009_UE_HELEN::analyze(), ATLAS_2012_I1126136::analyze(), ATLAS_2012_CONF_2012_104::analyze(), LHCB_2013_I1208105::analyze(), ATLAS_2013_I1243871::analyze(), UA1_1990_S2044935::analyze(), CMS_2012_I1107658::analyze(), ATLAS_2012_I1190891::analyze(), ATLAS_2012_I1186556::analyze(), LHCB_2013_I1218996::analyze(), ATLAS_2012_I1082936::analyze(), ATLAS_2012_CONF_2012_105::analyze(), ATLAS_2011_S9212183::analyze(), ATLAS_2013_I1244522::analyze(), ATLAS_2012_I1124167::analyze(), ATLAS_2011_I921594::analyze(), ATLAS_2014_I1306294::analyze(), CDF_2010_S8591881_QCD::analyze(), ATLAS_2013_I1217863_Z::analyze(), ATLAS_2013_I1217863_W::analyze(), ATLAS_2013_I1263495::analyze(), ATLAS_2012_CONF_2012_103::analyze(), ATLAS_2012_I1112263::analyze(), MC_GENERIC::analyze(), ATLAS_2011_S8983313::analyze(), ATLAS_2013_I1190187::analyze(), ATLAS_2012_I1095236::analyze(), ATLAS_2012_I1125961::analyze(), STAR_2008_S7869363::analyze(), ATLAS_2012_I1180197::analyze(), ATLAS_2011_CONF_2011_090::analyze(), ATLAS_2012_CONF_2012_001::analyze(), ATLAS_2012_CONF_2012_109::analyze(), MC_TTBAR::analyze(), ATLAS_2012_I1117704::analyze(), ATLAS_2011_I926145::analyze(), CDF_2001_S4751469::analyze(), CMS_2013_I1224539_WJET::analyze(), CMS_2014_I1303894::analyze(), ATLAS_2011_S9019561::analyze(), ATLAS_2012_I1204447::analyze(), CMS_2013_I1224539_ZJET::analyze(), ATLAS_2012_CONF_2012_153::analyze(), ATLAS_2014_I1327229::analyze(), ATLAS_2012_I1083318::analyze(), ATLAS_2010_S8894728::analyze(), ATLAS_2012_I1125575::analyze(), ATLAS_2011_S9212353::analyze(), ATLAS_2014_I1312627::analyze(), MC_SUSY::analyze(), ATLAS_2011_S9041966::analyze(), ATLAS_2015_I1345452::analyze(), ATLAS_2012_I943401::analyze(), ATLAS_2011_S9225137::analyze(), MC_VH2BB::analyze(), ATLAS_2011_I944826::analyze(), ATLAS_2012_I1094568::analyze(), ATLAS_2014_I1319490::analyze(), ATLAS_2012_I1093734::analyze(), ATLAS_2014_I1282447::analyze(), ATLAS_2011_I919017::analyze(), ATLAS_2012_I1204447::apply_reco_eff(), ATLAS_2014_I1327229::apply_reco_eff(), HeavyHadrons::bHadrons(), JetShape::calc(), HeavyHadrons::cHadrons(), CMS_2013_I1261026::eventDecomp(), ATLAS_2012_I1084540::fillMap(), ATLAS_2014_I1319490::fillPlots(), ATLAS_2010_S8918562::fillPtEtaNch(), CMS_2013_I1258128::makePhotonCut(), STARRandomFilter::operator()(), FinalState::project(), LeadingParticlesFinalState::project(), VetoedFinalState::project(), and Variables::Variables().

{ return pt(); }
double pt2 ( ) const [inline]

Get the $ p_T^2 $ directly.

Definition at line 52 of file ParticleBase.hh.

References ParticleBase::momentum(), and FourMomentum::pt2().

Referenced by ParticleBase::perp2(), and ParticleBase::pT2().

{ return momentum().pt2(); }
double pT2 ( ) const [inline]

Get the $ p_T^2 $ directly (alias).

Definition at line 54 of file ParticleBase.hh.

References ParticleBase::pt2().

Referenced by ATLAS_2011_S9108483::analyze().

{ return pt2(); }
double px ( ) const [inline]
double py ( ) const [inline]
double pz ( ) const [inline]
double rap ( ) const [inline]

Get the $ y $ directly (alias).

Definition at line 78 of file ParticleBase.hh.

References ParticleBase::momentum(), and FourMomentum::rapidity().

Referenced by ATLAS_2013_I1244522::analyze().

{ return momentum().rapidity(); }
double theta ( ) const [inline]

Synonym for polarAngle.

Definition at line 105 of file ParticleBase.hh.

References ParticleBase::momentum(), and FourVector::theta().

Referenced by CMS_2012_I1184941::analyze(), and ALEPH_1996_S3196992::analyze().

{ return momentum().theta(); }

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