CMS 3D CMS Logo

CosmicClusterProducer.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterProducers_CosmicClusterProducer_h_
2 #define RecoEcal_EgammaClusterProducers_CosmicClusterProducer_h_
3 
4 #include <memory>
5 #include <ctime>
6 #include <vector> //TEMP JHAUPT 4-27
7 
12 
14 
21 
23 
24 //
25 
27 public:
29 
30  ~CosmicClusterProducer() override;
31 
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 
51 
52  //BasicClusterShape AssociationMap
55 
56  PositionCalc posCalculator_; // position calculation algorithm
57  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
59 
60  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
61 
63  const edm::EventSetup& es,
66  const std::string& clusterCollection,
67  const std::string& clusterShapeAssociation,
68  const CosmicClusterAlgo::EcalPart& ecalPart);
69 
70  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
71 };
72 
73 #endif
CosmicClusterAlgo::VerbosityLevel
VerbosityLevel
Definition: CosmicClusterAlgo.h:30
CosmicClusterProducer::~CosmicClusterProducer
~CosmicClusterProducer() override
Definition: CosmicClusterProducer.cc:108
CosmicClusterProducer::counterExceeded
bool counterExceeded() const
Definition: CosmicClusterProducer.h:60
PositionCalc.h
CosmicClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition: CosmicClusterProducer.h:46
CosmicClusterAlgo.h
CosmicClusterProducer::ebUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUHitsToken_
Definition: CosmicClusterProducer.h:43
edm::EDGetTokenT
Definition: EDGetToken.h:33
CosmicClusterProducer::island_p
CosmicClusterAlgo * island_p
Definition: CosmicClusterProducer.h:58
EDProducer.h
CosmicClusterProducer::CosmicClusterProducer
CosmicClusterProducer(const edm::ParameterSet &ps)
Definition: CosmicClusterProducer.cc:39
CosmicClusterProducer::nEvt_
int nEvt_
Definition: CosmicClusterProducer.h:36
ClusterShapeAlgo.h
EcalRecHitCollections.h
BasicClusterFwd.h
CosmicClusterAlgo::EcalPart
EcalPart
Definition: CosmicClusterAlgo.h:29
CosmicClusterProducer
Definition: CosmicClusterProducer.h:26
edm::PtrVector< CaloCluster >
CaloClusterFwd.h
CosmicClusterProducer::endcapClusterShapeAssociation_
std::string endcapClusterShapeAssociation_
Definition: CosmicClusterProducer.h:54
ClusterShapeAlgo
Definition: ClusterShapeAlgo.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicClusterProducer::shapeAlgo_
ClusterShapeAlgo shapeAlgo_
Definition: CosmicClusterProducer.h:57
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
CosmicClusterProducer::barrelClusterShapeAssociation_
std::string barrelClusterShapeAssociation_
Definition: CosmicClusterProducer.h:53
CosmicClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: CosmicClusterProducer.cc:110
CosmicClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition: CosmicClusterProducer.h:47
CosmicClusterAlgo
Definition: CosmicClusterAlgo.h:27
PositionCalc
Definition: PositionCalc.h:29
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
CosmicClusterProducer::outputValidationInfo
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
CaloSubdetectorTopology.h
Frameworkfwd.h
CosmicClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition: CosmicClusterProducer.h:35
EventSetup.h
CosmicClusterProducer::ebHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
Definition: CosmicClusterProducer.h:40
ParameterSet.h
CosmicClusterProducer::verbosity
CosmicClusterAlgo::VerbosityLevel verbosity
Definition: CosmicClusterProducer.h:38
CosmicClusterProducer::clustershapecollectionEB_
std::string clustershapecollectionEB_
Definition: CosmicClusterProducer.h:49
edm::Event
Definition: Event.h:73
CosmicClusterProducer::clustershapecollectionEE_
std::string clustershapecollectionEE_
Definition: CosmicClusterProducer.h:50
CosmicClusterProducer::eeUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUHitsToken_
Definition: CosmicClusterProducer.h:44
CosmicClusterProducer::eeHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > eeHitsToken_
Definition: CosmicClusterProducer.h:41
CosmicClusterProducer::posCalculator_
PositionCalc posCalculator_
Definition: CosmicClusterProducer.h:56
CosmicClusterProducer::clusterizeECALPart
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &hitsToken, const edm::EDGetTokenT< EcalUncalibratedRecHitCollection > &uhitsToken, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const CosmicClusterAlgo::EcalPart &ecalPart)
Definition: CosmicClusterProducer.cc:128