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 
13 
18 
21 
22 //
23 
25 public:
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 
42 
45 
46  PositionCalc posCalculator_; // position calculation algorithm
48 
49  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
50 
52 
54  const edm::EventSetup& es,
56  const std::string& clusterCollection,
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