#include <Particle.h>
Public Types | |
typedef int | Charge |
electric charge type More... | |
typedef math::XYZTLorentzVector | LorentzVector |
Lorentz vector. More... | |
typedef math::XYZPoint | Point |
point in the space More... | |
typedef math::PtEtaPhiMLorentzVector | PolarLorentzVector |
Lorentz vector. More... | |
typedef math::XYZVector | 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... | |
Particle & | operator= (const Particle &rhs) |
double | p () const |
magnitude of momentum vector More... | |
const LorentzVector & | p4 () const |
four-momentum Lorentz vector More... | |
Particle () | |
default constructor More... | |
Particle (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... | |
Particle (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... | |
Particle (const Particle &srv) | |
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) |
set Pz More... | |
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... | |
void | swap (Particle &other) |
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 | ~Particle () |
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 | |
float | eta_ |
float | mass_ |
std::atomic< LorentzVector * > | p4Cartesian_ |
internal cache for p4 More... | |
std::atomic< 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... | |
Base class describing a generic reconstructed particle its main subclass is Candidate
Definition at line 22 of file Particle.h.
typedef int reco::Particle::Charge |
electric charge type
Definition at line 25 of file Particle.h.
Lorentz vector.
Definition at line 27 of file Particle.h.
typedef math::XYZPoint reco::Particle::Point |
point in the space
Definition at line 31 of file Particle.h.
Lorentz vector.
Definition at line 29 of file Particle.h.
point in the space
Definition at line 33 of file Particle.h.
Particle::Particle | ( | ) |
default constructor
Definition at line 9 of file Particle.cc.
Particle::Particle | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vertex = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 , |
||
bool | integerCharge = true |
||
) |
constructor from values
Definition at line 16 of file Particle.cc.
References qx3_.
Particle::Particle | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vertex = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 , |
||
bool | integerCharge = true |
||
) |
constructor from values
Definition at line 25 of file Particle.cc.
References qx3_.
|
virtual |
Particle::Particle | ( | const Particle & | srv | ) |
Definition at line 34 of file Particle.cc.
Particle::Vector Particle::boostToCM | ( | ) | const |
boost vector to boost a Lorentz vector to the particle center of mass system
Definition at line 102 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
|
protected |
set internal cache
Definition at line 281 of file Particle.cc.
References cachePolar(), p4Cartesian_, and p4Polar_.
Referenced by boostToCM(), energy(), momentum(), p(), p4(), px(), py(), pz(), setP4(), setPz(), and theta().
|
protected |
set internal cache
Definition at line 271 of file Particle.cc.
References eta_, mass_, p4Polar_, phi_, and pt_.
Referenced by cacheCartesian(), et(), mt(), mtSqr(), polarP4(), rapidity(), setP4(), and setPz().
int Particle::charge | ( | ) | const |
electric charge
Definition at line 70 of file Particle.cc.
References qx3_.
Referenced by ParticleReplacerZtautau::produce().
|
protected |
clear internal cache
Definition at line 292 of file Particle.cc.
References p4Cartesian_, and p4Polar_.
Referenced by setMass(), and ~Particle().
double Particle::energy | ( | ) | const |
energy
Definition at line 112 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
Referenced by EmDQMReco::analyze().
double Particle::et | ( | ) | const |
transverse energy
Definition at line 117 of file Particle.cc.
References cachePolar(), and p4Polar_.
double Particle::eta | ( | ) | const |
momentum pseudorapidity
Definition at line 168 of file Particle.cc.
References eta_.
Referenced by DQMExample_Step1::analyze().
bool Particle::longLived | ( | ) | const |
is long lived?
Definition at line 266 of file Particle.cc.
References longLivedTag, and status_.
double Particle::mass | ( | ) | const |
double Particle::massSqr | ( | ) | const |
Particle::Vector Particle::momentum | ( | ) | const |
spatial momentum vector
Definition at line 96 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
double Particle::mt | ( | ) | const |
transverse mass
Definition at line 130 of file Particle.cc.
References cachePolar(), and p4Polar_.
double Particle::mtSqr | ( | ) | const |
transverse mass squared
Definition at line 135 of file Particle.cc.
References cachePolar(), and p4Polar_.
Definition at line 42 of file Particle.cc.
References swap(), and groupFilesInBlocks::temp.
double Particle::p | ( | ) | const |
magnitude of momentum vector
Definition at line 107 of file Particle.cc.
References cacheCartesian(), P, and p4Cartesian_.
const Particle::LorentzVector & Particle::p4 | ( | ) | const |
four-momentum Lorentz vector
Definition at line 86 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
Referenced by TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), CandidateTriggerObjectProducer::produce(), ParticleReplacerZtautau::produce(), setP4(), ParticleReplacerZtautau::transformMuMu2LepLep(), and ParticleReplacerZtautau::transformMuMu2TauNu().
int Particle::pdgId | ( | ) | const |
PDG identifier.
Definition at line 246 of file Particle.cc.
References pdgId_.
Referenced by DQMExample_Step1::analyze(), ParticleReplacerZtautau::produce(), setPdgId(), ParticleReplacerZtautau::transformMuMu2LepLep(), and ParticleReplacerZtautau::transformMuMu2TauNu().
double Particle::phi | ( | ) | const |
momentum azimuthal angle
Definition at line 159 of file Particle.cc.
References phi_.
Referenced by DQMExample_Step1::analyze().
const Particle::PolarLorentzVector & Particle::polarP4 | ( | ) | const |
four-momentum Lorentz vector
Definition at line 91 of file Particle.cc.
References cachePolar(), and p4Polar_.
double Particle::pt | ( | ) | const |
transverse momentum
Definition at line 155 of file Particle.cc.
References pt_.
Referenced by DQMExample_Step1::analyze(), and IsMuMatchedToHLTSingleMu().
double Particle::px | ( | ) | const |
x coordinate of momentum vector
Definition at line 140 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
Referenced by ParticleReplacerZtautau::produce().
double Particle::py | ( | ) | const |
y coordinate of momentum vector
Definition at line 145 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
Referenced by ParticleReplacerZtautau::produce().
double Particle::pz | ( | ) | const |
z coordinate of momentum vector
Definition at line 150 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
Referenced by ParticleReplacerZtautau::produce().
double Particle::rapidity | ( | ) | const |
repidity
Definition at line 172 of file Particle.cc.
References cachePolar(), and p4Polar_.
Referenced by y().
void Particle::setCharge | ( | Charge | q | ) |
void Particle::setLongLived | ( | ) |
set long lived flag
Definition at line 262 of file Particle.cc.
References longLivedTag, and status_.
void Particle::setMass | ( | double | m | ) |
set particle mass
Definition at line 208 of file Particle.cc.
References clearCache(), m, and mass_.
void Particle::setP4 | ( | const LorentzVector & | p4 | ) |
set 4-momentum
Definition at line 182 of file Particle.cc.
References cacheCartesian(), cachePolar(), eta_, mass_, p4(), p4Cartesian_, p4Polar_, phi_, and pt_.
Referenced by ParticleReplacerZtautau::transformMuMu2LepLep(), and ParticleReplacerZtautau::transformMuMu2TauNu().
void Particle::setP4 | ( | const PolarLorentzVector & | p4 | ) |
set 4-momentum
Definition at line 196 of file Particle.cc.
References cachePolar(), eta_, mass_, p4(), p4Cartesian_, p4Polar_, phi_, and pt_.
void Particle::setPdgId | ( | int | pdgId | ) |
Definition at line 250 of file Particle.cc.
References pdgId(), and pdgId_.
Referenced by TtDilepEvtSolution::getLeptNeg(), TtDilepEvtSolution::getLeptPos(), ParticleReplacerZtautau::transformMuMu2LepLep(), and ParticleReplacerZtautau::transformMuMu2TauNu().
void Particle::setPz | ( | double | pz | ) |
set Pz
Definition at line 212 of file Particle.cc.
References cacheCartesian(), cachePolar(), eta_, mass_, p4Cartesian_, p4Polar_, phi_, and pt_.
void Particle::setStatus | ( | int | status | ) |
set status word
Definition at line 258 of file Particle.cc.
References status(), and status_.
Referenced by ParticleReplacerZtautau::produce(), ParticleReplacerZtautau::transformMuMu2LepLep(), and ParticleReplacerZtautau::transformMuMu2TauNu().
void Particle::setThreeCharge | ( | Charge | qx3 | ) |
void Particle::setVertex | ( | const Point & | vertex | ) |
int Particle::status | ( | ) | const |
status word
Definition at line 254 of file Particle.cc.
References status_.
Referenced by setStatus().
void Particle::swap | ( | Particle & | other | ) |
Definition at line 48 of file Particle.cc.
References eta_, mass_, p4Cartesian_, p4Polar_, pdgId_, phi_, pt_, qx3_, status_, std::swap(), and vertex_.
Referenced by operator=().
double Particle::theta | ( | ) | const |
momentum polar angle
Definition at line 163 of file Particle.cc.
References cacheCartesian(), and p4Cartesian_.
int Particle::threeCharge | ( | ) | const |
const Particle::Point & Particle::vertex | ( | ) | const |
vertex position
Definition at line 226 of file Particle.cc.
References vertex_.
Referenced by ParticleReplacerZtautau::produce(), and setVertex().
double Particle::vx | ( | ) | const |
x coordinate of vertex position
Definition at line 230 of file Particle.cc.
References vertex_.
Referenced by ParticleReplacerParticleGun::produce().
double Particle::vy | ( | ) | const |
y coordinate of vertex position
Definition at line 234 of file Particle.cc.
References vertex_.
Referenced by ParticleReplacerParticleGun::produce().
double Particle::vz | ( | ) | const |
z coordinate of vertex position
Definition at line 238 of file Particle.cc.
References vertex_.
Referenced by ParticleReplacerParticleGun::produce().
double Particle::y | ( | ) | const |
repidity
Definition at line 177 of file Particle.cc.
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().
|
protected |
Definition at line 135 of file Particle.h.
Referenced by cachePolar(), eta(), setP4(), setPz(), and swap().
|
static |
long lived flag
Definition at line 125 of file Particle.h.
Referenced by longLived(), and setLongLived().
|
protected |
Definition at line 135 of file Particle.h.
Referenced by cachePolar(), mass(), massSqr(), setMass(), setP4(), setPz(), and swap().
|
mutableprotected |
internal cache for p4
Definition at line 146 of file Particle.h.
Referenced by boostToCM(), cacheCartesian(), clearCache(), energy(), momentum(), p(), p4(), px(), py(), pz(), setP4(), setPz(), swap(), and theta().
|
mutableprotected |
internal cache for p4
Definition at line 144 of file Particle.h.
Referenced by cacheCartesian(), cachePolar(), clearCache(), et(), mt(), mtSqr(), polarP4(), rapidity(), setP4(), setPz(), and swap().
|
protected |
PDG identifier.
Definition at line 139 of file Particle.h.
Referenced by pdgId(), setPdgId(), and swap().
|
protected |
Definition at line 135 of file Particle.h.
Referenced by cachePolar(), phi(), setP4(), setPz(), and swap().
|
protected |
four-momentum Lorentz vector
Definition at line 135 of file Particle.h.
Referenced by cachePolar(), pt(), setP4(), setPz(), and swap().
|
protected |
electric charge
Definition at line 133 of file Particle.h.
Referenced by charge(), Particle(), setCharge(), setThreeCharge(), swap(), and threeCharge().
|
protected |
status word
Definition at line 141 of file Particle.h.
Referenced by longLived(), setLongLived(), setStatus(), status(), and swap().
|
protected |
vertex position
Definition at line 137 of file Particle.h.
Referenced by setVertex(), swap(), vertex(), vx(), vy(), and vz().