#include <DataFormats/TrackAnalysisInfo/interface/TrackInfo.h>
Public Types | |
typedef reco::StateType | StateType |
typedef std::map < TrackingRecHitRef, TrackingRecHitInfo > | TrajectoryInfo |
default constructor | |
Public Member Functions | |
const LocalVector | localTrackMomentum (StateType, TrackingRecHitRef) const |
const LocalVector | localTrackMomentumOnMono (StateType, TrackingRecHitRef) const |
const LocalVector | localTrackMomentumOnStereo (StateType, TrackingRecHitRef) const |
const LocalPoint | localTrackPosition (StateType, TrackingRecHitRef) const |
const LocalPoint | localTrackPositionOnMono (StateType, TrackingRecHitRef) const |
const LocalPoint | localTrackPositionOnStereo (StateType, TrackingRecHitRef) const |
const TrajectorySeed & | seed () const |
const PTrajectoryStateOnDet * | stateOnDet (StateType, TrackingRecHitRef) const |
TrackInfo (const TrajectorySeed &seed_, const TrajectoryInfo &trajstate) | |
TrackInfo () | |
const TrajectoryInfo & | trajStateMap () const |
const RecHitType | type (TrackingRecHitRef) const |
Private Attributes | |
TrajectorySeed | seed_ |
TrajectoryInfo | trajstates_ |
It contains additional info for tracker studies
Definition at line 24 of file TrackInfo.h.
Definition at line 28 of file TrackInfo.h.
typedef std::map<TrackingRecHitRef , TrackingRecHitInfo > reco::TrackInfo::TrajectoryInfo |
default constructor
Definition at line 27 of file TrackInfo.h.
reco::TrackInfo::TrackInfo | ( | ) | [inline] |
Definition at line 30 of file TrackInfo.h.
{}
TrackInfo::TrackInfo | ( | const TrajectorySeed & | seed_, |
const TrajectoryInfo & | trajstate | ||
) |
Definition at line 7 of file TrackInfo.cc.
: seed_(seed),trajstates_(trajstates){}
const LocalVector TrackInfo::localTrackMomentum | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 27 of file TrackInfo.cc.
References LocalTrajectoryParameters::momentum(), PTrajectoryStateOnDet::parameters(), and trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end()) { const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype); if(state!=0) return state->parameters().momentum(); } else edm::LogError("TrackInfo")<<"This rechit does not exist"; return LocalVector(0,0,0); }
const LocalVector TrackInfo::localTrackMomentumOnMono | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 39 of file TrackInfo.cc.
References trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.localTrackMomentumOnMono(statetype); else edm::LogError("TrackInfo")<<"This rechit does not exist"; return LocalVector(0,0,0); }
const LocalVector TrackInfo::localTrackMomentumOnStereo | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 47 of file TrackInfo.cc.
References trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.localTrackMomentumOnStereo(statetype); return LocalVector(0,0,0); }
const LocalPoint TrackInfo::localTrackPosition | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 54 of file TrackInfo.cc.
References PTrajectoryStateOnDet::parameters(), LocalTrajectoryParameters::position(), and trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end()) { const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype); if(state!=0) return state->parameters().position(); } else edm::LogError("TrackInfo")<<"This rechit does not exist"; return LocalPoint(0,0,0); }
const LocalPoint TrackInfo::localTrackPositionOnMono | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 67 of file TrackInfo.cc.
References trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.localTrackPositionOnMono(statetype); else edm::LogError("TrackInfo")<<"This rechit does not exist"; return LocalPoint(0,0,0); }
const LocalPoint TrackInfo::localTrackPositionOnStereo | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 75 of file TrackInfo.cc.
References trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.localTrackPositionOnStereo(statetype); else edm::LogError("TrackInfo")<<"This rechit does not exist"; return LocalPoint(0,0,0); }
const TrajectorySeed & TrackInfo::seed | ( | ) | const |
const PTrajectoryStateOnDet * TrackInfo::stateOnDet | ( | StateType | statetype, |
TrackingRecHitRef | hit | ||
) | const |
Definition at line 20 of file TrackInfo.cc.
References trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.stateOnDet(statetype); else edm::LogError("TrackInfo")<<"This rechit does not exist"; return 0; }
const reco::TrackInfo::TrajectoryInfo & TrackInfo::trajStateMap | ( | ) | const |
const RecHitType TrackInfo::type | ( | TrackingRecHitRef | hit | ) | const |
Definition at line 13 of file TrackInfo.cc.
References reco::Null, and trajstates_.
{ TrajectoryInfo::const_iterator states=trajstates_.find(hit); if(states!=trajstates_.end())return states->second.type(); else edm::LogError("TrackInfo")<<"This rechit does not exist"; return Null; }
TrajectorySeed reco::TrackInfo::seed_ [private] |
Definition at line 59 of file TrackInfo.h.
Referenced by seed().
TrajectoryInfo reco::TrackInfo::trajstates_ [private] |
Definition at line 60 of file TrackInfo.h.
Referenced by localTrackMomentum(), localTrackMomentumOnMono(), localTrackMomentumOnStereo(), localTrackPosition(), localTrackPositionOnMono(), localTrackPositionOnStereo(), stateOnDet(), trajStateMap(), and type().