CMS 3D CMS Logo

MTDTransientTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef RecoMTD_TransientTrackingRecHit_MTDTransientTrackingRecHit_h
2 #define RecoMTD_TransientTrackingRecHit_MTDTransientTrackingRecHit_h
3 
16 
18 
19 
21 public:
22  using MTDRecHitPointer = std::shared_ptr<MTDTransientTrackingRecHit>;
23  using ConstMTDRecHitPointer = std::shared_ptr<MTDTransientTrackingRecHit const>;
24 
25  typedef std::vector<MTDRecHitPointer> MTDRecHitContainer;
26  typedef std::vector<ConstMTDRecHitPointer> ConstMTDRecHitContainer;
27 
29 
31  bool isBTL() const;
32 
34  bool isETL() const;
35 
36  static RecHitPointer build( const GeomDet * geom, const TrackingRecHit* rh) {
37  return RecHitPointer( new MTDTransientTrackingRecHit(geom, rh));
38  }
39 
41  LogDebug("MTDTransientTrackingRecHit") << "Getting specificBuild"<<std::endl;
42  return MTDRecHitPointer(new MTDTransientTrackingRecHit(geom, rh));
43  }
44 
45  void invalidateHit();
46 
47  private:
48 
51 
54 
55  MTDTransientTrackingRecHit* clone() const override {
56  return new MTDTransientTrackingRecHit(*this);
57  }
58 
59 };
60 #endif
61 
#define LogDebug(id)
bool isETL() const
if this rec hit is a ETL rec hit
static RecHitPointer build(const GeomDet *geom, const TrackingRecHit *rh)
std::vector< ConstMTDRecHitPointer > ConstMTDRecHitContainer
std::shared_ptr< MTDTransientTrackingRecHit > MTDRecHitPointer
std::shared_ptr< MTDTransientTrackingRecHit const > ConstMTDRecHitPointer
std::vector< MTDRecHitPointer > MTDRecHitContainer
bool isBTL() const
if this rec hit is a BTL rec hit
std::shared_ptr< TrackingRecHit const > RecHitPointer
static MTDRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
MTDTransientTrackingRecHit * clone() const override
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.