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
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 (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
 particle info... More...
 
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

Definition at line 11 of file SimTrack.h.

Constructor & Destructor Documentation

SimTrack::SimTrack ( )

constructor

Definition at line 3 of file SimTrack.cc.

3 {}
SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p 
)

Definition at line 5 of file SimTrack.cc.

5  :
6  Core(ipart, p), ivert(-1), igenpart(-1),
7  tkposition(math::XYZVectorD(0.,0.,0.)),
8  tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
CoreSimTrack Core
Definition: SimTrack.h:11
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int igenpart
Definition: SimTrack.h:49
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
int ivert
Definition: SimTrack.h:48
math::XYZVectorD tkposition
Definition: SimTrack.h:51
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 10 of file SimTrack.cc.

10  :
11  Core(ipart, p), ivert(iv), igenpart(ig),
12  tkposition(math::XYZVectorD(0.,0.,0.)),
13  tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
CoreSimTrack Core
Definition: SimTrack.h:11
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
int igenpart
Definition: SimTrack.h:49
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
int ivert
Definition: SimTrack.h:48
math::XYZVectorD tkposition
Definition: SimTrack.h:51
SimTrack::SimTrack ( int  ipart,
const math::XYZTLorentzVectorD p,
int  iv,
int  ig,
const math::XYZVectorD tkp,
const math::XYZTLorentzVectorD tkm 
)

Definition at line 15 of file SimTrack.cc.

16  :
17  Core(ipart, p), ivert(iv), igenpart(ig),tkposition(tkp),tkmomentum(tkm) {}
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:49
math::XYZTLorentzVectorD tkmomentum
Definition: SimTrack.h:52
int ivert
Definition: SimTrack.h:48
math::XYZVectorD tkposition
Definition: SimTrack.h:51
SimTrack::SimTrack ( const CoreSimTrack t,
int  iv,
int  ig 
)

constructor from transient

Definition at line 19 of file SimTrack.cc.

19  :
20  Core(t), ivert(iv), igenpart(ig) {}
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:49
int ivert
Definition: SimTrack.h:48

Member Function Documentation

int SimTrack::genpartIndex ( ) const
inline
bool SimTrack::noGenpart ( ) const
inline

Definition at line 34 of file SimTrack.h.

References igenpart.

Referenced by JetMatchingTools::generatorId().

34 { return igenpart==-1;}
int igenpart
Definition: SimTrack.h:49
bool SimTrack::noVertex ( ) const
inline
void SimTrack::setTkMomentum ( const math::XYZTLorentzVectorD mom)
inline

Definition at line 42 of file SimTrack.h.

References tkmomentum.

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

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

Definition at line 40 of file SimTrack.h.

References tkposition.

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

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

Definition at line 44 of file SimTrack.h.

References ivert, and findQualityFiles::v.

const math::XYZTLorentzVectorD& SimTrack::trackerSurfaceMomentum ( ) const
inline
const math::XYZVectorD& SimTrack::trackerSurfacePosition ( ) const
inline
int SimTrack::vertIndex ( ) const
inline

Member Data Documentation

int SimTrack::igenpart
private

Definition at line 49 of file SimTrack.h.

Referenced by genpartIndex(), and noGenpart().

int SimTrack::ivert
private

Definition at line 48 of file SimTrack.h.

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

math::XYZTLorentzVectorD SimTrack::tkmomentum
private

Definition at line 52 of file SimTrack.h.

Referenced by setTkMomentum(), and trackerSurfaceMomentum().

math::XYZVectorD SimTrack::tkposition
private

Definition at line 51 of file SimTrack.h.

Referenced by setTkPosition(), and trackerSurfacePosition().