CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

SimTrack Class Reference

#include <SimTrack.h>

Inheritance diagram for SimTrack:
CoreSimTrack FSimTrack

List of all members.

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)
bool noGenpart () const
bool noVertex () const
void setTkMomentum (const math::XYZTLorentzVectorD &mom)
void setTkPosition (const math::XYZVectorD &pos)
void setVertexIndex (const int v)
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p)
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig, const math::XYZVectorD &tkp, const math::XYZTLorentzVectorD &tkm)
 SimTrack ()
 constructor
 SimTrack (int ipart, const math::XYZTLorentzVectorD &p, int iv, int ig)
 SimTrack (const CoreSimTrack &t, int iv, int ig)
 constructor from transient
const math::XYZTLorentzVectorDtrackerSurfaceMomentum () const
const math::XYZVectorDtrackerSurfacePosition () const
int vertIndex () const
 index of the vertex in the Event container (-1 if no vertex)

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.

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

Definition at line 5 of file SimTrack.cc.

                                                             :
    Core(ipart, p), ivert(-1), igenpart(-1),
    tkposition(math::XYZVectorD(0.,0.,0.)),
    tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.)) {}
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.

                                                                             :
    Core(ipart, p), ivert(iv), igenpart(ig),
    tkposition(math::XYZVectorD(0.,0.,0.)),
    tkmomentum(math::XYZTLorentzVectorD(0.,0.,0.,0.))  {}
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.

                                                                                  :
    Core(ipart, p), ivert(iv), igenpart(ig),tkposition(tkp),tkmomentum(tkm)  {}
SimTrack::SimTrack ( const CoreSimTrack t,
int  iv,
int  ig 
)

constructor from transient

Definition at line 19 of file SimTrack.cc.

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

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().

{ return igenpart==-1;}
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().

{ tkmomentum = mom; }
void SimTrack::setTkPosition ( const math::XYZVectorD pos) [inline]

Definition at line 40 of file SimTrack.h.

References pos, and tkposition.

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

{ tkposition = pos; }
void SimTrack::setVertexIndex ( const int  v) [inline]

Definition at line 44 of file SimTrack.h.

References ivert, and findQualityFiles::v.

{ ivert=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().

Definition at line 52 of file SimTrack.h.

Referenced by setTkMomentum(), and trackerSurfaceMomentum().

Definition at line 51 of file SimTrack.h.

Referenced by setTkPosition(), and trackerSurfacePosition().