CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

reco::TrackInfo Class Reference

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

List of all members.

Public Types

typedef reco::StateType StateType
typedef std::map
< TrackingRecHitRef,
TrackingRecHitInfo
TrajectoryInfo
 default constructor

Public Member Functions

const LocalVector localTrackMomentum (StateType, TrackingRecHitRef) const
const LocalVector localTrackMomentumOnMono (StateType, TrackingRecHitRef) const
const LocalVector localTrackMomentumOnStereo (StateType, TrackingRecHitRef) const
const LocalPoint localTrackPosition (StateType, TrackingRecHitRef) const
const LocalPoint localTrackPositionOnMono (StateType, TrackingRecHitRef) const
const LocalPoint localTrackPositionOnStereo (StateType, TrackingRecHitRef) const
const TrajectorySeedseed () const
const PTrajectoryStateOnDetstateOnDet (StateType, TrackingRecHitRef) const
 TrackInfo (const TrajectorySeed &seed_, const TrajectoryInfo &trajstate)
 TrackInfo ()
const TrajectoryInfotrajStateMap () const
const RecHitType type (TrackingRecHitRef) const

Private Attributes

TrajectorySeed seed_
TrajectoryInfo trajstates_

Detailed Description

It contains additional info for tracker studies

Author:
Chiara Genta
Version:
Id:
TrackInfo.h,v 1.7 2007/04/18 16:46:37 genta Exp

Definition at line 24 of file TrackInfo.h.


Member Typedef Documentation

Definition at line 28 of file TrackInfo.h.

default constructor

Definition at line 27 of file TrackInfo.h.


Constructor & Destructor Documentation

reco::TrackInfo::TrackInfo ( ) [inline]

Definition at line 30 of file TrackInfo.h.

{}
TrackInfo::TrackInfo ( const TrajectorySeed seed_,
const TrajectoryInfo trajstate 
)

Definition at line 7 of file TrackInfo.cc.

: seed_(seed),trajstates_(trajstates){}

Member Function Documentation

const LocalVector TrackInfo::localTrackMomentum ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 27 of file TrackInfo.cc.

References LocalTrajectoryParameters::momentum(), PTrajectoryStateOnDet::parameters(), and trajstates_.

                                                                                              { 

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())
    {
      const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype);
      if(state!=0) return state->parameters().momentum();
    }
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return LocalVector(0,0,0); 
}
const LocalVector TrackInfo::localTrackMomentumOnMono ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 39 of file TrackInfo.cc.

References trajstates_.

                                                                                                    { 

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.localTrackMomentumOnMono(statetype);
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return LocalVector(0,0,0); 
}
const LocalVector TrackInfo::localTrackMomentumOnStereo ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 47 of file TrackInfo.cc.

References trajstates_.

                                                                                                      {

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.localTrackMomentumOnStereo(statetype);
  return LocalVector(0,0,0); 
}
const LocalPoint TrackInfo::localTrackPosition ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 54 of file TrackInfo.cc.

References PTrajectoryStateOnDet::parameters(), LocalTrajectoryParameters::position(), and trajstates_.

                                                                                              { 

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())
    {
      const PTrajectoryStateOnDet * state=states->second.stateOnDet(statetype);
      if(state!=0) return state->parameters().position();
    }
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return LocalPoint(0,0,0);
}
const LocalPoint TrackInfo::localTrackPositionOnMono ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 67 of file TrackInfo.cc.

References trajstates_.

                                                                                                   { 

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.localTrackPositionOnMono(statetype);
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return LocalPoint(0,0,0); 
}
const LocalPoint TrackInfo::localTrackPositionOnStereo ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 75 of file TrackInfo.cc.

References trajstates_.

                                                                                                     { 

  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.localTrackPositionOnStereo(statetype);
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return LocalPoint(0,0,0); 
}
const TrajectorySeed & TrackInfo::seed ( ) const

Definition at line 9 of file TrackInfo.cc.

References seed_.

{return seed_;}
const PTrajectoryStateOnDet * TrackInfo::stateOnDet ( StateType  statetype,
TrackingRecHitRef  hit 
) const

Definition at line 20 of file TrackInfo.cc.

References trajstates_.

                                                                                                  {
  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.stateOnDet(statetype);
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return 0;
}
const reco::TrackInfo::TrajectoryInfo & TrackInfo::trajStateMap ( ) const

Definition at line 11 of file TrackInfo.cc.

References trajstates_.

{return trajstates_;}
const RecHitType TrackInfo::type ( TrackingRecHitRef  hit) const

Definition at line 13 of file TrackInfo.cc.

References reco::Null, and trajstates_.

                                                             {
  TrajectoryInfo::const_iterator states=trajstates_.find(hit);
  if(states!=trajstates_.end())return states->second.type();
  else edm::LogError("TrackInfo")<<"This rechit does not exist";
  return Null;
}

Member Data Documentation

Definition at line 59 of file TrackInfo.h.

Referenced by seed().