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

int genpartIndex () const
 index of the corresponding Generator particle in the Event container (-1 if no Genpart) More...
 
bool noGenpart () const
 
bool noVertex () const
 
void setTkMomentum (const math::XYZTLorentzVectorD &mom)
 
void setTkPosition (const math::XYZVectorD &pos)
 
void setVertexIndex (const int v)
 
 SimTrack ()
 constructor More...
 
 SimTrack (const CoreSimTrack &t, int iv, int ig)
 constructor from transient 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)
 
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

int igenpart
 
int ivert
 
math::XYZTLorentzVectorD tkmomentum
 
math::XYZVectorD tkposition
 

Detailed Description

Definition at line 6 of file SimTrack.h.

Member Typedef Documentation

◆ Core

Definition at line 8 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) {}

◆ SimTrack() [2/5]

SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p 
)

Definition at line 5 of file SimTrack.cc.

5 : Core(ipart, p), ivert(-1), igenpart(-1) {}

◆ 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 7 of file SimTrack.cc.

8  : Core(ipart, p), ivert(iv), igenpart(ig) {}

◆ 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 10 of file SimTrack.cc.

16  : Core(ipart, p), ivert(iv), igenpart(ig), tkposition(tkp), tkmomentum(tkm) {}

◆ SimTrack() [5/5]

SimTrack::SimTrack ( const CoreSimTrack t,
int  iv,
int  ig 
)

constructor from transient

Definition at line 18 of file SimTrack.cc.

18 : Core(t), ivert(iv), igenpart(ig) {}

Member Function Documentation

◆ genpartIndex()

int SimTrack::genpartIndex ( ) const
inline

◆ noGenpart()

bool SimTrack::noGenpart ( ) const
inline

Definition at line 35 of file SimTrack.h.

35 { return igenpart == -1; }

References igenpart.

Referenced by CaloTruthAccumulator::accumulateEvent().

◆ noVertex()

bool SimTrack::noVertex ( ) const
inline

◆ setTkMomentum()

void SimTrack::setTkMomentum ( const math::XYZTLorentzVectorD mom)
inline

Definition at line 43 of file SimTrack.h.

43 { tkmomentum = mom; }

References tkmomentum.

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

◆ setTkPosition()

void SimTrack::setTkPosition ( const math::XYZVectorD pos)
inline

Definition at line 41 of file SimTrack.h.

41 { tkposition = pos; }

References tkposition.

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

◆ setVertexIndex()

void SimTrack::setVertexIndex ( const int  v)
inline

Definition at line 45 of file SimTrack.h.

45 { ivert = v; }

References ivert, and findQualityFiles::v.

◆ trackerSurfaceMomentum()

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

◆ trackerSurfacePosition()

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

◆ vertIndex()

int SimTrack::vertIndex ( ) const
inline

Member Data Documentation

◆ igenpart

int SimTrack::igenpart
private

Definition at line 49 of file SimTrack.h.

Referenced by genpartIndex(), and noGenpart().

◆ ivert

int SimTrack::ivert
private

Definition at line 48 of file SimTrack.h.

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

◆ tkmomentum

math::XYZTLorentzVectorD SimTrack::tkmomentum
private

Definition at line 52 of file SimTrack.h.

Referenced by setTkMomentum(), and trackerSurfaceMomentum().

◆ tkposition

math::XYZVectorD SimTrack::tkposition
private

Definition at line 51 of file SimTrack.h.

Referenced by setTkPosition(), and trackerSurfacePosition().

SimTrack::ivert
int ivert
Definition: SimTrack.h:48
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
findQualityFiles.v
v
Definition: findQualityFiles.py:179
SimTrack::tkmomentum
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
SimTrack::igenpart
int igenpart
Definition: SimTrack.h:49
SimTrack::Core
CoreSimTrack Core
Definition: SimTrack.h:8
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
SimTrack::tkposition
math::XYZVectorD tkposition
Definition: SimTrack.h:51