00001 #include "AnalysisDataFormats/TrackInfo/interface/TrackingRecHitInfo.h" 00002 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00003 00004 using namespace reco; 00005 00006 const LocalVector TrackingRecHitInfo::localTrackMomentumOnMono(StateType statetype) const { 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 } 00012 00013 00014 const LocalVector TrackingRecHitInfo::localTrackMomentumOnStereo(StateType statetype)const { 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 } 00020 00021 const LocalPoint TrackingRecHitInfo::localTrackPositionOnMono(StateType statetype) const { 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 } 00027 00028 const LocalPoint TrackingRecHitInfo::localTrackPositionOnStereo(StateType statetype)const { 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 } 00034 00035 const PTrajectoryStateOnDet * TrackingRecHitInfo::stateOnDet(StateType statetype)const { 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 }