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 
11 
13 
20 
23 
24 //
25 
27 public:
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 
39 
42 
45 
48 
49  //BasicClusterShape AssociationMap
52 
53  PositionCalc posCalculator_; // position calculation algorithm
54  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
56 
57  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
58 
60 
62  const edm::EventSetup& es,
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