CMS 3D CMS Logo

reco::TrackingRecHitInfo Class Reference

It contains additional info for tracker studies. More...

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

List of all members.

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 (RecHitType type, TrackingStates &states)
 TrackingRecHitInfo ()
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

typedef reco::StateType reco::TrackingRecHitInfo::StateType

Definition at line 27 of file TrackingRecHitInfo.h.

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

Definition at line 28 of file TrackingRecHitInfo.h.


Constructor & Destructor Documentation

reco::TrackingRecHitInfo::TrackingRecHitInfo (  )  [inline]

Definition at line 30 of file TrackingRecHitInfo.h.

00030 {}

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

Definition at line 31 of file TrackingRecHitInfo.h.

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


Member Function Documentation

const LocalVector TrackingRecHitInfo::localTrackMomentumOnMono ( StateType  statetype  )  const

Definition at line 6 of file TrackingRecHitInfo.cc.

References state, and states_.

00006                                                                                         {
00007   TrackingStates::const_iterator state=states_.find(statetype);
00008   if(state!=states_.end())return state->second.localTrackMomentumOnMono();
00009   else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
00010   return LocalVector(0,0,0); 
00011 }

const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo ( StateType  statetype  )  const

Definition at line 14 of file TrackingRecHitInfo.cc.

References state, and states_.

00014                                                                                          {
00015   TrackingStates::const_iterator state=states_.find(statetype);
00016   if(state!=states_.end())return state->second.localTrackMomentumOnStereo();
00017   else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
00018   return LocalVector(0,0,0); 
00019 }

const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono ( StateType  statetype  )  const

Definition at line 21 of file TrackingRecHitInfo.cc.

References state, and states_.

00021                                                                                        {
00022   TrackingStates::const_iterator state=states_.find(statetype);
00023   if(state!=states_.end())return state->second.localTrackPositionOnMono();
00024   else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
00025   return LocalPoint(0,0,0); 
00026 }

const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo ( StateType  statetype  )  const

Definition at line 28 of file TrackingRecHitInfo.cc.

References state, and states_.

00028                                                                                         {
00029   TrackingStates::const_iterator state=states_.find(statetype);
00030   if(state!=states_.end())return state->second.localTrackPositionOnStereo();
00031   else edm::LogError("TrackingRecHitInfo")<<"This state does not exist";
00032   return LocalPoint(0,0,0); 
00033 }

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

Definition at line 35 of file TrackingRecHitInfo.cc.

References state, and states_.

00035                                                                                      {
00036   TrackingStates::const_iterator state=states_.find(statetype);
00037   if(state!=states_.end())return state->second.stateOnDet();
00038   else edm::LogError("TrackInfo")<<"This rechit does not exist";
00039   return 0;
00040 }

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

Definition at line 37 of file TrackingRecHitInfo.h.

References states_.

00037 {return states_;}

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

Definition at line 32 of file TrackingRecHitInfo.h.

References type_.

00032 {return type_;}


Member Data Documentation

TrackingStates reco::TrackingRecHitInfo::states_ [private]

Definition at line 42 of file TrackingRecHitInfo.h.

Referenced by localTrackMomentumOnMono(), localTrackMomentumOnStereo(), localTrackPositionOnMono(), localTrackPositionOnStereo(), stateOnDet(), and statesOnDet().

RecHitType reco::TrackingRecHitInfo::type_ [private]

Definition at line 41 of file TrackingRecHitInfo.h.

Referenced by type().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:34 2009 for CMSSW by  doxygen 1.5.4