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
Version
Id:
TrackingRecHitInfo.h,v 1.4 2007/04/18 16:46:37 genta Exp

Definition at line 24 of file TrackingRecHitInfo.h.

Member Typedef Documentation

Definition at line 27 of file TrackingRecHitInfo.h.

Definition at line 28 of file TrackingRecHitInfo.h.

Constructor & Destructor Documentation

reco::TrackingRecHitInfo::TrackingRecHitInfo ( )
inline

Definition at line 30 of file TrackingRecHitInfo.h.

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

Definition at line 31 of file TrackingRecHitInfo.h.

31 :type_(type),states_(states){}
type
Definition: HCALResponse.h:22

Member Function Documentation

const LocalVector TrackingRecHitInfo::localTrackMomentumOnMono ( StateType  statetype) const

Definition at line 6 of file TrackingRecHitInfo.cc.

References evf::utils::state, and 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
char state
Definition: procUtils.cc:75
const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo ( StateType  statetype) const

Definition at line 14 of file TrackingRecHitInfo.cc.

References evf::utils::state, and 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
char state
Definition: procUtils.cc:75
const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono ( StateType  statetype) const

Definition at line 21 of file TrackingRecHitInfo.cc.

References evf::utils::state, and 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 }
char state
Definition: procUtils.cc:75
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo ( StateType  statetype) const

Definition at line 28 of file TrackingRecHitInfo.cc.

References evf::utils::state, and 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 }
char state
Definition: procUtils.cc:75
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const PTrajectoryStateOnDet * TrackingRecHitInfo::stateOnDet ( StateType  statetype) const

Definition at line 35 of file TrackingRecHitInfo.cc.

References evf::utils::state, and 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 }
char state
Definition: procUtils.cc:75
const TrackingStates& reco::TrackingRecHitInfo::statesOnDet ( ) const
inline

Definition at line 37 of file TrackingRecHitInfo.h.

References states_.

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

Member Data Documentation

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