CMS 3D CMS Logo

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

◆ Core

Definition at line 11 of file SimTrack.h.

Constructor & Destructor Documentation

◆ SimTrack() [1/5]

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() [2/5]

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() [3/5]

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) {}
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() [4/5]

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) {}
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() [5/5]

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) {}
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

◆ crossedBoundary()

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

◆ genpartIndex()

int SimTrack::genpartIndex ( ) const
inline

◆ getIDAtBoundary()

int SimTrack::getIDAtBoundary ( ) const
inline

Definition at line 62 of file SimTrack.h.

References idAtBoundary_.

62 { return idAtBoundary_; }
int idAtBoundary_
Definition: SimTrack.h:72

◆ getMomentumAtBoundary()

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

◆ getPositionAtBoundary()

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

◆ noGenpart()

bool SimTrack::noGenpart ( ) const
inline

Definition at line 38 of file SimTrack.h.

References igenpart.

Referenced by CaloTruthAccumulator::accumulateEvent(), and MtdTruthAccumulator::accumulateEvent().

38 { return igenpart == -1; }
int igenpart
Definition: SimTrack.h:66

◆ noVertex()

bool SimTrack::noVertex ( ) const
inline

◆ setCrossedBoundaryVars()

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  }
math::XYZTLorentzVectorF momentumAtBoundary_
Definition: SimTrack.h:74
bool crossedBoundary() const
Definition: SimTrack.h:59
int idAtBoundary_
Definition: SimTrack.h:72
bool crossedBoundary_
Definition: SimTrack.h:71
math::XYZTLorentzVectorF positionAtBoundary_
Definition: SimTrack.h:73

◆ setTkMomentum()

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

◆ setTkPosition()

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

◆ setVertexIndex()

void SimTrack::setVertexIndex ( const int  v)
inline

Definition at line 48 of file SimTrack.h.

References ivert, and findQualityFiles::v.

◆ trackerSurfaceMomentum()

const math::XYZTLorentzVectorD& SimTrack::trackerSurfaceMomentum ( ) const
inline

Definition at line 42 of file SimTrack.h.

References tkmomentum.

Referenced by FWSimTrackProxyBuilder::build(), FBaseSimEvent::fill(), MuonSimHitProducer::produce(), and FastTSGFromPropagation::trackerSeeds().

42 { return tkmomentum; }
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:69

◆ trackerSurfacePosition()

const math::XYZVectorD& SimTrack::trackerSurfacePosition ( ) const
inline

Definition at line 40 of file SimTrack.h.

References tkposition.

Referenced by FWSimTrackProxyBuilder::build(), FBaseSimEvent::fill(), MuonSimHitProducer::produce(), and FastTSGFromPropagation::trackerSeeds().

40 { return tkposition; }
math::XYZVectorD tkposition
Definition: SimTrack.h:68

◆ vertIndex()

int SimTrack::vertIndex ( ) const
inline

Member Data Documentation

◆ crossedBoundary_

bool SimTrack::crossedBoundary_
private

Definition at line 71 of file SimTrack.h.

Referenced by crossedBoundary(), and setCrossedBoundaryVars().

◆ idAtBoundary_

int SimTrack::idAtBoundary_
private

Definition at line 72 of file SimTrack.h.

Referenced by getIDAtBoundary(), and setCrossedBoundaryVars().

◆ igenpart

int SimTrack::igenpart
private

Definition at line 66 of file SimTrack.h.

Referenced by genpartIndex(), and noGenpart().

◆ ivert

int SimTrack::ivert
private

Definition at line 65 of file SimTrack.h.

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

◆ momentumAtBoundary_

math::XYZTLorentzVectorF SimTrack::momentumAtBoundary_
private

Definition at line 74 of file SimTrack.h.

Referenced by getMomentumAtBoundary(), and setCrossedBoundaryVars().

◆ positionAtBoundary_

math::XYZTLorentzVectorF SimTrack::positionAtBoundary_
private

Definition at line 73 of file SimTrack.h.

Referenced by getPositionAtBoundary(), and setCrossedBoundaryVars().

◆ tkmomentum

math::XYZTLorentzVectorD SimTrack::tkmomentum
private

Definition at line 69 of file SimTrack.h.

Referenced by setTkMomentum(), and trackerSurfaceMomentum().

◆ tkposition

math::XYZVectorD SimTrack::tkposition
private

Definition at line 68 of file SimTrack.h.

Referenced by setTkPosition(), and trackerSurfacePosition().