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 
23  template <typename DSTV, typename SEL>
25  DSTV const & allhits,
26  SEL const & sel)
27  {
28  theDetLayer = dl;
29  edmNew::copyDetSetRange(allhits,theHits,sel);
30  }
31 
32 
33  //destructor
35 
37  const std::vector<const TrackingRecHit*>& recHits() const {return theHits;}
38 
39  //detlayer
40  const DetLayer* layer() const {return theDetLayer;}
41 
42  private:
44  std::vector<const TrackingRecHit*> theHits;
45 };
46 #endif
47 
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:44
const DetLayer * layer() const
Definition: LayerWithHits.h:40
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:24
const DetLayer * theDetLayer
Definition: LayerWithHits.h:43
const std::vector< const TrackingRecHit * > & recHits() const
return the recHits of the Layer
Definition: LayerWithHits.h:37