#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 GlobalVector &p3, float iEnergy, float imass, const Point &vertex=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true) | |
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 PtEtaPhiMass &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 | 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 |
|
inline |
|
inline |
|
inline |
|
inline |
boost vector to boost a Lorentz vector to the particle center of mass system
Definition at line 113 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::boostToCM(), and reco::LeafCandidate::boostToCM().
|
inline |
electric charge
Definition at line 98 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::charge(), and reco::LeafCandidate::charge().
|
inline |
energy
Definition at line 117 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::energy(), reco::LeafCandidate::energy(), and Jet.Jet::rawEnergy().
|
inline |
transverse energy
Definition at line 119 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 121 of file ParticleState.h.
References p4Cartesian_, and pt().
Referenced by reco::Particle::et2(), and reco::LeafCandidate::et2().
|
inline |
momentum pseudorapidity
Definition at line 143 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 188 of file ParticleState.h.
References longLivedTag, and status_.
Referenced by reco::Particle::longLived(), and reco::LeafCandidate::longLived().
|
inline |
mass
Definition at line 123 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 192 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 110 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::momentum(), and reco::LeafCandidate::momentum().
|
inline |
transverse mass
Definition at line 127 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::mt(), and reco::LeafCandidate::mt().
|
inline |
transverse mass squared
Definition at line 129 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::mtSqr(), and reco::LeafCandidate::mtSqr().
|
inline |
magnitude of momentum vector
Definition at line 115 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 106 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 178 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 139 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 108 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::polarP4(), and reco::LeafCandidate::polarP4().
|
inline |
transverse momentum
Definition at line 137 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 131 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::px(), and reco::LeafCandidate::px().
|
inline |
y coordinate of momentum vector
Definition at line 133 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::py(), and reco::LeafCandidate::py().
|
inline |
z coordinate of momentum vector
Definition at line 135 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::pz(), reco::LeafCandidate::pz(), and setPz().
|
inline |
repidity
Definition at line 145 of file ParticleState.h.
References p4Polar_.
Referenced by reco::Particle::rapidity(), reco::LeafCandidate::rapidity(), and y().
|
inline |
set internal cache
Definition at line 95 of file ParticleState.h.
References p4Cartesian_, and p4Polar_.
Referenced by setMass().
|
inline |
set electric charge
Definition at line 100 of file ParticleState.h.
References submitPVResolutionJobs::q, and qx3_.
Referenced by reco::Particle::setCharge(), and reco::LeafCandidate::setCharge().
|
inline |
set long lived flag
Definition at line 186 of file ParticleState.h.
References longLivedTag, and status_.
Referenced by reco::Particle::setLongLived(), and reco::LeafCandidate::setLongLived().
|
inline |
set particle mass
Definition at line 159 of file ParticleState.h.
References visualization-live-secondInstance_cfg::m, p4Polar_, and setCartesian().
Referenced by reco::Particle::setMass(), and reco::LeafCandidate::setMass().
|
inline |
set mass constraint flag
Definition at line 190 of file ParticleState.h.
References massConstraintTag, and status_.
Referenced by reco::Particle::setMassConstraint(), and reco::LeafCandidate::setMassConstraint().
|
inline |
set 4-momentum
Definition at line 149 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 154 of file ParticleState.h.
References p4(), p4Cartesian_, and p4Polar_.
Referenced by Jet.Jet::setCorrP4().
|
inline |
Definition at line 180 of file ParticleState.h.
References pdgId(), and pdgId_.
Referenced by reco::Particle::setPdgId(), and reco::LeafCandidate::setPdgId().
|
inline |
Definition at line 163 of file ParticleState.h.
References p4Cartesian_, p4Polar_, and pz().
Referenced by reco::Particle::setPz(), and reco::LeafCandidate::setPz().
|
inline |
set status word
Definition at line 184 of file ParticleState.h.
References status(), and status_.
Referenced by reco::Particle::setStatus(), and reco::LeafCandidate::setStatus().
|
inline |
set electric charge
Definition at line 104 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::setThreeCharge(), and reco::LeafCandidate::setThreeCharge().
|
inline |
set vertex
Definition at line 176 of file ParticleState.h.
References vertex(), and vertex_.
Referenced by reco::Particle::setVertex(), and reco::LeafCandidate::setVertex().
|
inline |
status word
Definition at line 182 of file ParticleState.h.
References status_.
Referenced by setStatus(), reco::Particle::status(), and reco::LeafCandidate::status().
|
inline |
momentum polar angle
Definition at line 141 of file ParticleState.h.
References p4Cartesian_.
Referenced by reco::Particle::theta(), reco::LeafCandidate::theta(), and Tau.Tau::zImpact().
|
inline |
electric charge
Definition at line 102 of file ParticleState.h.
References qx3_.
Referenced by reco::Particle::threeCharge(), and reco::LeafCandidate::threeCharge().
|
inline |
vertex position
Definition at line 168 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 170 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vx(), and reco::LeafCandidate::vx().
|
inline |
y coordinate of vertex position
Definition at line 172 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vy(), and reco::LeafCandidate::vy().
|
inline |
z coordinate of vertex position
Definition at line 174 of file ParticleState.h.
References vertex_.
Referenced by reco::Particle::vz(), and reco::LeafCandidate::vz().
|
inline |
repidity
Definition at line 147 of file ParticleState.h.
References rapidity().
Referenced by svgfig.Ellipse::__repr__(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
staticprivate |
Definition at line 195 of file ParticleState.h.
Referenced by longLived(), and setLongLived().
|
staticprivate |
Definition at line 196 of file ParticleState.h.
Referenced by massConstraint(), and setMassConstraint().
|
private |
internal cache for p4
Definition at line 205 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 203 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 211 of file ParticleState.h.
Referenced by pdgId(), and setPdgId().
|
private |
electric charge
Definition at line 208 of file ParticleState.h.
Referenced by charge(), setCharge(), setThreeCharge(), and threeCharge().
|
private |
status word
Definition at line 213 of file ParticleState.h.
Referenced by longLived(), massConstraint(), setLongLived(), setMassConstraint(), setStatus(), and status().
|
private |
vertex position
Definition at line 200 of file ParticleState.h.
Referenced by setVertex(), vertex(), vx(), vy(), and vz().