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 
15 
24 
26 
27 //
28 
30 public:
32 
33  ~CosmicClusterProducer() override;
34 
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 
45 
49 
52 
55 
56  //BasicClusterShape AssociationMap
59 
60  PositionCalc posCalculator_; // position calculation algorithm
61  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
63 
64  bool counterExceeded() const { return ((nEvt_ > nMaxPrintout_) || (nMaxPrintout_ < 0)); }
65 
67  const edm::EventSetup& es,
70  const std::string& clusterCollection,
71  const std::string& clusterShapeAssociation,
72  const CosmicClusterAlgo::EcalPart& ecalPart);
73 
74  void outputValidationInfo(reco::CaloClusterPtrVector& clusterPtrVector);
75 };
76 
77 #endif
CosmicClusterAlgo::VerbosityLevel
VerbosityLevel
Definition: CosmicClusterAlgo.h:30
CosmicClusterProducer::~CosmicClusterProducer
~CosmicClusterProducer() override
Definition: CosmicClusterProducer.cc:108
CosmicClusterProducer::counterExceeded
bool counterExceeded() const
Definition: CosmicClusterProducer.h:64
PositionCalc.h
CosmicClusterProducer::barrelClusterCollection_
std::string barrelClusterCollection_
Definition: CosmicClusterProducer.h:50
CosmicClusterAlgo.h
CosmicClusterProducer::ebUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUHitsToken_
Definition: CosmicClusterProducer.h:46
edm::EDGetTokenT
Definition: EDGetToken.h:33
CosmicClusterProducer::island_p
CosmicClusterAlgo * island_p
Definition: CosmicClusterProducer.h:62
EDProducer.h
CosmicClusterProducer::CosmicClusterProducer
CosmicClusterProducer(const edm::ParameterSet &ps)
Definition: CosmicClusterProducer.cc:37
CosmicClusterProducer::nEvt_
int nEvt_
Definition: CosmicClusterProducer.h:39
ClusterShapeAlgo.h
ESGetToken.h
EcalRecHitCollections.h
BasicClusterFwd.h
CosmicClusterAlgo::EcalPart
EcalPart
Definition: CosmicClusterAlgo.h:29
CosmicClusterProducer
Definition: CosmicClusterProducer.h:29
edm::PtrVector< CaloCluster >
CosmicClusterProducer::caloGeometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: CosmicClusterProducer.h:48
CaloClusterFwd.h
CosmicClusterProducer::endcapClusterShapeAssociation_
std::string endcapClusterShapeAssociation_
Definition: CosmicClusterProducer.h:58
ClusterShapeAlgo
Definition: ClusterShapeAlgo.h:35
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicClusterProducer::shapeAlgo_
ClusterShapeAlgo shapeAlgo_
Definition: CosmicClusterProducer.h:61
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
CosmicClusterProducer::barrelClusterShapeAssociation_
std::string barrelClusterShapeAssociation_
Definition: CosmicClusterProducer.h:57
CosmicClusterProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: CosmicClusterProducer.cc:110
CosmicClusterProducer::endcapClusterCollection_
std::string endcapClusterCollection_
Definition: CosmicClusterProducer.h:51
CosmicClusterAlgo
Definition: CosmicClusterAlgo.h:27
PositionCalc
Definition: PositionCalc.h:29
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
CosmicClusterProducer::outputValidationInfo
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
CaloSubdetectorTopology.h
Frameworkfwd.h
CaloGeometry.h
CosmicClusterProducer::nMaxPrintout_
int nMaxPrintout_
Definition: CosmicClusterProducer.h:38
EventSetup.h
CosmicClusterProducer::ebHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
Definition: CosmicClusterProducer.h:43
ParameterSet.h
CosmicClusterProducer::verbosity
CosmicClusterAlgo::VerbosityLevel verbosity
Definition: CosmicClusterProducer.h:41
CosmicClusterProducer::clustershapecollectionEB_
std::string clustershapecollectionEB_
Definition: CosmicClusterProducer.h:53
edm::Event
Definition: Event.h:73
CosmicClusterProducer::clustershapecollectionEE_
std::string clustershapecollectionEE_
Definition: CosmicClusterProducer.h:54
CosmicClusterProducer::eeUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUHitsToken_
Definition: CosmicClusterProducer.h:47
CosmicClusterProducer::eeHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > eeHitsToken_
Definition: CosmicClusterProducer.h:44
CosmicClusterProducer::posCalculator_
PositionCalc posCalculator_
Definition: CosmicClusterProducer.h:60
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