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
LayerWithHits::layer
const DetLayer * layer() const
Definition: LayerWithHits.h:35
DetLayer
Definition: DetLayer.h:21
SiStripMatchedRecHit2DCollection.h
DetSetAlgorithm.h
LayerWithHits::LayerWithHits
LayerWithHits(const DetLayer *dl, DSTV const &allhits, SEL const &sel)
Definition: LayerWithHits.h:23
TrackingRecHit.h
LayerWithHits::theDetLayer
const DetLayer * theDetLayer
Definition: LayerWithHits.h:38
edmNew::copyDetSetRange
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
Definition: DetSetAlgorithm.h:42
LayerWithHits::recHits
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
Definition: LayerWithHits.h:32
SiPixelRecHitCollection.h
LayerWithHits::theHits
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:39
SiStripRecHit2DCollection.h
LayerWithHits::~LayerWithHits
~LayerWithHits()
Definition: LayerWithHits.h:29
DetLayer.h
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
LayerWithHits::LayerWithHits
LayerWithHits(const DetLayer *dl, const std::vector< const TrackingRecHit * > &theInputHits)
Definition: LayerWithHits.h:14
DetSetVectorNew.h
LayerWithHits
Definition: LayerWithHits.h:12