CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackInfo.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
6 
7 TrackInfo::TrackInfo( const TrajectorySeed & seed ,const TrajectoryInfo & trajstates): seed_(seed),trajstates_(trajstates){}
8 
9 const TrajectorySeed & TrackInfo::seed() const {return seed_;}
10 
12 
14  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
15  if(states!=trajstates_.end())return states->second.type();
16  else edm::LogError("TrackInfo")<<"This rechit does not exist";
17  return Null;
18 }
19 
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 0;
25 }
26 
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!=0) return state->parameters().momentum();
34  }
35  else edm::LogError("TrackInfo")<<"This rechit does not exist";
36  return LocalVector(0,0,0);
37 }
38 
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 }
46 
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 }
53 
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!=0) return state->parameters().position();
61  }
62  else edm::LogError("TrackInfo")<<"This rechit does not exist";
63  return LocalPoint(0,0,0);
64 }
65 
66 
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 }
74 
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 }
82 
83 
Local3DVector LocalVector
Definition: LocalVector.h:12
const TrajectorySeed & seed() const
Definition: TrackInfo.cc:9
LocalPoint position() const
Local x and y position coordinates.
const TrajectoryInfo & trajStateMap() const
Definition: TrackInfo.cc:11
const LocalVector localTrackMomentumOnStereo(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:47
const LocalPoint localTrackPositionOnStereo(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:75
const RecHitType type(TrackingRecHitRef) const
Definition: TrackInfo.cc:13
const LocalVector localTrackMomentum(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:27
const LocalPoint localTrackPosition(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:54
LocalVector momentum() const
Momentum vector in the local frame.
const LocalPoint localTrackPositionOnMono(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:67
const PTrajectoryStateOnDet * stateOnDet(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:20
TrajectoryInfo trajstates_
Definition: TrackInfo.h:59
TrajectorySeed seed_
Definition: TrackInfo.h:58
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const LocalVector localTrackMomentumOnMono(StateType, TrackingRecHitRef) const
Definition: TrackInfo.cc:39
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::LocalCoordinateSystemTag > LocalPoint
point in local coordinate system
Definition: Point3D.h:15
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::LocalCoordinateSystemTag > LocalVector
vector in local coordinate system
Definition: Vector3D.h:25
const LocalTrajectoryParameters & parameters() const
std::map< TrackingRecHitRef, TrackingRecHitInfo > TrajectoryInfo
default constructor
Definition: TrackInfo.h:26