CMS 3D CMS Logo

LayerWithHits.h
Go to the documentation of this file.
1 #ifndef LayerWithHits_H
2 #define LayerWithHits_H
3 
11 
13 public:
14  LayerWithHits(const DetLayer* dl, const std::vector<const TrackingRecHit*>& theInputHits)
15  : theDetLayer(dl), theHits(theInputHits) {}
16 
22  template <typename DSTV, typename SEL>
23  LayerWithHits(const DetLayer* dl, DSTV const& allhits, SEL const& sel) {
24  theDetLayer = dl;
26  }
27 
28  //destructor
30 
32  const std::vector<const TrackingRecHit*>& recHits() const { return theHits; }
33 
34  //detlayer
35  const DetLayer* layer() const { return theDetLayer; }
36 
37 private:
39  std::vector<const TrackingRecHit*> theHits;
40 };
41 #endif
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:39
void copyDetSetRange(DSTV const &dstv, std::vector< T const *> &v, std::pair< A, B > const &sel)
const DetLayer * layer() const
Definition: LayerWithHits.h:35
LayerWithHits(const DetLayer *dl, const std::vector< const TrackingRecHit *> &theInputHits)
Definition: LayerWithHits.h:14
LayerWithHits(const DetLayer *dl, DSTV const &allhits, SEL const &sel)
Definition: LayerWithHits.h:23
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
Definition: LayerWithHits.h:32
const DetLayer * theDetLayer
Definition: LayerWithHits.h:38