RecoEcal
EgammaClusterProducers
interface
ReducedESRecHitCollectionProducer.h
Go to the documentation of this file.
1
#ifndef _ReducedESRecHitCollectionProducer_H
2
#define _ReducedESRecHitCollectionProducer_H
3
4
#include "
FWCore/Framework/interface/MakerMacros.h
"
5
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
8
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
#include "
DataFormats/Common/interface/Handle.h
"
11
#include "
DataFormats/DetId/interface/DetId.h
"
12
#include "
DataFormats/EcalDetId/interface/ESDetId.h
"
13
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
14
#include "
DataFormats/DetId/interface/DetIdCollection.h
"
15
#include "
DataFormats/EgammaReco/interface/SuperClusterFwd.h
"
16
#include <iostream>
17
#include <vector>
18
#include <string>
19
#include <map>
20
#include <set>
21
22
class
EcalPreshowerGeometry
;
23
class
CaloSubdetectorTopology
;
24
class
ReducedESRecHitCollectionProducer
:
public
edm::stream::EDProducer
<> {
25
public
:
26
ReducedESRecHitCollectionProducer
(
const
edm::ParameterSet
&
pset
);
27
~ReducedESRecHitCollectionProducer
()
override
;
28
void
beginRun
(
edm::Run
const
&,
const
edm::EventSetup
&)
final
;
29
void
produce
(
edm::Event
&
e
,
const
edm::EventSetup
&
c
)
override
;
30
void
collectIds
(
const
ESDetId
strip1,
const
ESDetId
strip2,
const
int
& row = 0);
31
32
private
:
33
const
EcalPreshowerGeometry
*
geometry_p
;
34
std::unique_ptr<CaloSubdetectorTopology>
topology_p
;
35
36
double
scEtThresh_
;
37
38
edm::EDGetTokenT<ESRecHitCollection>
InputRecHitES_
;
39
edm::EDGetTokenT<reco::SuperClusterCollection>
InputSuperClusterEE_
;
40
std::string
OutputLabelES_
;
41
std::vector<edm::EDGetTokenT<DetIdCollection>>
interestingDetIdCollections_
;
42
std::vector<edm::EDGetTokenT<DetIdCollection>>
43
interestingDetIdCollectionsNotToClean_
;
//theres a hard coded cut on rec-hit quality which some collections would prefer not to have...
44
45
std::set<DetId>
collectedIds_
;
46
};
47
48
#endif
ReducedESRecHitCollectionProducer::InputRecHitES_
edm::EDGetTokenT< ESRecHitCollection > InputRecHitES_
Definition:
ReducedESRecHitCollectionProducer.h:38
Handle.h
MessageLogger.h
ReducedESRecHitCollectionProducer::beginRun
void beginRun(edm::Run const &, const edm::EventSetup &) final
Definition:
ReducedESRecHitCollectionProducer.cc:43
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT
Definition:
EDGetToken.h:33
ReducedESRecHitCollectionProducer::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition:
ReducedESRecHitCollectionProducer.cc:56
EDProducer.h
ESDetId
Definition:
ESDetId.h:15
ESDetId.h
EcalRecHitCollections.h
MakerMacros.h
ReducedESRecHitCollectionProducer::collectIds
void collectIds(const ESDetId strip1, const ESDetId strip2, const int &row=0)
Definition:
ReducedESRecHitCollectionProducer.cc:145
EcalPreshowerGeometry
Definition:
EcalPreshowerGeometry.h:15
ReducedESRecHitCollectionProducer::InputSuperClusterEE_
edm::EDGetTokenT< reco::SuperClusterCollection > InputSuperClusterEE_
Definition:
ReducedESRecHitCollectionProducer.h:39
ReducedESRecHitCollectionProducer::topology_p
std::unique_ptr< CaloSubdetectorTopology > topology_p
Definition:
ReducedESRecHitCollectionProducer.h:34
ReducedESRecHitCollectionProducer::scEtThresh_
double scEtThresh_
Definition:
ReducedESRecHitCollectionProducer.h:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
ReducedESRecHitCollectionProducer::geometry_p
const EcalPreshowerGeometry * geometry_p
Definition:
ReducedESRecHitCollectionProducer.h:33
ReducedESRecHitCollectionProducer::ReducedESRecHitCollectionProducer
ReducedESRecHitCollectionProducer(const edm::ParameterSet &pset)
Definition:
ReducedESRecHitCollectionProducer.cc:20
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:57
CaloSubdetectorTopology
Definition:
CaloSubdetectorTopology.h:17
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
ReducedESRecHitCollectionProducer::interestingDetIdCollectionsNotToClean_
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollectionsNotToClean_
Definition:
ReducedESRecHitCollectionProducer.h:43
ReducedESRecHitCollectionProducer::interestingDetIdCollections_
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollections_
Definition:
ReducedESRecHitCollectionProducer.h:41
ReducedESRecHitCollectionProducer::collectedIds_
std::set< DetId > collectedIds_
Definition:
ReducedESRecHitCollectionProducer.h:45
ReducedESRecHitCollectionProducer::OutputLabelES_
std::string OutputLabelES_
Definition:
ReducedESRecHitCollectionProducer.h:40
SuperClusterFwd.h
DetId.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
ReducedESRecHitCollectionProducer::~ReducedESRecHitCollectionProducer
~ReducedESRecHitCollectionProducer() override
DetIdCollection.h
ReducedESRecHitCollectionProducer
Definition:
ReducedESRecHitCollectionProducer.h:24
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16