RecoEcal
EgammaClusterProducers
interface
IslandClusterProducer.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaClusterProducers_IslandClusterProducer_h_
2
#define RecoEcal_EgammaClusterProducers_IslandClusterProducer_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/IslandClusterAlgo.h
"
16
#include "
RecoEcal/EgammaCoreTools/interface/PositionCalc.h
"
17
#include "
RecoEcal/EgammaCoreTools/interface/ClusterShapeAlgo.h
"
18
#include "
Geometry/CaloTopology/interface/CaloSubdetectorTopology.h
"
19
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
20
21
#include "
DataFormats/EgammaReco/interface/BasicClusterFwd.h
"
22
#include "
DataFormats/CaloRecHit/interface/CaloClusterFwd.h
"
23
24
//
25
26
class
IslandClusterProducer
:
public
edm::stream::EDProducer
<> {
27
public
:
28
IslandClusterProducer
(
const
edm::ParameterSet
& ps);
29
30
~IslandClusterProducer
()
override
;
31
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
32
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
33
34
private
:
35
int
nMaxPrintout_
;
// max # of printouts
36
int
nEvt_
;
// internal counter of events
37
38
IslandClusterAlgo::VerbosityLevel
verbosity
;
39
40
edm::EDGetTokenT<EcalRecHitCollection>
barrelRecHits_
;
41
edm::EDGetTokenT<EcalRecHitCollection>
endcapRecHits_
;
42
43
std::string
barrelClusterCollection_
;
44
std::string
endcapClusterCollection_
;
45
46
std::string
clustershapecollectionEB_
;
47
std::string
clustershapecollectionEE_
;
48
49
//BasicClusterShape AssociationMap
50
std::string
barrelClusterShapeAssociation_
;
51
std::string
endcapClusterShapeAssociation_
;
52
53
PositionCalc
posCalculator_
;
// position calculation algorithm
54
ClusterShapeAlgo
shapeAlgo_
;
// cluster shape algorithm
55
IslandClusterAlgo
*
island_p
;
56
57
bool
counterExceeded
()
const
{
return
((
nEvt_
>
nMaxPrintout_
) || (
nMaxPrintout_
< 0)); }
58
59
const
EcalRecHitCollection
*
getCollection
(
edm::Event
& evt,
const
edm::EDGetTokenT<EcalRecHitCollection>
&
token
);
60
61
void
clusterizeECALPart
(
edm::Event
& evt,
62
const
edm::EventSetup
& es,
63
const
edm::EDGetTokenT<EcalRecHitCollection>
&
token
,
64
const
std::string
& clusterCollection,
65
const
std::string
& clusterShapeAssociation,
66
const
IslandClusterAlgo::EcalPart
& ecalPart);
67
68
void
outputValidationInfo
(
reco::CaloClusterPtrVector
& clusterPtrVector);
69
};
70
71
#endif
IslandClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition:
IslandClusterProducer.h:43
IslandClusterProducer::verbosity
IslandClusterAlgo::VerbosityLevel verbosity
Definition:
IslandClusterProducer.h:38
PositionCalc.h
IslandClusterAlgo::VerbosityLevel
VerbosityLevel
Definition:
IslandClusterAlgo.h:29
edm::EDGetTokenT
Definition:
EDGetToken.h:33
IslandClusterAlgo::EcalPart
EcalPart
Definition:
IslandClusterAlgo.h:28
IslandClusterProducer::posCalculator_
PositionCalc posCalculator_
Definition:
IslandClusterProducer.h:53
IslandClusterProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
IslandClusterProducer.cc:113
IslandClusterAlgo.h
EDProducer.h
edm::SortedCollection< EcalRecHit >
IslandClusterProducer::shapeAlgo_
ClusterShapeAlgo shapeAlgo_
Definition:
IslandClusterProducer.h:54
IslandClusterProducer::island_p
IslandClusterAlgo * island_p
Definition:
IslandClusterProducer.h:55
IslandClusterProducer::nEvt_
int nEvt_
Definition:
IslandClusterProducer.h:36
ClusterShapeAlgo.h
IslandClusterProducer::clustershapecollectionEE_
std::string clustershapecollectionEE_
Definition:
IslandClusterProducer.h:47
EcalRecHitCollections.h
BasicClusterFwd.h
IslandClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
IslandClusterProducer.cc:143
IslandClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition:
IslandClusterProducer.h:35
edm::PtrVector< CaloCluster >
IslandClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition:
IslandClusterProducer.h:44
CaloClusterFwd.h
ClusterShapeAlgo
Definition:
ClusterShapeAlgo.h:35
IslandClusterProducer::counterExceeded
bool counterExceeded() const
Definition:
IslandClusterProducer.h:57
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
IslandClusterProducer::outputValidationInfo
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
edm::ParameterSet
Definition:
ParameterSet.h:36
IslandClusterProducer::getCollection
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
Definition:
IslandClusterProducer.cc:151
Event.h
IslandClusterProducer::IslandClusterProducer
IslandClusterProducer(const edm::ParameterSet &ps)
Definition:
IslandClusterProducer.cc:40
IslandClusterProducer::endcapClusterShapeAssociation_
std::string endcapClusterShapeAssociation_
Definition:
IslandClusterProducer.h:51
IslandClusterProducer::clustershapecollectionEB_
std::string clustershapecollectionEB_
Definition:
IslandClusterProducer.h:46
IslandClusterAlgo
Definition:
IslandClusterAlgo.h:26
PositionCalc
Definition:
PositionCalc.h:29
edm::stream::EDProducer
Definition:
EDProducer.h:38
IslandClusterProducer::endcapRecHits_
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHits_
Definition:
IslandClusterProducer.h:41
edm::EventSetup
Definition:
EventSetup.h:57
CaloSubdetectorTopology.h
IslandClusterProducer::barrelRecHits_
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
Definition:
IslandClusterProducer.h:40
Frameworkfwd.h
EventSetup.h
IslandClusterProducer
Definition:
IslandClusterProducer.h:26
IslandClusterProducer::barrelClusterShapeAssociation_
std::string barrelClusterShapeAssociation_
Definition:
IslandClusterProducer.h:50
ParameterSet.h
edm::Event
Definition:
Event.h:73
IslandClusterProducer::clusterizeECALPart
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)
Definition:
IslandClusterProducer.cc:158
IslandClusterProducer::~IslandClusterProducer
~IslandClusterProducer() override
Definition:
IslandClusterProducer.cc:111
unpackBuffers-CaloStage2.token
token
Definition:
unpackBuffers-CaloStage2.py:316
Generated for CMSSW Reference Manual by
1.8.16