RecoEcal
EgammaClusterProducers
interface
Multi5x5ClusterProducer.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaClusterProducers_Multi5x5ClusterProducer_h_
2
#define RecoEcal_EgammaClusterProducers_Multi5x5ClusterProducer_h_
3
4
#include <memory>
5
#include <ctime>
6
7
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
8
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
9
#include "
FWCore/Framework/interface/Event.h
"
10
#include "
FWCore/Framework/interface/EventSetup.h
"
11
12
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
13
14
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
15
#include "
RecoEcal/EgammaClusterAlgos/interface/Multi5x5ClusterAlgo.h
"
16
#include "
RecoEcal/EgammaCoreTools/interface/PositionCalc.h
"
17
#include "
Geometry/CaloTopology/interface/CaloSubdetectorTopology.h
"
18
19
#include "
DataFormats/EgammaReco/interface/BasicClusterFwd.h
"
20
#include "
DataFormats/CaloRecHit/interface/CaloClusterFwd.h
"
21
22
//
23
24
class
Multi5x5ClusterProducer
:
public
edm::stream::EDProducer
<> {
25
public
:
26
Multi5x5ClusterProducer
(
const
edm::ParameterSet
& ps);
27
28
~Multi5x5ClusterProducer
()
override
;
29
30
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
31
32
private
:
33
int
nMaxPrintout_
;
// max # of printouts
34
int
nEvt_
;
// internal counter of events
35
36
// cluster which regions
37
bool
doBarrel_
;
38
bool
doEndcap_
;
39
40
edm::EDGetTokenT<EcalRecHitCollection>
barrelHitToken_
;
41
edm::EDGetTokenT<EcalRecHitCollection>
endcapHitToken_
;
42
43
std::string
barrelClusterCollection_
;
44
std::string
endcapClusterCollection_
;
45
46
PositionCalc
posCalculator_
;
// position calculation algorithm
47
Multi5x5ClusterAlgo
*
island_p
;
48
49
bool
counterExceeded
()
const
{
return
((
nEvt_
>
nMaxPrintout_
) || (
nMaxPrintout_
< 0)); }
50
51
const
EcalRecHitCollection
*
getCollection
(
edm::Event
& evt,
const
edm::EDGetTokenT<EcalRecHitCollection>
&
token
);
52
53
void
clusterizeECALPart
(
edm::Event
& evt,
54
const
edm::EventSetup
& es,
55
const
edm::EDGetTokenT<EcalRecHitCollection>
&
token
,
56
const
std::string
& clusterCollection,
57
const
reco::CaloID::Detectors
detector
);
58
59
void
outputValidationInfo
(
reco::CaloClusterPtrVector
& clusterPtrVector);
60
};
61
62
#endif
PositionCalc.h
Multi5x5ClusterProducer::~Multi5x5ClusterProducer
~Multi5x5ClusterProducer() override
Definition:
Multi5x5ClusterProducer.cc:77
Multi5x5ClusterProducer::barrelHitToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelHitToken_
Definition:
Multi5x5ClusterProducer.h:40
reco::CaloID::Detectors
Detectors
Definition:
CaloID.h:19
Multi5x5ClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition:
Multi5x5ClusterProducer.h:43
edm::EDGetTokenT
Definition:
EDGetToken.h:33
Multi5x5ClusterAlgo.h
EDProducer.h
edm::SortedCollection< EcalRecHit >
Multi5x5ClusterProducer
Definition:
Multi5x5ClusterProducer.h:24
EcalRecHitCollections.h
Multi5x5ClusterProducer::endcapHitToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapHitToken_
Definition:
Multi5x5ClusterProducer.h:41
BasicClusterFwd.h
Multi5x5ClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
Multi5x5ClusterProducer.cc:79
Multi5x5ClusterProducer::Multi5x5ClusterProducer
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
Definition:
Multi5x5ClusterProducer.cc:37
Multi5x5ClusterProducer::nEvt_
int nEvt_
Definition:
Multi5x5ClusterProducer.h:34
edm::PtrVector< CaloCluster >
Multi5x5ClusterProducer::island_p
Multi5x5ClusterAlgo * island_p
Definition:
Multi5x5ClusterProducer.h:47
CaloClusterFwd.h
Multi5x5ClusterAlgo
Definition:
Multi5x5ClusterAlgo.h:27
Multi5x5ClusterProducer::doEndcap_
bool doEndcap_
Definition:
Multi5x5ClusterProducer.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Multi5x5ClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition:
Multi5x5ClusterProducer.h:44
Multi5x5ClusterProducer::getCollection
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
Definition:
Multi5x5ClusterProducer.cc:90
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
Multi5x5ClusterProducer::doBarrel_
bool doBarrel_
Definition:
Multi5x5ClusterProducer.h:37
PositionCalc
Definition:
PositionCalc.h:29
edm::stream::EDProducer
Definition:
EDProducer.h:38
Multi5x5ClusterProducer::posCalculator_
PositionCalc posCalculator_
Definition:
Multi5x5ClusterProducer.h:46
edm::EventSetup
Definition:
EventSetup.h:57
Multi5x5ClusterProducer::counterExceeded
bool counterExceeded() const
Definition:
Multi5x5ClusterProducer.h:49
CaloSubdetectorTopology.h
Frameworkfwd.h
Multi5x5ClusterProducer::outputValidationInfo
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
EventSetup.h
hgcalTestNeighbor_cfi.detector
detector
Definition:
hgcalTestNeighbor_cfi.py:6
Multi5x5ClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition:
Multi5x5ClusterProducer.h:33
Multi5x5ClusterProducer::clusterizeECALPart
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const reco::CaloID::Detectors detector)
Definition:
Multi5x5ClusterProducer.cc:97
ParameterSet.h
edm::Event
Definition:
Event.h:73
unpackBuffers-CaloStage2.token
token
Definition:
unpackBuffers-CaloStage2.py:316
Generated for CMSSW Reference Manual by
1.8.16