CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
SimTrack Class Reference

#include <SimTrack.h>

Inheritance diagram for SimTrack:
CoreSimTrack FSimTrack

Public Types

typedef CoreSimTrack Core
 

Public Member Functions

bool crossedBoundary () const
 
int genpartIndex () const
 index of the corresponding Generator particle in the Event container (-1 if no Genpart) More...
 
int getIDAtBoundary () const
 
const math::XYZTLorentzVectorFgetMomentumAtBoundary () const
 
const math::XYZTLorentzVectorFgetPositionAtBoundary () const
 
bool noGenpart () const
 
bool noVertex () const
 
void setCrossedBoundaryVars (bool crossedBoundary, int idAtBoundary, math::XYZTLorentzVectorF positionAtBoundary, math::XYZTLorentzVectorF momentumAtBoundary)
 
void setTkMomentum (const math::XYZTLorentzVectorD &mom)
 
void setTkPosition (const math::XYZVectorD &pos)
 
void setVertexIndex (const int v)
 
 SimTrack ()
 constructor More...
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p)
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig)
 
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig, const math::XYZVectorD &tkp, const math::XYZTLorentzVectorD &tkm)
 
 SimTrack (const CoreSimTrack &t, int iv, int ig)
 constructor from transient More...
 
const math::XYZTLorentzVectorDtrackerSurfaceMomentum () const
 
const math::XYZVectorDtrackerSurfacePosition () const
 
int vertIndex () const
 index of the vertex in the Event container (-1 if no vertex) More...
 
- Public Member Functions inherited from CoreSimTrack
float charge () const
 charge More...
 
 CoreSimTrack ()
 constructors More...
 
 CoreSimTrack (int ipart, const math::XYZTLorentzVectorD &p)
 
 CoreSimTrack (int ipart, math::XYZVectorD &ip, double ie)
 
EncodedEventId eventId () const
 
const math::XYZTLorentzVectorDmomentum () const
 
void setEventId (EncodedEventId e)
 
void setTrackId (unsigned int t)
 
unsigned int trackId () const
 
int type () const
 particle type (HEP PDT convension) More...
 

Private Attributes

bool crossedBoundary_
 
int idAtBoundary_
 
int igenpart
 
int ivert
 
math::XYZTLorentzVectorF momentumAtBoundary_
 
math::XYZTLorentzVectorF positionAtBoundary_
 
math::XYZTLorentzVectorD tkmomentum
 
math::XYZVectorD tkposition
 

Detailed Description

Definition at line 9 of file SimTrack.h.

Member Typedef Documentation

Definition at line 11 of file SimTrack.h.

Constructor & Destructor Documentation

SimTrack::SimTrack ( )

constructor

Definition at line 3 of file SimTrack.cc.

3 : ivert(-1), igenpart(-1), crossedBoundary_(false) {}
int igenpart
Definition: SimTrack.h:66
int ivert
Definition: SimTrack.h:65
bool crossedBoundary_
Definition: SimTrack.h:71
SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p 
)

Definition at line 5 of file SimTrack.cc.

6  : Core(ipart, p), ivert(-1), igenpart(-1), crossedBoundary_(false) {}
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:66
int ivert
Definition: SimTrack.h:65
bool crossedBoundary_
Definition: SimTrack.h:71
SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p,
int  iv,
int  ig 
)

full constructor (pdg type, momentum, time, index of parent vertex in final vector index of corresponding gen part in final vector)

Definition at line 8 of file SimTrack.cc.

9  : Core(ipart, p), ivert(iv), igenpart(ig), crossedBoundary_(false) {}
int32_t *__restrict__ iv
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:66
int ivert
Definition: SimTrack.h:65
bool crossedBoundary_
Definition: SimTrack.h:71
SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p,
int  iv,
int  ig,
const math::XYZVectorD tkp,
const math::XYZTLorentzVectorD tkm 
)

Definition at line 11 of file SimTrack.cc.

17  : Core(ipart, p), ivert(iv), igenpart(ig), tkposition(tkp), tkmomentum(tkm), crossedBoundary_(false) {}
int32_t *__restrict__ iv
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:66
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:69
int ivert
Definition: SimTrack.h:65
math::XYZVectorD tkposition
Definition: SimTrack.h:68
bool crossedBoundary_
Definition: SimTrack.h:71
SimTrack::SimTrack ( const CoreSimTrack t,
int  iv,
int  ig 
)

constructor from transient

Definition at line 19 of file SimTrack.cc.

19 : Core(t), ivert(iv), igenpart(ig), crossedBoundary_(false) {}
int32_t *__restrict__ iv
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:66
int ivert
Definition: SimTrack.h:65
bool crossedBoundary_
Definition: SimTrack.h:71

Member Function Documentation

bool SimTrack::crossedBoundary ( ) const
inline

Definition at line 59 of file SimTrack.h.

References crossedBoundary_.

Referenced by setCrossedBoundaryVars().

59 { return crossedBoundary_; }
bool crossedBoundary_
Definition: SimTrack.h:71
int SimTrack::genpartIndex ( ) const
inline
int SimTrack::getIDAtBoundary ( ) const
inline

Definition at line 62 of file SimTrack.h.

References idAtBoundary_.

62 { return idAtBoundary_; }
int idAtBoundary_
Definition: SimTrack.h:72
const math::XYZTLorentzVectorF& SimTrack::getMomentumAtBoundary ( ) const
inline

Definition at line 61 of file SimTrack.h.

References momentumAtBoundary_.

61 { return momentumAtBoundary_; }
math::XYZTLorentzVectorF momentumAtBoundary_
Definition: SimTrack.h:74
const math::XYZTLorentzVectorF& SimTrack::getPositionAtBoundary ( ) const
inline

Definition at line 60 of file SimTrack.h.

References positionAtBoundary_.

60 { return positionAtBoundary_; }
math::XYZTLorentzVectorF positionAtBoundary_
Definition: SimTrack.h:73
bool SimTrack::noGenpart ( ) const
inline

Definition at line 38 of file SimTrack.h.

References igenpart.

Referenced by CaloTruthAccumulator::accumulateEvent(), JetMatchingTools::generatorId(), and CSCBaseValidation::isSimTrackGood().

38 { return igenpart == -1; }
int igenpart
Definition: SimTrack.h:66
bool SimTrack::noVertex ( ) const
inline
void SimTrack::setCrossedBoundaryVars ( bool  crossedBoundary,
int  idAtBoundary,
math::XYZTLorentzVectorF  positionAtBoundary,
math::XYZTLorentzVectorF  momentumAtBoundary 
)
inline

Definition at line 50 of file SimTrack.h.

References crossedBoundary(), crossedBoundary_, idAtBoundary_, momentumAtBoundary_, and positionAtBoundary_.

53  {
55  idAtBoundary_ = idAtBoundary;
56  positionAtBoundary_ = positionAtBoundary;
57  momentumAtBoundary_ = momentumAtBoundary;
58  }
bool crossedBoundary() const
Definition: SimTrack.h:59
math::XYZTLorentzVectorF momentumAtBoundary_
Definition: SimTrack.h:74
int idAtBoundary_
Definition: SimTrack.h:72
bool crossedBoundary_
Definition: SimTrack.h:71
math::XYZTLorentzVectorF positionAtBoundary_
Definition: SimTrack.h:73
void SimTrack::setTkMomentum ( const math::XYZTLorentzVectorD mom)
inline

Definition at line 46 of file SimTrack.h.

References tkmomentum.

Referenced by CalorimetryManager::MuonMipSimulation(), and TrajectoryManager::propagateToCalorimeters().

46 { tkmomentum = mom; }
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:69
void SimTrack::setTkPosition ( const math::XYZVectorD pos)
inline

Definition at line 44 of file SimTrack.h.

References tkposition.

Referenced by CalorimetryManager::MuonMipSimulation(), and TrajectoryManager::propagateToCalorimeters().

44 { tkposition = pos; }
math::XYZVectorD tkposition
Definition: SimTrack.h:68
void SimTrack::setVertexIndex ( const int  v)
inline

Definition at line 48 of file SimTrack.h.

References ivert, and findQualityFiles::v.

48 { ivert = v; }
int ivert
Definition: SimTrack.h:65
const math::XYZTLorentzVectorD& SimTrack::trackerSurfaceMomentum ( ) const
inline
const math::XYZVectorD& SimTrack::trackerSurfacePosition ( ) const
inline
int SimTrack::vertIndex ( ) const
inline

Member Data Documentation

bool SimTrack::crossedBoundary_
private

Definition at line 71 of file SimTrack.h.

Referenced by crossedBoundary(), and setCrossedBoundaryVars().

int SimTrack::idAtBoundary_
private

Definition at line 72 of file SimTrack.h.

Referenced by getIDAtBoundary(), and setCrossedBoundaryVars().

int SimTrack::igenpart
private

Definition at line 66 of file SimTrack.h.

Referenced by genpartIndex(), and noGenpart().

int SimTrack::ivert
private

Definition at line 65 of file SimTrack.h.

Referenced by noVertex(), setVertexIndex(), and vertIndex().

math::XYZTLorentzVectorF SimTrack::momentumAtBoundary_
private

Definition at line 74 of file SimTrack.h.

Referenced by getMomentumAtBoundary(), and setCrossedBoundaryVars().

math::XYZTLorentzVectorF SimTrack::positionAtBoundary_
private

Definition at line 73 of file SimTrack.h.

Referenced by getPositionAtBoundary(), and setCrossedBoundaryVars().

math::XYZTLorentzVectorD SimTrack::tkmomentum
private

Definition at line 69 of file SimTrack.h.

Referenced by setTkMomentum(), and trackerSurfaceMomentum().

math::XYZVectorD SimTrack::tkposition
private

Definition at line 68 of file SimTrack.h.

Referenced by setTkPosition(), and trackerSurfacePosition().