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 | Private Attributes | Static Private Attributes
reco::ParticleState Class Reference

#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 LorentzVectorp4 () 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 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 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 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...
 

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
 

Detailed Description

Base class describing a generic reconstructed particle its main subclass is Candidate

Author
Luca Lista, INFN

Definition at line 22 of file ParticleState.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

reco::ParticleState::ParticleState ( )
inline

default constructor

Definition at line 35 of file ParticleState.h.

reco::ParticleState::ParticleState ( Charge  q,
const PtEtaPhiMass p4,
const Point vertex = Point( 0, 0, 0 ),
int  pdgId = 0,
int  status = 0,
bool  integerCharge = true 
)
inline

constructor from values

Definition at line 39 of file ParticleState.h.

reco::ParticleState::ParticleState ( 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 46 of file ParticleState.h.

reco::ParticleState::ParticleState ( 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 54 of file ParticleState.h.

reco::ParticleState::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 
)
inline

Definition at line 60 of file ParticleState.h.

Member Function Documentation

Vector reco::ParticleState::boostToCM ( ) const
inline

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

Definition at line 87 of file ParticleState.h.

int reco::ParticleState::charge ( ) const
inline

electric charge

Definition at line 72 of file ParticleState.h.

double reco::ParticleState::energy ( ) const
inline

energy

Definition at line 91 of file ParticleState.h.

double reco::ParticleState::et ( ) const
inline

transverse energy

Definition at line 93 of file ParticleState.h.

double reco::ParticleState::et2 ( ) const
inline

transverse energy squared (use this for cuts)!

Definition at line 95 of file ParticleState.h.

double reco::ParticleState::eta ( ) const
inline

momentum pseudorapidity

Definition at line 117 of file ParticleState.h.

Referenced by Particle.Particle::__str__().

bool reco::ParticleState::longLived ( ) const
inline

is long lived?

Definition at line 165 of file ParticleState.h.

double reco::ParticleState::mass ( ) const
inline

mass

Definition at line 97 of file ParticleState.h.

Referenced by Particle.Particle::__str__(), and DiObject.DiMuon::__str__().

bool reco::ParticleState::massConstraint ( ) const
inline

do mass constraint?

Definition at line 169 of file ParticleState.h.

double reco::ParticleState::massSqr ( ) const
inline

mass squared

Definition at line 99 of file ParticleState.h.

Vector reco::ParticleState::momentum ( ) const
inline

spatial momentum vector

Definition at line 84 of file ParticleState.h.

double reco::ParticleState::mt ( ) const
inline

transverse mass

Definition at line 101 of file ParticleState.h.

double reco::ParticleState::mtSqr ( ) const
inline

transverse mass squared

Definition at line 103 of file ParticleState.h.

double reco::ParticleState::p ( ) const
inline

magnitude of momentum vector

Definition at line 89 of file ParticleState.h.

const LorentzVector& reco::ParticleState::p4 ( ) const
inline

four-momentum Lorentz vector

Definition at line 80 of file ParticleState.h.

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), and Lepton.Lepton::p4WithFSR().

int reco::ParticleState::pdgId ( ) const
inline

PDG identifier.

Definition at line 155 of file ParticleState.h.

Referenced by Particle.Particle::__str__().

double reco::ParticleState::phi ( ) const
inline

momentum azimuthal angle

Definition at line 113 of file ParticleState.h.

Referenced by Particle.Particle::__str__().

const PolarLorentzVector& reco::ParticleState::polarP4 ( ) const
inline

four-momentum Lorentz vector

Definition at line 82 of file ParticleState.h.

double reco::ParticleState::pt ( void  ) const
inline
double reco::ParticleState::px ( ) const
inline

x coordinate of momentum vector

Definition at line 105 of file ParticleState.h.

double reco::ParticleState::py ( ) const
inline

y coordinate of momentum vector

Definition at line 107 of file ParticleState.h.

double reco::ParticleState::pz ( ) const
inline

z coordinate of momentum vector

Definition at line 109 of file ParticleState.h.

double reco::ParticleState::rapidity ( ) const
inline

repidity

Definition at line 119 of file ParticleState.h.

void reco::ParticleState::setCartesian ( )
inline

set internal cache

Definition at line 67 of file ParticleState.h.

void reco::ParticleState::setCharge ( Charge  q)
inline

set electric charge

Definition at line 74 of file ParticleState.h.

void reco::ParticleState::setLongLived ( )
inline

set long lived flag

Definition at line 163 of file ParticleState.h.

void reco::ParticleState::setMass ( double  m)
inline

set particle mass

Definition at line 134 of file ParticleState.h.

void reco::ParticleState::setMassConstraint ( )
inline

set mass constraint flag

Definition at line 167 of file ParticleState.h.

void reco::ParticleState::setP4 ( const LorentzVector p4)
inline

set 4-momentum

Definition at line 123 of file ParticleState.h.

void reco::ParticleState::setP4 ( const PolarLorentzVector p4)
inline

set 4-momentum

Definition at line 129 of file ParticleState.h.

void reco::ParticleState::setPdgId ( int  pdgId)
inline

Definition at line 157 of file ParticleState.h.

void reco::ParticleState::setPz ( double  pz)
inline

Definition at line 139 of file ParticleState.h.

void reco::ParticleState::setStatus ( int  status)
inline

set status word

Definition at line 161 of file ParticleState.h.

void reco::ParticleState::setThreeCharge ( Charge  qx3)
inline

set electric charge

Definition at line 78 of file ParticleState.h.

void reco::ParticleState::setVertex ( const Point vertex)
inline

set vertex

Definition at line 153 of file ParticleState.h.

int reco::ParticleState::status ( ) const
inline

status word

Definition at line 159 of file ParticleState.h.

double reco::ParticleState::theta ( ) const
inline

momentum polar angle

Definition at line 115 of file ParticleState.h.

Referenced by Tau.Tau::zImpact().

int reco::ParticleState::threeCharge ( ) const
inline

electric charge

Definition at line 76 of file ParticleState.h.

const Point& reco::ParticleState::vertex ( ) const
inline

vertex position

Definition at line 145 of file ParticleState.h.

Referenced by Tau.Tau::dxy().

double reco::ParticleState::vx ( ) const
inline

x coordinate of vertex position

Definition at line 147 of file ParticleState.h.

double reco::ParticleState::vy ( ) const
inline

y coordinate of vertex position

Definition at line 149 of file ParticleState.h.

double reco::ParticleState::vz ( ) const
inline

z coordinate of vertex position

Definition at line 151 of file ParticleState.h.

double reco::ParticleState::y ( ) const
inline

repidity

Definition at line 121 of file ParticleState.h.

Member Data Documentation

const unsigned int reco::ParticleState::longLivedTag = 65536
staticprivate

Definition at line 173 of file ParticleState.h.

const unsigned int reco::ParticleState::massConstraintTag = 131072
staticprivate

Definition at line 174 of file ParticleState.h.

LorentzVector reco::ParticleState::p4Cartesian_
private

internal cache for p4

Definition at line 183 of file ParticleState.h.

PolarLorentzVector reco::ParticleState::p4Polar_
private

four-momentum Lorentz vector

Definition at line 181 of file ParticleState.h.

int reco::ParticleState::pdgId_
private

PDG identifier.

Definition at line 189 of file ParticleState.h.

Charge reco::ParticleState::qx3_
private

electric charge

Definition at line 186 of file ParticleState.h.

int reco::ParticleState::status_
private

status word

Definition at line 191 of file ParticleState.h.

Point reco::ParticleState::vertex_
private

vertex position

Definition at line 178 of file ParticleState.h.