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
reco::Particle Class Reference

#include <Particle.h>

Public Types

typedef int Charge
 electric charge type More...
 
typedef unsigned int index
 
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...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
double energy () const
 energy More...
 
double et () const
 transverse energy More...
 
double et2 () const
 transverse energy squared (use this for cut!) 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...
 
Particleoperator= (Particle &&)=default
 
Particleoperator= (Particle const &)=default
 
double p () const
 magnitude of momentum vector More...
 
const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
template<typename... Args>
 Particle (Args &&...args)
 
 Particle (Particle &rh)
 
 Particle (Particle &&)=default
 
 Particle (Particle const &)=default
 
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
 rapidity More...
 
void setCharge (Charge q)
 set electric charge More...
 
void setLongLived ()
 
void setMass (double m)
 set particle mass More...
 
void setMassConstraint ()
 
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 (overwritten by PF...) 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
 rapidity More...
 
virtual ~Particle ()
 destructor More...
 

Private Attributes

ParticleState m_state
 

Detailed Description

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

Author
Luca Lista, INFN

Definition at line 16 of file Particle.h.

Member Typedef Documentation

electric charge type

Definition at line 19 of file Particle.h.

typedef unsigned int reco::Particle::index

Definition at line 29 of file Particle.h.

Lorentz vector.

Definition at line 21 of file Particle.h.

point in the space

Definition at line 25 of file Particle.h.

Lorentz vector.

Definition at line 23 of file Particle.h.

point in the space

Definition at line 27 of file Particle.h.

Constructor & Destructor Documentation

template<typename... Args>
reco::Particle::Particle ( Args &&...  args)
inlineexplicit

Definition at line 33 of file Particle.h.

reco::Particle::Particle ( Particle rh)
inline

Definition at line 36 of file Particle.h.

reco::Particle::Particle ( Particle &&  )
default
reco::Particle::Particle ( Particle const &  )
default
virtual reco::Particle::~Particle ( )
inlinevirtual

destructor

Definition at line 60 of file Particle.h.

Member Function Documentation

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

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

Definition at line 79 of file Particle.h.

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

electric charge

Definition at line 64 of file Particle.h.

void reco::Particle::construct ( int  qx3,
float  pt,
float  eta,
float  phi,
float  mass,
const Point vtx,
int  pdgId,
int  status 
)
inline

Definition at line 55 of file Particle.h.

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

energy

Definition at line 83 of file Particle.h.

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

transverse energy

Definition at line 85 of file Particle.h.

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

transverse energy squared (use this for cut!)

Definition at line 87 of file Particle.h.

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

momentum pseudorapidity

Definition at line 110 of file Particle.h.

Referenced by Particle.Particle::__str__().

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

is long lived?

Definition at line 145 of file Particle.h.

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

mass

Definition at line 89 of file Particle.h.

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

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

do mass constraint?

Definition at line 150 of file Particle.h.

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

mass squared

Definition at line 91 of file Particle.h.

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

spatial momentum vector

Definition at line 76 of file Particle.h.

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

transverse mass

Definition at line 94 of file Particle.h.

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

transverse mass squared

Definition at line 96 of file Particle.h.

Particle& reco::Particle::operator= ( Particle &&  )
default
Particle& reco::Particle::operator= ( Particle const &  )
default
double reco::Particle::p ( ) const
inline

magnitude of momentum vector

Definition at line 81 of file Particle.h.

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

four-momentum Lorentz vector

Definition at line 72 of file Particle.h.

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

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

PDG identifier.

Definition at line 134 of file Particle.h.

Referenced by Particle.Particle::__str__().

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

momentum azimuthal angle

Definition at line 106 of file Particle.h.

Referenced by Particle.Particle::__str__().

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

four-momentum Lorentz vector

Definition at line 74 of file Particle.h.

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

x coordinate of momentum vector

Definition at line 98 of file Particle.h.

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

y coordinate of momentum vector

Definition at line 100 of file Particle.h.

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

z coordinate of momentum vector

Definition at line 102 of file Particle.h.

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

rapidity

Definition at line 112 of file Particle.h.

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

set electric charge

Definition at line 66 of file Particle.h.

void reco::Particle::setLongLived ( )
inline

long lived flag set long lived flag

Definition at line 143 of file Particle.h.

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

set particle mass

Definition at line 120 of file Particle.h.

void reco::Particle::setMassConstraint ( )
inline

do mass constraint flag set mass constraint flag

Definition at line 148 of file Particle.h.

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

set 4-momentum

Definition at line 116 of file Particle.h.

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

set 4-momentum

Definition at line 118 of file Particle.h.

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

Definition at line 136 of file Particle.h.

Referenced by TtDilepEvtSolution::getLeptNeg(), and TtDilepEvtSolution::getLeptPos().

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

Definition at line 121 of file Particle.h.

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

set status word

Definition at line 140 of file Particle.h.

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

set electric charge

Definition at line 70 of file Particle.h.

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

set vertex

Definition at line 131 of file Particle.h.

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

status word

Definition at line 138 of file Particle.h.

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

momentum polar angle

Definition at line 108 of file Particle.h.

Referenced by Tau.Tau::zImpact().

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

electric charge

Definition at line 68 of file Particle.h.

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

vertex position (overwritten by PF...)

Definition at line 123 of file Particle.h.

Referenced by Tau.Tau::dxy().

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

x coordinate of vertex position

Definition at line 125 of file Particle.h.

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

y coordinate of vertex position

Definition at line 127 of file Particle.h.

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

z coordinate of vertex position

Definition at line 129 of file Particle.h.

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

rapidity

Definition at line 114 of file Particle.h.

Member Data Documentation

ParticleState reco::Particle::m_state
private

Definition at line 153 of file Particle.h.