test
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
 
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 : ivert(-1), igenpart(-1) {}
int igenpart
Definition: SimTrack.h:49
int ivert
Definition: SimTrack.h:48
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) {}
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:49
int ivert
Definition: SimTrack.h:48
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.

8  :
9  Core(ipart, p), ivert(iv), igenpart(ig) {}
CoreSimTrack Core
Definition: SimTrack.h:11
int igenpart
Definition: SimTrack.h:49
int ivert
Definition: SimTrack.h:48
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.

12  :
13  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 15 of file SimTrack.cc.

15  :
16  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().