CMS 3D CMS Logo

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, TrackingStateInfoTrackingStates
 

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

◆ StateType

Definition at line 24 of file TrackingRecHitInfo.h.

◆ TrackingStates

Definition at line 25 of file TrackingRecHitInfo.h.

Constructor & Destructor Documentation

◆ TrackingRecHitInfo() [1/2]

reco::TrackingRecHitInfo::TrackingRecHitInfo ( )
inline

Definition at line 27 of file TrackingRecHitInfo.h.

27 {}

◆ TrackingRecHitInfo() [2/2]

reco::TrackingRecHitInfo::TrackingRecHitInfo ( RecHitType  type,
TrackingStates states 
)
inline

Definition at line 28 of file TrackingRecHitInfo.h.

28 : type_(type), states_(states) {}

Member Function Documentation

◆ localTrackMomentumOnMono()

const LocalVector TrackingRecHitInfo::localTrackMomentumOnMono ( StateType  statetype) const

Definition at line 6 of file TrackingRecHitInfo.cc.

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 }

References states_.

◆ localTrackMomentumOnStereo()

const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo ( StateType  statetype) const

Definition at line 15 of file TrackingRecHitInfo.cc.

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 }

References states_.

◆ localTrackPositionOnMono()

const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono ( StateType  statetype) const

Definition at line 24 of file TrackingRecHitInfo.cc.

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 }

References states_.

◆ localTrackPositionOnStereo()

const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo ( StateType  statetype) const

Definition at line 33 of file TrackingRecHitInfo.cc.

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 }

References states_.

◆ stateOnDet()

const PTrajectoryStateOnDet * TrackingRecHitInfo::stateOnDet ( StateType  statetype) const

Definition at line 42 of file TrackingRecHitInfo.cc.

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 }

References states_.

◆ statesOnDet()

const TrackingStates& reco::TrackingRecHitInfo::statesOnDet ( ) const
inline

Definition at line 34 of file TrackingRecHitInfo.h.

34 { return states_; }

References states_.

◆ type()

const RecHitType reco::TrackingRecHitInfo::type ( ) const
inline

Definition at line 29 of file TrackingRecHitInfo.h.

29 { return type_; }

References type_.

Member Data Documentation

◆ states_

TrackingStates reco::TrackingRecHitInfo::states_
private

◆ type_

RecHitType reco::TrackingRecHitInfo::type_
private
reco::TrackingRecHitInfo::states_
TrackingStates states_
Definition: TrackingRecHitInfo.h:39
reco::TrackingRecHitInfo::type_
RecHitType type_
Definition: TrackingRecHitInfo.h:38
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
LocalVector
Local3DVector LocalVector
Definition: LocalVector.h:12
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16