CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
ParticleBase Class Reference

#include <ParticleBase.h>

Inheritance diagram for ParticleBase:
TrackingParticle

Public Types

typedef int Charge
 electric charge type More...
 
typedef math::XYZTLorentzVectorD LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPointD Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVectorD Vector
 point in the space More...
 

Public Member Functions

Vector boostToCM () const
 
int charge () const
 electric charge More...
 
double energy () const
 energy More...
 
double et () const
 transverse energy More...
 
double eta () const
 momentum pseudorapidity More...
 
bool longLived () const
 is long lived? More...
 
double mass () const
 mass More...
 
double massSqr () const
 mass squared More...
 
Vector momentum () const
 spatial momentum vector More...
 
double mt () const
 transverse mass More...
 
double mtSqr () const
 transverse mass squared More...
 
double p () const
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
 ParticleBase ()
 default constructor More...
 
 ParticleBase (Charge q, const LorentzVector &p4, const Point &vertex=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 ParticleBase (Charge q, const PolarLorentzVector &p4, const Point &vertex=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
int pdgId () const
 PDG identifier. More...
 
double phi () const
 momentum azimuthal angle More...
 
const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
double pt () const
 transverse momentum More...
 
double px () const
 x coordinate of momentum vector More...
 
double py () const
 y coordinate of momentum vector More...
 
double pz () const
 z coordinate of momentum vector More...
 
double rapidity () const
 repidity More...
 
void setCharge (Charge q)
 set electric charge More...
 
void setLongLived ()
 set long lived flag More...
 
void setMass (double m)
 set particle mass More...
 
void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
void setPdgId (int pdgId)
 
void setPz (double pz)
 
void setStatus (int status)
 set status word More...
 
void setThreeCharge (Charge qx3)
 set electric charge More...
 
void setVertex (const Point &vertex)
 set vertex More...
 
int status () const
 status word More...
 
double theta () const
 momentum polar angle More...
 
int threeCharge () const
 electric charge More...
 
const Pointvertex () const
 vertex position More...
 
double vx () const
 x coordinate of vertex position More...
 
double vy () const
 y coordinate of vertex position More...
 
double vz () const
 z coordinate of vertex position More...
 
double y () const
 repidity More...
 
virtual ~ParticleBase ()
 destructor More...
 

Static Public Attributes

static const unsigned int longLivedTag = 65536
 long lived flag More...
 

Protected Member Functions

void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 

Protected Attributes

bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Definition at line 18 of file ParticleBase.h.

Member Typedef Documentation

typedef int ParticleBase::Charge

electric charge type

Definition at line 22 of file ParticleBase.h.

Lorentz vector.

Definition at line 24 of file ParticleBase.h.

point in the space

Definition at line 28 of file ParticleBase.h.

Lorentz vector.

Definition at line 26 of file ParticleBase.h.

point in the space

Definition at line 30 of file ParticleBase.h.

Constructor & Destructor Documentation

ParticleBase::ParticleBase ( )
inline

default constructor

Definition at line 32 of file ParticleBase.h.

32 : cachePolarFixed_( false ), cacheCartesianFixed_( false ) { }
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
ParticleBase::ParticleBase ( Charge  q,
const LorentzVector p4,
const Point vertex = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 34 of file ParticleBase.h.

References qx3_.

35  :
36  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
38  cachePolarFixed_( false ), cacheCartesianFixed_( false )
39  {
40  if ( integerCharge ) qx3_ *= 3;
41  }
int status_
status word
Definition: ParticleBase.h:295
int pdgId() const
PDG identifier.
Definition: ParticleBase.h:253
int pdgId_
PDG identifier.
Definition: ParticleBase.h:293
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
Point vertex_
vertex position
Definition: ParticleBase.h:291
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: ParticleBase.h:74
Charge qx3_
electric charge
Definition: ParticleBase.h:287
int status() const
status word
Definition: ParticleBase.h:263
const Point & vertex() const
vertex position
Definition: ParticleBase.h:228
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
ParticleBase::ParticleBase ( Charge  q,
const PolarLorentzVector p4,
const Point vertex = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 43 of file ParticleBase.h.

References qx3_.

44  :
45  qx3_( q ), pt_( p4.pt() ), eta_( p4.eta() ), phi_( p4.phi() ), mass_( p4.mass() ),
47  cachePolarFixed_( false ), cacheCartesianFixed_( false )
48  {
49  if ( integerCharge ) qx3_ *= 3;
50  }
int status_
status word
Definition: ParticleBase.h:295
int pdgId() const
PDG identifier.
Definition: ParticleBase.h:253
int pdgId_
PDG identifier.
Definition: ParticleBase.h:293
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
Point vertex_
vertex position
Definition: ParticleBase.h:291
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: ParticleBase.h:74
Charge qx3_
electric charge
Definition: ParticleBase.h:287
int status() const
status word
Definition: ParticleBase.h:263
const Point & vertex() const
vertex position
Definition: ParticleBase.h:228
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
virtual ParticleBase::~ParticleBase ( )
inlinevirtual

destructor

Definition at line 52 of file ParticleBase.h.

52 { }

Member Function Documentation

Vector ParticleBase::boostToCM ( ) const
inline

boost vector to boost a Lorentz vector to the particle center of mass system

Definition at line 93 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

94  {
96  return p4Cartesian_.BoostToCM();
97  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
void ParticleBase::cacheCartesian ( ) const
inlineprotected

set internal cache

Definition at line 310 of file ParticleBase.h.

References cacheCartesianFixed_, cachePolar(), p4Cartesian_, and p4Polar_.

Referenced by boostToCM(), energy(), momentum(), p(), p4(), px(), py(), pz(), setPz(), and theta().

311  {
312  if ( cacheCartesianFixed_ ) return;
313  cachePolar();
315  cacheCartesianFixed_ = true;
316  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
void ParticleBase::cachePolar ( ) const
inlineprotected

set internal cache

Definition at line 303 of file ParticleBase.h.

References cachePolarFixed_, eta_, mass_, p4Polar_, phi_, and pt_.

Referenced by cacheCartesian(), et(), mt(), mtSqr(), polarP4(), and rapidity().

304  {
305  if ( cachePolarFixed_ ) return;
307  cachePolarFixed_ = true;
308  }
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: ParticleBase.h:26
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
int ParticleBase::charge ( void  ) const
inline
void ParticleBase::clearCache ( ) const
inlineprotected

clear internal cache

Definition at line 318 of file ParticleBase.h.

References cacheCartesianFixed_, and cachePolarFixed_.

Referenced by setMass().

319  {
320  cachePolarFixed_ = false;
321  cacheCartesianFixed_ = false;
322  }
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
double ParticleBase::energy ( void  ) const
inline

energy

Definition at line 105 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

106  {
107  cacheCartesian();
108  return p4Cartesian_.E();
109  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
double ParticleBase::et ( ) const
inline

transverse energy

Definition at line 111 of file ParticleBase.h.

References cachePolar(), and p4Polar_.

112  {
113  cachePolar();
114  return p4Polar_.Et();
115  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
double ParticleBase::eta ( void  ) const
inline

momentum pseudorapidity

Definition at line 173 of file ParticleBase.h.

References eta_.

Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().

174  {
175  return eta_;
176  }
bool ParticleBase::longLived ( ) const
inline

is long lived?

Definition at line 280 of file ParticleBase.h.

References longLivedTag, and status_.

281  {
282  return status_ & longLivedTag;
283  }
int status_
status word
Definition: ParticleBase.h:295
static const unsigned int longLivedTag
long lived flag
Definition: ParticleBase.h:273
double ParticleBase::mass ( ) const
inline

mass

Definition at line 117 of file ParticleBase.h.

References mass_.

118  {
119  return mass_;
120  }
double ParticleBase::massSqr ( ) const
inline

mass squared

Definition at line 122 of file ParticleBase.h.

References mass_.

123  {
124  return mass_ * mass_;
125  }
Vector ParticleBase::momentum ( ) const
inline

spatial momentum vector

Definition at line 86 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by MultiTrackValidator::analyze(), V0Validator::analyze(), MuonTrackValidator::analyze(), RecoMuonValidator::MuonME::fill(), ParametersDefinerForTP::momentum(), TrackingParticleSelector::operator()(), and ParametersDefinerForTP::vertex().

87  {
89  return p4Cartesian_.Vect();
90  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
double ParticleBase::mt ( ) const
inline

transverse mass

Definition at line 127 of file ParticleBase.h.

References cachePolar(), and p4Polar_.

128  {
129  cachePolar();
130  return p4Polar_.Mt();
131  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
double ParticleBase::mtSqr ( ) const
inline

transverse mass squared

Definition at line 133 of file ParticleBase.h.

References cachePolar(), and p4Polar_.

134  {
135  cachePolar();
136  return p4Polar_.Mt2();
137  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
double ParticleBase::p ( ) const
inline

magnitude of momentum vector

Definition at line 99 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().

100  {
101  cacheCartesian();
102  return p4Cartesian_.P();
103  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
const LorentzVector& ParticleBase::p4 ( ) const
inline

four-momentum Lorentz vector

Definition at line 74 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by MuonMCClassifier::convertAndPush(), operator<<(), and setP4().

75  {
77  return p4Cartesian_;
78  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
int ParticleBase::pdgId ( ) const
inline

PDG identifier.

Definition at line 253 of file ParticleBase.h.

References pdgId_.

Referenced by setPdgId().

254  {
255  return pdgId_;
256  }
int pdgId_
PDG identifier.
Definition: ParticleBase.h:293
double ParticleBase::phi ( void  ) const
inline

momentum azimuthal angle

Definition at line 162 of file ParticleBase.h.

References phi_.

Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().

163  {
164  return phi_;
165  }
const PolarLorentzVector& ParticleBase::polarP4 ( ) const
inline

four-momentum Lorentz vector

Definition at line 80 of file ParticleBase.h.

References cachePolar(), and p4Polar_.

81  {
82  cachePolar();
83  return p4Polar_;
84  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
double ParticleBase::pt ( ) const
inline

transverse momentum

Definition at line 157 of file ParticleBase.h.

References pt_.

Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().

158  {
159  return pt_;
160  }
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
double ParticleBase::px ( ) const
inline

x coordinate of momentum vector

Definition at line 139 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by FWTrackingParticleProxyBuilder::build().

140  {
141  cacheCartesian();
142  return p4Cartesian_.Px();
143  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
double ParticleBase::py ( ) const
inline

y coordinate of momentum vector

Definition at line 145 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by FWTrackingParticleProxyBuilder::build().

146  {
147  cacheCartesian();
148  return p4Cartesian_.Py();
149  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
double ParticleBase::pz ( ) const
inline

z coordinate of momentum vector

Definition at line 151 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by FWTrackingParticleProxyBuilder::build().

152  {
153  cacheCartesian();
154  return p4Cartesian_.Pz();
155  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
double ParticleBase::rapidity ( ) const
inline

repidity

Definition at line 178 of file ParticleBase.h.

References cachePolar(), and p4Polar_.

Referenced by y().

179  {
180  cachePolar();
181  return p4Polar_.Rapidity();
182  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cachePolar() const
set internal cache
Definition: ParticleBase.h:303
void ParticleBase::setCharge ( Charge  q)
inline

set electric charge

Definition at line 59 of file ParticleBase.h.

References qx3_.

60  {
61  qx3_ = q * 3;
62  }
Charge qx3_
electric charge
Definition: ParticleBase.h:287
void ParticleBase::setLongLived ( )
inline

set long lived flag

Definition at line 275 of file ParticleBase.h.

References longLivedTag, and status_.

276  {
278  }
int status_
status word
Definition: ParticleBase.h:295
static const unsigned int longLivedTag
long lived flag
Definition: ParticleBase.h:273
void ParticleBase::setMass ( double  m)
inline

set particle mass

Definition at line 212 of file ParticleBase.h.

References clearCache(), m, and mass_.

213  {
214  mass_ = m;
215  clearCache();
216  }
void clearCache() const
clear internal cache
Definition: ParticleBase.h:318
void ParticleBase::setP4 ( const LorentzVector p4)
inline

set 4-momentum

Definition at line 189 of file ParticleBase.h.

References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Cartesian_, p4Polar_, phi_, and pt_.

190  {
191  p4Cartesian_ = p4;
192  p4Polar_ = p4;
193  pt_ = p4Polar_.pt();
194  eta_ = p4Polar_.eta();
195  phi_ = p4Polar_.phi();
196  mass_ = p4Polar_.mass();
197  cachePolarFixed_ = true;
198  cacheCartesianFixed_ = true;
199  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: ParticleBase.h:74
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
void ParticleBase::setP4 ( const PolarLorentzVector p4)
inline

set 4-momentum

Definition at line 201 of file ParticleBase.h.

References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Polar_, phi_, and pt_.

202  {
203  p4Polar_ = p4;
204  pt_ = p4Polar_.pt();
205  eta_ = p4Polar_.eta();
206  phi_ = p4Polar_.phi();
207  mass_ = p4Polar_.mass();
208  cachePolarFixed_ = true;
209  cacheCartesianFixed_ = false;
210  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
bool cachePolarFixed_
has cache been set?
Definition: ParticleBase.h:301
const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: ParticleBase.h:74
bool cacheCartesianFixed_
Definition: ParticleBase.h:301
void ParticleBase::setPdgId ( int  pdgId)
inline

Definition at line 258 of file ParticleBase.h.

References pdgId(), and pdgId_.

259  {
260  pdgId_ = pdgId;
261  }
int pdgId() const
PDG identifier.
Definition: ParticleBase.h:253
int pdgId_
PDG identifier.
Definition: ParticleBase.h:293
void ParticleBase::setPz ( double  pz)
inline

Definition at line 217 of file ParticleBase.h.

References cacheCartesian(), eta_, mass_, p4Cartesian_, p4Polar_, phi_, and pt_.

218  {
219  cacheCartesian();
220  p4Cartesian_.SetPz(pz);
222  pt_ = p4Polar_.pt();
223  eta_ = p4Polar_.eta();
224  phi_ = p4Polar_.phi();
225  mass_ = p4Polar_.mass();
226  }
PolarLorentzVector p4Polar_
internal cache for p4
Definition: ParticleBase.h:297
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
float pt_
four-momentum Lorentz vector
Definition: ParticleBase.h:289
double pz() const
z coordinate of momentum vector
Definition: ParticleBase.h:151
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
void ParticleBase::setStatus ( int  status)
inline

set status word

Definition at line 268 of file ParticleBase.h.

References status(), and status_.

269  {
270  status_ = status;
271  }
int status_
status word
Definition: ParticleBase.h:295
int status() const
status word
Definition: ParticleBase.h:263
void ParticleBase::setThreeCharge ( Charge  qx3)
inline

set electric charge

Definition at line 69 of file ParticleBase.h.

References qx3_.

70  {
71  qx3_ = qx3;
72  }
Charge qx3_
electric charge
Definition: ParticleBase.h:287
void ParticleBase::setVertex ( const Point vertex)
inline

set vertex

Definition at line 248 of file ParticleBase.h.

References vertex(), and vertex_.

Referenced by TrackingParticle::setVertex().

249  {
250  vertex_ = vertex;
251  }
Point vertex_
vertex position
Definition: ParticleBase.h:291
const Point & vertex() const
vertex position
Definition: ParticleBase.h:228
int ParticleBase::status ( void  ) const
inline

status word

Definition at line 263 of file ParticleBase.h.

References status_.

Referenced by MuonMCClassifier::convertAndPush(), TrackingParticleSelector::operator()(), and setStatus().

264  {
265  return status_;
266  }
int status_
status word
Definition: ParticleBase.h:295
double ParticleBase::theta ( void  ) const
inline

momentum polar angle

Definition at line 167 of file ParticleBase.h.

References cacheCartesian(), and p4Cartesian_.

Referenced by ShallowSimTracksProducer::produce().

168  {
169  cacheCartesian();
170  return p4Cartesian_.Theta();
171  }
void cacheCartesian() const
set internal cache
Definition: ParticleBase.h:310
LorentzVector p4Cartesian_
internal cache for p4
Definition: ParticleBase.h:299
int ParticleBase::threeCharge ( ) const
inline

electric charge

Definition at line 64 of file ParticleBase.h.

References qx3_.

65  {
66  return qx3_;
67  }
Charge qx3_
electric charge
Definition: ParticleBase.h:287
const Point& ParticleBase::vertex ( ) const
inline
double ParticleBase::vx ( ) const
inline

x coordinate of vertex position

Definition at line 233 of file ParticleBase.h.

References vertex_.

Referenced by FWTrackingParticleProxyBuilder::build().

234  {
235  return vertex_.X();
236  }
Point vertex_
vertex position
Definition: ParticleBase.h:291
double ParticleBase::vy ( ) const
inline

y coordinate of vertex position

Definition at line 238 of file ParticleBase.h.

References vertex_.

Referenced by FWTrackingParticleProxyBuilder::build().

239  {
240  return vertex_.Y();
241  }
Point vertex_
vertex position
Definition: ParticleBase.h:291
double ParticleBase::vz ( ) const
inline

z coordinate of vertex position

Definition at line 243 of file ParticleBase.h.

References vertex_.

Referenced by FWTrackingParticleProxyBuilder::build().

244  {
245  return vertex_.Z();
246  }
Point vertex_
vertex position
Definition: ParticleBase.h:291
double ParticleBase::y ( ) const
inline

Member Data Documentation

bool ParticleBase::cacheCartesianFixed_
mutableprotected

Definition at line 301 of file ParticleBase.h.

Referenced by cacheCartesian(), clearCache(), and setP4().

bool ParticleBase::cachePolarFixed_
mutableprotected

has cache been set?

Definition at line 301 of file ParticleBase.h.

Referenced by cachePolar(), clearCache(), and setP4().

float ParticleBase::eta_
protected

Definition at line 289 of file ParticleBase.h.

Referenced by cachePolar(), eta(), setP4(), and setPz().

const unsigned int ParticleBase::longLivedTag = 65536
static

long lived flag

Definition at line 273 of file ParticleBase.h.

Referenced by longLived(), and setLongLived().

float ParticleBase::mass_
protected

Definition at line 289 of file ParticleBase.h.

Referenced by cachePolar(), mass(), massSqr(), setMass(), setP4(), and setPz().

LorentzVector ParticleBase::p4Cartesian_
mutableprotected

internal cache for p4

Definition at line 299 of file ParticleBase.h.

Referenced by boostToCM(), cacheCartesian(), energy(), momentum(), p(), p4(), px(), py(), pz(), setP4(), setPz(), and theta().

PolarLorentzVector ParticleBase::p4Polar_
mutableprotected

internal cache for p4

Definition at line 297 of file ParticleBase.h.

Referenced by cacheCartesian(), cachePolar(), et(), mt(), mtSqr(), polarP4(), rapidity(), setP4(), and setPz().

int ParticleBase::pdgId_
protected

PDG identifier.

Definition at line 293 of file ParticleBase.h.

Referenced by pdgId(), and setPdgId().

float ParticleBase::phi_
protected

Definition at line 289 of file ParticleBase.h.

Referenced by cachePolar(), phi(), setP4(), and setPz().

float ParticleBase::pt_
protected

four-momentum Lorentz vector

Definition at line 289 of file ParticleBase.h.

Referenced by cachePolar(), pt(), setP4(), and setPz().

Charge ParticleBase::qx3_
protected

electric charge

Definition at line 287 of file ParticleBase.h.

Referenced by charge(), ParticleBase(), setCharge(), setThreeCharge(), and threeCharge().

int ParticleBase::status_
protected

status word

Definition at line 295 of file ParticleBase.h.

Referenced by longLived(), setLongLived(), setStatus(), and status().

Point ParticleBase::vertex_
protected

vertex position

Definition at line 291 of file ParticleBase.h.

Referenced by setVertex(), vertex(), vx(), vy(), and vz().