CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::TrackInfo Class Reference

#include <DataFormats/TrackAnalysisInfo/interface/TrackInfo.h>

Public Types

typedef reco::StateType StateType
 
typedef std::map< TrackingRecHitRef, TrackingRecHitInfoTrajectoryInfo
 default constructor More...
 

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 TrajectorySeedseed () const
 
const PTrajectoryStateOnDetstateOnDet (StateType, TrackingRecHitRef) const
 
 TrackInfo ()
 
 TrackInfo (const TrajectorySeed &seed_, const TrajectoryInfo &trajstate)
 
const TrajectoryInfotrajStateMap () const
 
const RecHitType type (TrackingRecHitRef) const
 

Private Attributes

TrajectorySeed seed_
 
TrajectoryInfo trajstates_
 

Detailed Description

It contains additional info for tracker studies

Author
Chiara Genta

Definition at line 23 of file TrackInfo.h.

Member Typedef Documentation

Definition at line 27 of file TrackInfo.h.

default constructor

Definition at line 26 of file TrackInfo.h.

Constructor & Destructor Documentation

reco::TrackInfo::TrackInfo ( )
inline
TrackInfo::TrackInfo ( const TrajectorySeed seed_,
const TrajectoryInfo trajstate 
)

Definition at line 7 of file TrackInfo.cc.

7 : seed_(seed),trajstates_(trajstates){}
const TrajectorySeed & seed() const
Definition: TrackInfo.cc:9
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
TrajectorySeed seed_
Definition: TrackInfo.h:58

Member Function Documentation

const LocalVector TrackInfo::localTrackMomentum ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 27 of file TrackInfo.cc.

References LocalTrajectoryParameters::momentum(), PTrajectoryStateOnDet::parameters(), and trajstates_.

Referenced by TrackInfo().

27  {
28 
29  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
30  if(states!=trajstates_.end())
31  {
32  const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype);
33  if(state!=nullptr) return state->parameters().momentum();
34  }
35  else edm::LogError("TrackInfo")<<"This rechit does not exist";
36  return LocalVector(0,0,0);
37 }
Local3DVector LocalVector
Definition: LocalVector.h:12
LocalVector momentum() const
Momentum vector in the local frame.
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const LocalTrajectoryParameters & parameters() const
const LocalVector TrackInfo::localTrackMomentumOnMono ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 39 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

39  {
40 
41  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
42  if(states!=trajstates_.end())return states->second.localTrackMomentumOnMono(statetype);
43  else edm::LogError("TrackInfo")<<"This rechit does not exist";
44  return LocalVector(0,0,0);
45 }
Local3DVector LocalVector
Definition: LocalVector.h:12
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const LocalVector TrackInfo::localTrackMomentumOnStereo ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 47 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

47  {
48 
49  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
50  if(states!=trajstates_.end())return states->second.localTrackMomentumOnStereo(statetype);
51  return LocalVector(0,0,0);
52 }
Local3DVector LocalVector
Definition: LocalVector.h:12
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const LocalPoint TrackInfo::localTrackPosition ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 54 of file TrackInfo.cc.

References PTrajectoryStateOnDet::parameters(), LocalTrajectoryParameters::position(), and trajstates_.

Referenced by TrackInfo().

54  {
55 
56  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
57  if(states!=trajstates_.end())
58  {
59  const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype);
60  if(state!=nullptr) return state->parameters().position();
61  }
62  else edm::LogError("TrackInfo")<<"This rechit does not exist";
63  return LocalPoint(0,0,0);
64 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
LocalPoint position() const
Local x and y position coordinates.
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const LocalTrajectoryParameters & parameters() const
const LocalPoint TrackInfo::localTrackPositionOnMono ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 67 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

67  {
68 
69  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
70  if(states!=trajstates_.end())return states->second.localTrackPositionOnMono(statetype);
71  else edm::LogError("TrackInfo")<<"This rechit does not exist";
72  return LocalPoint(0,0,0);
73 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const LocalPoint TrackInfo::localTrackPositionOnStereo ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 75 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

75  {
76 
77  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
78  if(states!=trajstates_.end())return states->second.localTrackPositionOnStereo(statetype);
79  else edm::LogError("TrackInfo")<<"This rechit does not exist";
80  return LocalPoint(0,0,0);
81 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const TrajectorySeed & TrackInfo::seed ( ) const

Definition at line 9 of file TrackInfo.cc.

References seed_.

Referenced by TrackInfo().

9 {return seed_;}
TrajectorySeed seed_
Definition: TrackInfo.h:58
const PTrajectoryStateOnDet * TrackInfo::stateOnDet ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 20 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

20  {
21  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
22  if(states!=trajstates_.end())return states->second.stateOnDet(statetype);
23  else edm::LogError("TrackInfo")<<"This rechit does not exist";
24  return nullptr;
25 }
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const reco::TrackInfo::TrajectoryInfo & TrackInfo::trajStateMap ( ) const

Definition at line 11 of file TrackInfo.cc.

References trajstates_.

Referenced by TrackInfo().

11 {return trajstates_;}
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
const RecHitType TrackInfo::type ( TrackingRecHitRef  hit) const

Member Data Documentation

TrajectorySeed reco::TrackInfo::seed_
private

Definition at line 58 of file TrackInfo.h.

Referenced by seed(), and TrackInfo().

TrajectoryInfo reco::TrackInfo::trajstates_
private