CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 23 of file TrackingRecHitInfo.h.

Member Typedef Documentation

Definition at line 26 of file TrackingRecHitInfo.h.

Definition at line 27 of file TrackingRecHitInfo.h.

Constructor & Destructor Documentation

reco::TrackingRecHitInfo::TrackingRecHitInfo ( )
inline

Definition at line 29 of file TrackingRecHitInfo.h.

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

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())return state->second.localTrackMomentumOnMono();
9  else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
10  return LocalVector(0,0,0);
11 }
Local3DVector LocalVector
Definition: LocalVector.h:12
const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo ( StateType  statetype) const

Definition at line 14 of file TrackingRecHitInfo.cc.

References states_.

14  {
15  TrackingStates::const_iterator state=states_.find(statetype);
16  if(state!=states_.end())return state->second.localTrackMomentumOnStereo();
17  else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
18  return LocalVector(0,0,0);
19 }
Local3DVector LocalVector
Definition: LocalVector.h:12
const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono ( StateType  statetype) const

Definition at line 21 of file TrackingRecHitInfo.cc.

References states_.

21  {
22  TrackingStates::const_iterator state=states_.find(statetype);
23  if(state!=states_.end())return state->second.localTrackPositionOnMono();
24  else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
25  return LocalPoint(0,0,0);
26 }
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo ( StateType  statetype) const

Definition at line 28 of file TrackingRecHitInfo.cc.

References states_.

28  {
29  TrackingStates::const_iterator state=states_.find(statetype);
30  if(state!=states_.end())return state->second.localTrackPositionOnStereo();
31  else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
32  return LocalPoint(0,0,0);
33 }
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const PTrajectoryStateOnDet * TrackingRecHitInfo::stateOnDet ( StateType  statetype) const

Definition at line 35 of file TrackingRecHitInfo.cc.

References states_.

35  {
36  TrackingStates::const_iterator state=states_.find(statetype);
37  if(state!=states_.end())return state->second.stateOnDet();
38  else edm::LogError("TrackInfo")<<"This rechit does not exist";
39  return 0;
40 }
const TrackingStates& reco::TrackingRecHitInfo::statesOnDet ( ) const
inline

Definition at line 36 of file TrackingRecHitInfo.h.

References states_.

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

Member Data Documentation

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