CMS 3D CMS Logo

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 
11 
14 
21 
24 
25 //
26 
28 public:
30 
31  ~Multi5x5ClusterProducer() override;
32 
33  void produce(edm::Event&, const edm::EventSetup&) override;
34 
35 private:
36  int nMaxPrintout_; // max # of printouts
37  int nEvt_; // internal counter of events
38 
39  // cluster which regions
40  bool doBarrel_;
41  bool doEndcap_;
42 
46 
49 
50  PositionCalc posCalculator_; // position calculation algorithm
52 
53  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
54 
56 
58  const edm::EventSetup& es,
60  const std::string& clusterCollection,
62 
63  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
64 };
65 
66 #endif
PositionCalc.h
Multi5x5ClusterProducer::~Multi5x5ClusterProducer
~Multi5x5ClusterProducer() override
Definition: Multi5x5ClusterProducer.cc:78
Multi5x5ClusterProducer::barrelHitToken_
edm::EDGetTokenT< EcalRecHitCollection > barrelHitToken_
Definition: Multi5x5ClusterProducer.h:43
reco::CaloID::Detectors
Detectors
Definition: CaloID.h:19
Multi5x5ClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition: Multi5x5ClusterProducer.h:47
edm::EDGetTokenT
Definition: EDGetToken.h:33
Multi5x5ClusterAlgo.h
EDProducer.h
edm::SortedCollection< EcalRecHit >
Multi5x5ClusterProducer
Definition: Multi5x5ClusterProducer.h:27
ESGetToken.h
EcalRecHitCollections.h
Multi5x5ClusterProducer::endcapHitToken_
edm::EDGetTokenT< EcalRecHitCollection > endcapHitToken_
Definition: Multi5x5ClusterProducer.h:44
BasicClusterFwd.h
Multi5x5ClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: Multi5x5ClusterProducer.cc:80
Multi5x5ClusterProducer::Multi5x5ClusterProducer
Multi5x5ClusterProducer(const edm::ParameterSet &ps)
Definition: Multi5x5ClusterProducer.cc:35
Multi5x5ClusterProducer::nEvt_
int nEvt_
Definition: Multi5x5ClusterProducer.h:37
edm::PtrVector< CaloCluster >
Multi5x5ClusterProducer::island_p
Multi5x5ClusterAlgo * island_p
Definition: Multi5x5ClusterProducer.h:51
CaloClusterFwd.h
Multi5x5ClusterAlgo
Definition: Multi5x5ClusterAlgo.h:27
Multi5x5ClusterProducer::doEndcap_
bool doEndcap_
Definition: Multi5x5ClusterProducer.h:41
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Multi5x5ClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition: Multi5x5ClusterProducer.h:48
Multi5x5ClusterProducer::getCollection
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
Definition: Multi5x5ClusterProducer.cc:91
edm::ParameterSet
Definition: ParameterSet.h:47
Multi5x5ClusterProducer::caloGeometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: Multi5x5ClusterProducer.h:45
Event.h
Multi5x5ClusterProducer::doBarrel_
bool doBarrel_
Definition: Multi5x5ClusterProducer.h:40
PositionCalc
Definition: PositionCalc.h:29
edm::stream::EDProducer
Definition: EDProducer.h:38
Multi5x5ClusterProducer::posCalculator_
PositionCalc posCalculator_
Definition: Multi5x5ClusterProducer.h:50
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
Multi5x5ClusterProducer::counterExceeded
bool counterExceeded() const
Definition: Multi5x5ClusterProducer.h:53
CaloSubdetectorTopology.h
Frameworkfwd.h
Multi5x5ClusterProducer::outputValidationInfo
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
CaloGeometry.h
EventSetup.h
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
Multi5x5ClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition: Multi5x5ClusterProducer.h:36
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:98
ParameterSet.h
edm::Event
Definition: Event.h:73
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316