RecoTracker
TkHitPairs
interface
LayerWithHits.h
Go to the documentation of this file.
1
#ifndef LayerWithHits_H
2
#define LayerWithHits_H
3
4
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHit.h
"
5
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h
"
6
#include "
DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h
"
7
#include "
DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2DCollection.h
"
8
#include "
DataFormats/Common/interface/DetSetVectorNew.h
"
9
#include "
DataFormats/Common/interface/DetSetAlgorithm.h
"
10
#include "
TrackingTools/DetLayers/interface/DetLayer.h
"
11
12
class
LayerWithHits
{
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;
25
edmNew::copyDetSetRange
(allhits,
theHits
,
sel
);
26
}
27
28
//destructor
29
~LayerWithHits
() {}
30
32
const
std::vector<const TrackingRecHit*>&
recHits
()
const
{
return
theHits
; }
33
34
//detlayer
35
const
DetLayer
*
layer
()
const
{
return
theDetLayer
; }
36
37
private
:
38
const
DetLayer
*
theDetLayer
;
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
Generated for CMSSW Reference Manual by
1.8.16