CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LayerWithHits.h
Go to the documentation of this file.
1 #ifndef LayerWithHits_H
2 #define LayerWithHits_H
3 
11 
13 {
14  public:
15  LayerWithHits(const DetLayer *dl,const std::vector<const TrackingRecHit*>& theInputHits):
16  theDetLayer(dl),theHits(theInputHits){}
17 
21  template <typename DSTV, typename SEL>
23  DSTV const & allhits,
24  SEL const & sel)
25  {
26  theDetLayer = dl;
27  edmNew::copyDetSetRange(allhits,theHits,sel);
28  }
29 
30 
31  //destructor
33 
35  const std::vector<const TrackingRecHit*>& recHits() const {return theHits;}
36 
37  //detlayer
38  const DetLayer* layer() const {return theDetLayer;}
39 
40  private:
42  std::vector<const TrackingRecHit*> theHits;
43 };
44 #endif
45 
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:42
const DetLayer * layer() const
Definition: LayerWithHits.h:38
tuple dl
Definition: diclist.py:34
LayerWithHits(const DetLayer *dl, const std::vector< const TrackingRecHit * > &theInputHits)
Definition: LayerWithHits.h:15
LayerWithHits(const DetLayer *dl, DSTV const &allhits, SEL const &sel)
Definition: LayerWithHits.h:22
const DetLayer * theDetLayer
Definition: LayerWithHits.h:41
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
Definition: LayerWithHits.h:35