CMS 3D CMS Logo

TrackingRecHitInfo.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7  TrackingStates::const_iterator state = states_.find(statetype);
8  if (state != states_.end())
9  return state->second.localTrackMomentumOnMono();
10  else
11  edm::LogError("TrackingRecHitInfo") << "This state does not exist";
12  return LocalVector(0, 0, 0);
13 }
14 
16  TrackingStates::const_iterator state = states_.find(statetype);
17  if (state != states_.end())
18  return state->second.localTrackMomentumOnStereo();
19  else
20  edm::LogError("TrackingRecHitInfo") << "This state does not exist";
21  return LocalVector(0, 0, 0);
22 }
23 
25  TrackingStates::const_iterator state = states_.find(statetype);
26  if (state != states_.end())
27  return state->second.localTrackPositionOnMono();
28  else
29  edm::LogError("TrackingRecHitInfo") << "This state does not exist";
30  return LocalPoint(0, 0, 0);
31 }
32 
34  TrackingStates::const_iterator state = states_.find(statetype);
35  if (state != states_.end())
36  return state->second.localTrackPositionOnStereo();
37  else
38  edm::LogError("TrackingRecHitInfo") << "This state does not exist";
39  return LocalPoint(0, 0, 0);
40 }
41 
43  TrackingStates::const_iterator state = states_.find(statetype);
44  if (state != states_.end())
45  return state->second.stateOnDet();
46  else
47  edm::LogError("TrackInfo") << "This rechit does not exist";
48  return nullptr;
49 }
MessageLogger.h
reco::TrackingRecHitInfo::states_
TrackingStates states_
Definition: TrackingRecHitInfo.h:39
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
TrackingRecHitInfo.h
reco::TrackingRecHitInfo::localTrackPositionOnMono
const LocalPoint localTrackPositionOnMono(StateType statetype) const
Definition: TrackingRecHitInfo.cc:24
math::LocalVector
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::LocalCoordinateSystemTag > LocalVector
vector in local coordinate system
Definition: Vector3D.h:25
reco::StateType
StateType
Definition: TrackInfoEnum.h:14
edm::LogError
Definition: MessageLogger.h:183
LocalVector
Local3DVector LocalVector
Definition: LocalVector.h:12
math::LocalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::LocalCoordinateSystemTag > LocalPoint
point in local coordinate system
Definition: Point3D.h:15
reco::TrackingRecHitInfo::localTrackPositionOnStereo
const LocalPoint localTrackPositionOnStereo(StateType statetype) const
Definition: TrackingRecHitInfo.cc:33
reco::TrackingRecHitInfo::stateOnDet
const PTrajectoryStateOnDet * stateOnDet(StateType statetype) const
Definition: TrackingRecHitInfo.cc:42
PTrajectoryStateOnDet
Definition: PTrajectoryStateOnDet.h:10
reco::TrackingRecHitInfo::localTrackMomentumOnStereo
const LocalVector localTrackMomentumOnStereo(StateType statetype) const
Definition: TrackingRecHitInfo.cc:15
reco::TrackingRecHitInfo::localTrackMomentumOnMono
const LocalVector localTrackMomentumOnMono(StateType statetype) const
Definition: TrackingRecHitInfo.cc:6