#include <ParticleBase.h>
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 LorentzVector & | p4 () 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 PolarLorentzVector & | polarP4 () 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 Point & | vertex () 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... | |
Definition at line 18 of file ParticleBase.h.
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.
typedef math::XYZPointD ParticleBase::Point |
point in the space
Definition at line 28 of file ParticleBase.h.
Lorentz vector.
Definition at line 26 of file ParticleBase.h.
typedef math::XYZVectorD ParticleBase::Vector |
point in the space
Definition at line 30 of file ParticleBase.h.
|
inline |
default constructor
Definition at line 32 of file ParticleBase.h.
|
inline |
constructor from values
Definition at line 34 of file ParticleBase.h.
References qx3_.
|
inline |
constructor from values
Definition at line 43 of file ParticleBase.h.
References qx3_.
|
inlinevirtual |
|
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_.
|
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().
|
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().
|
inline |
electric charge
Definition at line 54 of file ParticleBase.h.
References qx3_.
Referenced by FWTrackingParticleProxyBuilder::build(), MuonMCClassifier::convertAndPush(), RecoMuonValidator::MuonME::fill(), CosmicParametersDefinerForTP::momentum(), ParametersDefinerForTP::momentum(), TrackingParticleSelector::operator()(), CosmicTrackingParticleSelector::operator()(), operator<<(), ShallowSimTracksProducer::produce(), RecoTracktoTP::s_qoverp(), TPtoRecoTrack::s_qoverp(), CosmicParametersDefinerForTP::vertex(), and ParametersDefinerForTP::vertex().
|
inlineprotected |
clear internal cache
Definition at line 318 of file ParticleBase.h.
References cacheCartesianFixed_, and cachePolarFixed_.
Referenced by setMass().
|
inline |
energy
Definition at line 105 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
|
inline |
transverse energy
Definition at line 111 of file ParticleBase.h.
References cachePolar(), and p4Polar_.
|
inline |
momentum pseudorapidity
Definition at line 173 of file ParticleBase.h.
References eta_.
Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().
|
inline |
is long lived?
Definition at line 280 of file ParticleBase.h.
References longLivedTag, and status_.
|
inline |
|
inline |
|
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().
|
inline |
transverse mass
Definition at line 127 of file ParticleBase.h.
References cachePolar(), and p4Polar_.
|
inline |
transverse mass squared
Definition at line 133 of file ParticleBase.h.
References cachePolar(), and p4Polar_.
|
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().
|
inline |
four-momentum Lorentz vector
Definition at line 74 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
Referenced by MuonMCClassifier::convertAndPush(), operator<<(), and setP4().
|
inline |
PDG identifier.
Definition at line 253 of file ParticleBase.h.
References pdgId_.
Referenced by setPdgId().
|
inline |
momentum azimuthal angle
Definition at line 162 of file ParticleBase.h.
References phi_.
Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().
|
inline |
four-momentum Lorentz vector
Definition at line 80 of file ParticleBase.h.
References cachePolar(), and p4Polar_.
|
inline |
transverse momentum
Definition at line 157 of file ParticleBase.h.
References pt_.
Referenced by RecoMuonValidator::MuonME::fill(), and ShallowSimTracksProducer::produce().
|
inline |
x coordinate of momentum vector
Definition at line 139 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
y coordinate of momentum vector
Definition at line 145 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
z coordinate of momentum vector
Definition at line 151 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
repidity
Definition at line 178 of file ParticleBase.h.
References cachePolar(), and p4Polar_.
Referenced by y().
|
inline |
|
inline |
set long lived flag
Definition at line 275 of file ParticleBase.h.
References longLivedTag, and status_.
|
inline |
set particle mass
Definition at line 212 of file ParticleBase.h.
References clearCache(), m, and mass_.
|
inline |
set 4-momentum
Definition at line 189 of file ParticleBase.h.
References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Cartesian_, p4Polar_, phi_, and pt_.
|
inline |
set 4-momentum
Definition at line 201 of file ParticleBase.h.
References cacheCartesianFixed_, cachePolarFixed_, eta_, mass_, p4(), p4Polar_, phi_, and pt_.
|
inline |
|
inline |
Definition at line 217 of file ParticleBase.h.
References cacheCartesian(), eta_, mass_, p4Cartesian_, p4Polar_, phi_, and pt_.
|
inline |
|
inline |
|
inline |
set vertex
Definition at line 248 of file ParticleBase.h.
References vertex(), and vertex_.
Referenced by TrackingParticle::setVertex().
|
inline |
status word
Definition at line 263 of file ParticleBase.h.
References status_.
Referenced by MuonMCClassifier::convertAndPush(), TrackingParticleSelector::operator()(), and setStatus().
|
inline |
momentum polar angle
Definition at line 167 of file ParticleBase.h.
References cacheCartesian(), and p4Cartesian_.
Referenced by ShallowSimTracksProducer::produce().
|
inline |
|
inline |
vertex position
Definition at line 228 of file ParticleBase.h.
References vertex_.
Referenced by MultiTrackValidator::analyze(), V0Validator::analyze(), MuonTrackValidator::analyze(), MuonMCClassifier::convertAndPush(), RecoMuonValidator::MuonME::fill(), ParametersDefinerForTP::momentum(), TrackingParticleSelector::operator()(), operator<<(), setVertex(), and ParametersDefinerForTP::vertex().
|
inline |
x coordinate of vertex position
Definition at line 233 of file ParticleBase.h.
References vertex_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
y coordinate of vertex position
Definition at line 238 of file ParticleBase.h.
References vertex_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
z coordinate of vertex position
Definition at line 243 of file ParticleBase.h.
References vertex_.
Referenced by FWTrackingParticleProxyBuilder::build().
|
inline |
repidity
Definition at line 184 of file ParticleBase.h.
References rapidity().
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().
|
mutableprotected |
Definition at line 301 of file ParticleBase.h.
Referenced by cacheCartesian(), clearCache(), and setP4().
|
mutableprotected |
has cache been set?
Definition at line 301 of file ParticleBase.h.
Referenced by cachePolar(), clearCache(), and setP4().
|
protected |
Definition at line 289 of file ParticleBase.h.
Referenced by cachePolar(), eta(), setP4(), and setPz().
|
static |
long lived flag
Definition at line 273 of file ParticleBase.h.
Referenced by longLived(), and setLongLived().
|
protected |
Definition at line 289 of file ParticleBase.h.
Referenced by cachePolar(), mass(), massSqr(), setMass(), setP4(), and setPz().
|
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().
|
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().
|
protected |
PDG identifier.
Definition at line 293 of file ParticleBase.h.
Referenced by pdgId(), and setPdgId().
|
protected |
Definition at line 289 of file ParticleBase.h.
Referenced by cachePolar(), phi(), setP4(), and setPz().
|
protected |
four-momentum Lorentz vector
Definition at line 289 of file ParticleBase.h.
Referenced by cachePolar(), pt(), setP4(), and setPz().
|
protected |
electric charge
Definition at line 287 of file ParticleBase.h.
Referenced by charge(), ParticleBase(), setCharge(), setThreeCharge(), and threeCharge().
|
protected |
status word
Definition at line 295 of file ParticleBase.h.
Referenced by longLived(), setLongLived(), setStatus(), and status().
|
protected |
vertex position
Definition at line 291 of file ParticleBase.h.
Referenced by setVertex(), vertex(), vx(), vy(), and vz().