Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:53

0001 #ifndef TRACKINGTOOLS_TRANSIENTRECHITBUILDER_H
0002 #define TRACKINGTOOLS_TRANSIENTRECHITBUILDER_H
0003 
0004 #include "TrackingTools/TransientTrackingRecHit/interface/TValidTrackingRecHit.h"
0005 
0006 class TransientTrackingRecHitBuilder {
0007 public:
0008   typedef TransientTrackingRecHit::RecHitPointer RecHitPointer;
0009   typedef TransientTrackingRecHit::RecHitContainer RecHitContainer;
0010   virtual ~TransientTrackingRecHitBuilder() = default;
0011   /// build a tracking rechit from an existing rechit
0012   virtual RecHitPointer build(const TrackingRecHit* p) const = 0;
0013 
0014   /// build a tracking rechit refiting the rechit position and error according to the state estimate
0015   virtual RecHitPointer build(const TrackingRecHit* p, const TrajectoryStateOnSurface& state) const {
0016     return build(p);
0017   };
0018 };
0019 
0020 #endif