Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:24

0001 #ifndef TrackInfo_TrackingStateInfo_h
0002 #define TrackInfo_TrackingStateInfo_h
0003 /** \class reco::TrackingStateInfo TrackingStateInfo.h DataFormats/TrackAnalysisInfo/interface/TrackingStateInfo.h
0004  *
0005  * It contains additional info
0006  * for tracker studies
0007  * 
0008  *
0009  * \author Chiara Genta
0010  *
0011  *
0012  */
0013 
0014 #include "AnalysisDataFormats/TrackInfo/interface/TrackInfoFwd.h"
0015 #include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
0016 #include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
0017 #include "DataFormats/TrajectorySeed/interface/TrajectorySeed.h"
0018 
0019 namespace reco {
0020   class TrackingStateInfo {
0021   public:
0022     //    enum StateType { Updated=0, Combined=1, FwPredicted=2, BwPredicted=3};
0023 
0024     //enum RecHitType { Single=0, Matched=1, Projected=2};
0025 
0026     TrackingStateInfo() {}
0027     TrackingStateInfo(const std::pair<LocalVector, LocalVector>& trackdirections,
0028                       const std::pair<LocalPoint, LocalPoint>& trackpositions,
0029                       PTrajectoryStateOnDet const& trajstate)
0030         : trackdirections_(trackdirections), trackpositions_(trackpositions), trajstate_(trajstate) {}
0031     //const RecHitType  type() const {return type_;}
0032     //const StateType  statetype() const {return statetype_;}
0033     const LocalVector localTrackMomentumOnMono() const { return trackdirections_.first; }
0034     const LocalVector localTrackMomentumOnStereo() const { return trackdirections_.second; }
0035     const LocalPoint localTrackPositionOnMono() const { return trackpositions_.first; }
0036     const LocalPoint localTrackPositionOnStereo() const { return trackpositions_.second; }
0037     const PTrajectoryStateOnDet* stateOnDet() const { return &trajstate_; };
0038 
0039   private:
0040     std::pair<LocalVector, LocalVector> trackdirections_;
0041     std::pair<LocalPoint, LocalPoint> trackpositions_;
0042     PTrajectoryStateOnDet trajstate_;
0043   };
0044 
0045 }  // namespace reco
0046 #endif