#include <ParticleState.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 | et2 () const |
transverse energy squared (use this for cuts)! More... | |
double | eta () const |
momentum pseudorapidity More... | |
bool | longLived () const |
is long lived? More... | |
double | mass () const |
mass More... | |
bool | massConstraint () const |
do mass constraint? 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... | |
ParticleState () | |
default constructor More... | |
ParticleState (Charge q, const PtEtaPhiMass &p4, const Point &vertex=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true) | |
constructor from values More... | |
ParticleState (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... | |
ParticleState (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... | |
ParticleState (Charge q, const GlobalVector &p3, float iEnergy, float imass, const Point &vertex=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true) | |
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 | setCartesian () |
set internal cache 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 | setMassConstraint () |
set mass constraint flag 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... | |
Private Attributes | |
LorentzVector | p4Cartesian_ |
internal cache for p4 More... | |
PolarLorentzVector | p4Polar_ |
four-momentum Lorentz vector More... | |
int | pdgId_ |
PDG identifier. More... | |
Charge | qx3_ |
electric charge More... | |
int | status_ |
status word More... | |
Point | vertex_ |
vertex position More... | |
Static Private Attributes | |
static const unsigned int | longLivedTag = 65536 |
static const unsigned int | massConstraintTag = 131072 |
Base class describing a generic reconstructed particle its main subclass is Candidate
Definition at line 22 of file ParticleState.h.
typedef int reco::ParticleState::Charge |
electric charge type
Definition at line 25 of file ParticleState.h.
Lorentz vector.
Definition at line 27 of file ParticleState.h.
point in the space
Definition at line 31 of file ParticleState.h.
Lorentz vector.
Definition at line 29 of file ParticleState.h.
point in the space
Definition at line 33 of file ParticleState.h.
|
inline |
|
inline |
constructor from values
Definition at line 39 of file ParticleState.h.
|
inline |
constructor from values
Definition at line 46 of file ParticleState.h.
|
inline |
constructor from values
Definition at line 54 of file ParticleState.h.
|
inline |
Definition at line 60 of file ParticleState.h.
References x().
|
inline |
boost vector to boost a Lorentz vector to the particle center of mass system
Definition at line 87 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::boostToCM(), and reco::LeafCandidate::boostToCM().
|
inline |
electric charge
Definition at line 72 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::charge(), and reco::LeafCandidate::charge().
|
inline |
energy
Definition at line 91 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::energy(), reco::LeafCandidate::energy(), and Jet.Jet::rawEnergy().
|
inline |
transverse energy
Definition at line 93 of file ParticleState.h.
References p4Cartesian_, and pt().
Referenced by reco::Particle::et(), and reco::LeafCandidate::et().
|
inline |
transverse energy squared (use this for cuts)!
Definition at line 95 of file ParticleState.h.
References p4Cartesian_, and pt().
Referenced by reco::Particle::et2(), and reco::LeafCandidate::et2().
|
inline |
momentum pseudorapidity
Definition at line 117 of file ParticleState.h.
References p4Polar_.
Referenced by Particle.Particle::__str__(), reco::Particle::eta(), reco::LeafCandidate::eta(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
|
inline |
is long lived?
Definition at line 165 of file ParticleState.h.
References longLivedTag, and status_.
Referenced by reco::Particle::longLived(), and reco::LeafCandidate::longLived().
|
inline |
mass
Definition at line 97 of file ParticleState.h.
References p4Polar_.
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), reco::Particle::mass(), reco::LeafCandidate::mass(), and massSqr().
|
inline |
do mass constraint?
Definition at line 169 of file ParticleState.h.
References massConstraintTag, and status_.
Referenced by reco::Particle::massConstraint(), and reco::LeafCandidate::massConstraint().
|
inline |
|
inline |
spatial momentum vector
Definition at line 84 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::momentum(), and reco::LeafCandidate::momentum().
|
inline |
transverse mass
Definition at line 101 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::mt(), and reco::LeafCandidate::mt().
|
inline |
transverse mass squared
Definition at line 103 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::mtSqr(), and reco::LeafCandidate::mtSqr().
|
inline |
magnitude of momentum vector
Definition at line 89 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::p(), reco::LeafCandidate::p(), and Electron.Electron::ptErr().
|
inline |
four-momentum Lorentz vector
Definition at line 80 of file ParticleState.h.
References p4Cartesian_.
Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), reco::Particle::p4(), reco::LeafCandidate::p4(), Lepton.Lepton::p4WithFSR(), and setP4().
|
inline |
PDG identifier.
Definition at line 155 of file ParticleState.h.
References pdgId_.
Referenced by Particle.Particle::__str__(), reco::Particle::pdgId(), reco::LeafCandidate::pdgId(), and setPdgId().
|
inline |
momentum azimuthal angle
Definition at line 113 of file ParticleState.h.
References p4Polar_.
Referenced by Particle.Particle::__str__(), reco::Particle::phi(), reco::LeafCandidate::phi(), and ntupleDataFormat.Track::phiPull().
|
inline |
four-momentum Lorentz vector
Definition at line 82 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::polarP4(), and reco::LeafCandidate::polarP4().
|
inline |
transverse momentum
Definition at line 111 of file ParticleState.h.
References p4Polar_.
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), et(), et2(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), reco::Particle::pt(), reco::LeafCandidate::pt(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
|
inline |
x coordinate of momentum vector
Definition at line 105 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::px(), and reco::LeafCandidate::px().
|
inline |
y coordinate of momentum vector
Definition at line 107 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::py(), and reco::LeafCandidate::py().
|
inline |
z coordinate of momentum vector
Definition at line 109 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::pz(), and reco::LeafCandidate::pz().
|
inline |
repidity
Definition at line 119 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::rapidity(), reco::LeafCandidate::rapidity(), and y().
|
inline |
set internal cache
Definition at line 67 of file ParticleState.h.
References p4Cartesian_, and p4Polar_.
Referenced by setMass().
|
inline |
set electric charge
Definition at line 74 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::setCharge(), and reco::LeafCandidate::setCharge().
|
inline |
set long lived flag
Definition at line 163 of file ParticleState.h.
References longLivedTag, and status_.
Referenced by reco::Particle::setLongLived(), and reco::LeafCandidate::setLongLived().
|
inline |
set particle mass
Definition at line 134 of file ParticleState.h.
References p4Polar_, and setCartesian().
Referenced by reco::Particle::setMass(), and reco::LeafCandidate::setMass().
|
inline |
set mass constraint flag
Definition at line 167 of file ParticleState.h.
References massConstraintTag, and status_.
Referenced by reco::Particle::setMassConstraint(), and reco::LeafCandidate::setMassConstraint().
|
inline |
set 4-momentum
Definition at line 123 of file ParticleState.h.
References p4(), p4Cartesian_, and p4Polar_.
Referenced by Jet.Jet::setCorrP4(), reco::Particle::setP4(), and reco::LeafCandidate::setP4().
|
inline |
set 4-momentum
Definition at line 129 of file ParticleState.h.
References p4(), p4Cartesian_, and p4Polar_.
Referenced by Jet.Jet::setCorrP4().
|
inline |
Definition at line 157 of file ParticleState.h.
References pdgId(), and pdgId_.
Referenced by reco::Particle::setPdgId(), and reco::LeafCandidate::setPdgId().
|
inline |
Definition at line 139 of file ParticleState.h.
References p4Cartesian_, and p4Polar_.
Referenced by reco::Particle::setPz(), and reco::LeafCandidate::setPz().
|
inline |
set status word
Definition at line 161 of file ParticleState.h.
References status(), and status_.
Referenced by reco::Particle::setStatus(), and reco::LeafCandidate::setStatus().
|
inline |
set electric charge
Definition at line 78 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::setThreeCharge(), and reco::LeafCandidate::setThreeCharge().
|
inline |
set vertex
Definition at line 153 of file ParticleState.h.
References vertex(), and vertex_.
Referenced by reco::Particle::setVertex(), and reco::LeafCandidate::setVertex().
|
inline |
status word
Definition at line 159 of file ParticleState.h.
References status_.
Referenced by setStatus(), reco::Particle::status(), and reco::LeafCandidate::status().
|
inline |
momentum polar angle
Definition at line 115 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::theta(), reco::LeafCandidate::theta(), and Tau.Tau::zImpact().
|
inline |
electric charge
Definition at line 76 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::threeCharge(), and reco::LeafCandidate::threeCharge().
|
inline |
vertex position
Definition at line 145 of file ParticleState.h.
References vertex_.
Referenced by Tau.Tau::dxy(), setVertex(), reco::Particle::vertex(), and reco::LeafCandidate::vertex().
|
inline |
x coordinate of vertex position
Definition at line 147 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vx(), and reco::LeafCandidate::vx().
|
inline |
y coordinate of vertex position
Definition at line 149 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vy(), and reco::LeafCandidate::vy().
|
inline |
z coordinate of vertex position
Definition at line 151 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vz(), and reco::LeafCandidate::vz().
|
inline |
repidity
Definition at line 121 of file ParticleState.h.
References rapidity().
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
staticprivate |
Definition at line 173 of file ParticleState.h.
Referenced by longLived(), and setLongLived().
|
staticprivate |
Definition at line 174 of file ParticleState.h.
Referenced by massConstraint(), and setMassConstraint().
|
private |
internal cache for p4
Definition at line 183 of file ParticleState.h.
Referenced by boostToCM(), energy(), et(), et2(), momentum(), p(), p4(), px(), py(), pz(), setCartesian(), setP4(), setPz(), and theta().
|
private |
four-momentum Lorentz vector
Definition at line 181 of file ParticleState.h.
Referenced by eta(), mass(), mt(), mtSqr(), phi(), polarP4(), pt(), rapidity(), setCartesian(), setMass(), setP4(), and setPz().
|
private |
PDG identifier.
Definition at line 189 of file ParticleState.h.
Referenced by pdgId(), and setPdgId().
|
private |
electric charge
Definition at line 186 of file ParticleState.h.
Referenced by charge(), setCharge(), setThreeCharge(), and threeCharge().
|
private |
status word
Definition at line 191 of file ParticleState.h.
Referenced by longLived(), massConstraint(), setLongLived(), setMassConstraint(), setStatus(), and status().
|
private |
vertex position
Definition at line 178 of file ParticleState.h.
Referenced by setVertex(), vertex(), vx(), vy(), and vz().