#include <SimTrack.h>
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::XYZTLorentzVectorD & | trackerSurfaceMomentum () const |
const math::XYZVectorD & | trackerSurfacePosition () 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 |
Definition at line 6 of file SimTrack.h.
typedef CoreSimTrack SimTrack::Core |
Definition at line 11 of file SimTrack.h.
SimTrack::SimTrack | ( | ) |
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.
int SimTrack::genpartIndex | ( | ) | const [inline] |
index of the corresponding Generator particle in the Event container (-1 if no Genpart)
Definition at line 33 of file SimTrack.h.
References igenpart.
Referenced by FBaseSimEvent::addSimTrack(), ValidationMisalignedTracker::analyze(), FBaseSimEvent::fill(), TrackDetectorAssociator::fillCaloTruth(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), pat::PATGenCandsFromSimTracksProducer::findRef(), JetMatchingTools::generatorId(), pat::PATGenCandsFromSimTracksProducer::generatorRef_(), operator<<(), and TrackingTruthProducer::setTrackingParticle().
{ return igenpart;}
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] |
Definition at line 30 of file SimTrack.h.
References ivert.
Referenced by pat::GenPlusSimParticleProducer::addGenParticle(), FWSimTrackProxyBuilder::build(), TrackingTruthProducer::createTrackingTruth(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), JetMatchingTools::generatorId(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), TrackingTruthProducer::setTrackingParticle(), and PropagateToMuon::startingState().
{ return ivert==-1;}
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] |
const math::XYZTLorentzVectorD& SimTrack::trackerSurfaceMomentum | ( | ) | const [inline] |
Definition at line 38 of file SimTrack.h.
References tkmomentum.
Referenced by FWSimTrackProxyBuilder::build(), FBaseSimEvent::fill(), TrackCandidateProducer::produce(), MuonSimHitProducer::produce(), and FastTSGFromPropagation::trackerSeeds().
{ return tkmomentum; }
const math::XYZVectorD& SimTrack::trackerSurfacePosition | ( | ) | const [inline] |
Definition at line 36 of file SimTrack.h.
References tkposition.
Referenced by FWSimTrackProxyBuilder::build(), FBaseSimEvent::fill(), TrackCandidateProducer::produce(), MuonSimHitProducer::produce(), and FastTSGFromPropagation::trackerSeeds().
{ return tkposition; }
int SimTrack::vertIndex | ( | ) | const [inline] |
index of the vertex in the Event container (-1 if no vertex)
Definition at line 29 of file SimTrack.h.
References ivert.
Referenced by pat::GenPlusSimParticleProducer::addGenParticle(), FWSimTrackProxyBuilder::build(), TrackingTruthProducer::createTrackingTruth(), FBaseSimEvent::fill(), PhotonMCTruthFinder::find(), ElectronMCTruthFinder::find(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), JetMatchingTools::generatorId(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), operator<<(), MuonSimHitProducer::produce(), TrajectorySeedProducer::produce(), TrackingTruthProducer::setTrackingParticle(), and PropagateToMuon::startingState().
{ return ivert;}
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().