CMS 3D CMS Logo

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 
12 
14 
21 
26 
27 //
28 
30 public:
32 
33  ~IslandClusterProducer() override;
34  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
35  void produce(edm::Event&, const edm::EventSetup&) override;
36 
37 private:
38  int nMaxPrintout_; // max # of printouts
39  int nEvt_; // internal counter of events
40 
42 
46 
49 
52 
53  //BasicClusterShape AssociationMap
56 
57  PositionCalc posCalculator_; // position calculation algorithm
58  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
60 
61  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
62 
64 
66  const edm::EventSetup& es,
68  const std::string& clusterCollection,
69  const std::string& clusterShapeAssociation,
70  const IslandClusterAlgo::EcalPart& ecalPart);
71 
72  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
73 };
74 
75 #endif
IslandClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition: IslandClusterProducer.h:47
IslandClusterProducer::verbosity
IslandClusterAlgo::VerbosityLevel verbosity
Definition: IslandClusterProducer.h:41
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:57
IslandClusterProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: IslandClusterProducer.cc:114
IslandClusterAlgo.h
EDProducer.h
edm::SortedCollection< EcalRecHit >
IslandClusterProducer::shapeAlgo_
ClusterShapeAlgo shapeAlgo_
Definition: IslandClusterProducer.h:58
IslandClusterProducer::island_p
IslandClusterAlgo * island_p
Definition: IslandClusterProducer.h:59
IslandClusterProducer::caloGeometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: IslandClusterProducer.h:45
IslandClusterProducer::nEvt_
int nEvt_
Definition: IslandClusterProducer.h:39
ClusterShapeAlgo.h
IslandClusterProducer::clustershapecollectionEE_
std::string clustershapecollectionEE_
Definition: IslandClusterProducer.h:51
ESGetToken.h
EcalRecHitCollections.h
BasicClusterFwd.h
IslandClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: IslandClusterProducer.cc:144
IslandClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition: IslandClusterProducer.h:38
edm::PtrVector< CaloCluster >
IslandClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition: IslandClusterProducer.h:48
CaloClusterFwd.h
ClusterShapeAlgo
Definition: ClusterShapeAlgo.h:35
IslandClusterProducer::counterExceeded
bool counterExceeded() const
Definition: IslandClusterProducer.h:61
CaloGeometryRecord.h
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:47
IslandClusterProducer::getCollection
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
Definition: IslandClusterProducer.cc:152
Event.h
IslandClusterProducer::IslandClusterProducer
IslandClusterProducer(const edm::ParameterSet &ps)
Definition: IslandClusterProducer.cc:38
IslandClusterProducer::endcapClusterShapeAssociation_
std::string endcapClusterShapeAssociation_
Definition: IslandClusterProducer.h:55
IslandClusterProducer::clustershapecollectionEB_
std::string clustershapecollectionEB_
Definition: IslandClusterProducer.h:50
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:44
edm::EventSetup
Definition: EventSetup.h:57
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
CaloSubdetectorTopology.h
IslandClusterProducer::barrelRecHits_
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
Definition: IslandClusterProducer.h:43
Frameworkfwd.h
CaloGeometry.h
EventSetup.h
IslandClusterProducer
Definition: IslandClusterProducer.h:29
IslandClusterProducer::barrelClusterShapeAssociation_
std::string barrelClusterShapeAssociation_
Definition: IslandClusterProducer.h:54
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:159
IslandClusterProducer::~IslandClusterProducer
~IslandClusterProducer() override
Definition: IslandClusterProducer.cc:112
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318