src
RecoLocalTracker
SubCollectionProducers
interface
PixelClusterSelectorTopBottom.h
Go to the documentation of this file.
1
#ifndef RecoSelectors_PixelClusterSelectorTopBottom_h
2
#define RecoSelectors_PixelClusterSelectorTopBottom_h
3
4
/* \class PixelClusterSelectorTopBottom
5
*
6
* \author Giuseppe Cerati, INFN
7
*
8
*
9
*/
10
11
#include "
DataFormats/SiPixelCluster/interface/SiPixelCluster.h
"
12
13
#include "
FWCore/Framework/interface/global/EDProducer.h
"
14
#include "
FWCore/Framework/interface/Event.h
"
15
#include "
DataFormats/Common/interface/Handle.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
18
#include "
DataFormats/SiPixelCluster/interface/SiPixelCluster.h
"
19
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
20
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
21
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h
"
22
#include "
Geometry/TrackerGeometryBuilder/interface/RectangularPixelTopology.h
"
23
#include "
DataFormats/DetId/interface/DetId.h
"
24
#include "
FWCore/Utilities/interface/InputTag.h
"
25
26
class
PixelClusterSelectorTopBottom
:
public
edm::global::EDProducer
<> {
27
public
:
28
explicit
PixelClusterSelectorTopBottom
(
const
edm::ParameterSet
&
cfg
)
29
:
tTrackerGeom_
(
esConsumes
<
TrackerGeometry
,
TrackerDigiGeometryRecord
>()),
30
token_
(
consumes
<
SiPixelClusterCollectionNew
>(
cfg
.getParameter<
edm
::
InputTag
>(
"label"
))),
31
y_
(
cfg
.getParameter<double>(
"y"
)) {
32
produces<SiPixelClusterCollectionNew>();
33
}
34
35
void
produce
(
edm::StreamID
,
edm::Event
&
event
,
const
edm::EventSetup
&
setup
)
const override
;
36
37
private
:
38
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord>
const
tTrackerGeom_
;
39
edm::EDGetTokenT<SiPixelClusterCollectionNew>
token_
;
40
double
y_
;
41
};
42
43
#endif
TrackerDigiGeometryRecord.h
ProducerED_cfi.InputTag
InputTag
Definition:
ProducerED_cfi.py:5
edm::StreamID
Definition:
StreamID.h:30
Event.h
RectangularPixelTopology.h
edm::EDGetTokenT
Definition:
EDGetToken.h:37
PixelClusterSelectorTopBottom::PixelClusterSelectorTopBottom
PixelClusterSelectorTopBottom(const edm::ParameterSet &cfg)
Definition:
PixelClusterSelectorTopBottom.h:28
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition:
EDConsumerBase.h:159
ParameterSet.h
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition:
EDConsumerBase.h:193
PixelClusterSelectorTopBottom::token_
edm::EDGetTokenT< SiPixelClusterCollectionNew > token_
Definition:
PixelClusterSelectorTopBottom.h:39
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
edmNew::DetSetVector
Definition:
DetSetNew.h:13
edm::EventSetup
Definition:
EventSetup.h:56
edm::global::EDProducer
Definition:
EDProducer.h:32
singleTopDQM_cfi.setup
setup
SETUP
Definition:
singleTopDQM_cfi.py:37
looper.cfg
cfg
Definition:
looper.py:296
PixelClusterSelectorTopBottom::produce
void produce(edm::StreamID, edm::Event &event, const edm::EventSetup &setup) const override
Definition:
PixelClusterSelectorTopBottom.cc:4
PixelGeomDetUnit.h
PixelClusterSelectorTopBottom
Definition:
PixelClusterSelectorTopBottom.h:26
EDProducer.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
InputTag.h
TrackerGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
TrackerDigiGeometryRecord
Definition:
TrackerDigiGeometryRecord.h:16
SiPixelCluster.h
PixelClusterSelectorTopBottom::tTrackerGeom_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > const tTrackerGeom_
Definition:
PixelClusterSelectorTopBottom.h:38
DetId.h
PixelClusterSelectorTopBottom::y_
double y_
Definition:
PixelClusterSelectorTopBottom.h:40
TrackerGeometry
Definition:
TrackerGeometry.h:14
event
Definition:
event.py:1
Handle.h
Generated for CMSSW Reference Manual by
1.8.14