CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
reco::TrackingRecHitInfo Class Reference

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

Public Types

typedef reco::StateType StateType
 
typedef std::map< StateType,
TrackingStateInfo
TrackingStates
 

Public Member Functions

const LocalVector localTrackMomentumOnMono (StateType statetype) const
 
const LocalVector localTrackMomentumOnStereo (StateType statetype) const
 
const LocalPoint localTrackPositionOnMono (StateType statetype) const
 
const LocalPoint localTrackPositionOnStereo (StateType statetype) const
 
const PTrajectoryStateOnDetstateOnDet (StateType statetype) const
 
const TrackingStatesstatesOnDet () const
 
 TrackingRecHitInfo ()
 
 TrackingRecHitInfo (RecHitType type, TrackingStates &states)
 
const RecHitType type () const
 

Private Attributes

TrackingStates states_
 
RecHitType type_
 

Detailed Description

It contains additional info for tracker studies

Author
Chiara Genta

Definition at line 22 of file TrackingRecHitInfo.h.

Member Typedef Documentation

Definition at line 24 of file TrackingRecHitInfo.h.

Definition at line 25 of file TrackingRecHitInfo.h.

Constructor & Destructor Documentation

reco::TrackingRecHitInfo::TrackingRecHitInfo ( )
inline

Definition at line 27 of file TrackingRecHitInfo.h.

27 {}
reco::TrackingRecHitInfo::TrackingRecHitInfo ( RecHitType  type,
TrackingStates states 
)
inline

Definition at line 28 of file TrackingRecHitInfo.h.

Member Function Documentation

const LocalVector TrackingRecHitInfo::localTrackMomentumOnMono ( StateType  statetype) const

Definition at line 6 of file TrackingRecHitInfo.cc.

References states_.

6  {
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 }
Local3DVector LocalVector
Definition: LocalVector.h:12
Log< level::Error, false > LogError
const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo ( StateType  statetype) const

Definition at line 15 of file TrackingRecHitInfo.cc.

References states_.

15  {
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 }
Local3DVector LocalVector
Definition: LocalVector.h:12
Log< level::Error, false > LogError
const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono ( StateType  statetype) const

Definition at line 24 of file TrackingRecHitInfo.cc.

References states_.

24  {
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 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
Log< level::Error, false > LogError
const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo ( StateType  statetype) const

Definition at line 33 of file TrackingRecHitInfo.cc.

References states_.

33  {
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 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
Log< level::Error, false > LogError
const PTrajectoryStateOnDet * TrackingRecHitInfo::stateOnDet ( StateType  statetype) const

Definition at line 42 of file TrackingRecHitInfo.cc.

References states_.

42  {
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 }
Log< level::Error, false > LogError
const TrackingStates& reco::TrackingRecHitInfo::statesOnDet ( ) const
inline

Definition at line 34 of file TrackingRecHitInfo.h.

References states_.

34 { return states_; }
const RecHitType reco::TrackingRecHitInfo::type ( ) const
inline

Definition at line 29 of file TrackingRecHitInfo.h.

References type_.

29 { return type_; }

Member Data Documentation

TrackingStates reco::TrackingRecHitInfo::states_
private
RecHitType reco::TrackingRecHitInfo::type_
private