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 }
const LocalPoint localTrackPositionOnStereo(StateType statetype) const
Local3DVector LocalVector
Definition: LocalVector.h:12
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
const LocalVector localTrackMomentumOnMono(StateType statetype) const
Log< level::Error, false > LogError
const LocalVector localTrackMomentumOnStereo(StateType statetype) const
const LocalPoint localTrackPositionOnMono(StateType statetype) const
fixed size matrix
const PTrajectoryStateOnDet * stateOnDet(StateType statetype) const
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