43 : simParameterMap_(conf),
48 hbheAnalyzer_(
"HBHE", 1., &simParameterMap_, &hbheFilter_),
49 hoAnalyzer_(
"HO", 1., &simParameterMap_, &hoFilter_),
50 hfAnalyzer_(
"HF", 1., &simParameterMap_, &hfFilter_),
51 zdcAnalyzer_(
"ZDC", 1., &simParameterMap_, &zdcFilter_),
52 hbheRecHitCollectionTag_(conf.getParameter<edm::
InputTag>(
"hbheRecHitCollectionTag")),
53 hoRecHitCollectionTag_(conf.getParameter<edm::
InputTag>(
"hoRecHitCollectionTag")),
54 hfRecHitCollectionTag_(conf.getParameter<edm::
InputTag>(
"hfRecHitCollectionTag")) {}
56 namespace HcalHitAnalyzerImpl {
57 template <
class Collection>
61 for (
unsigned i = 0;
i < recHits->size(); ++
i) {
void analyze(edm::Event const &e, CaloHitAnalyzer &analyzer, edm::InputTag &tag)
const edm::EventSetup & c
void analyze(int detId, double recEnergy)
to be called for each RecHit
void analyze(edm::Event const &e, edm::EventSetup const &c) override
CaloHitAnalyzer hfAnalyzer_
#define DEFINE_FWK_MODULE(type)
HcalSimParameterMap simParameterMap_
HcalHitAnalyzer(edm::ParameterSet const &conf)
edm::InputTag hbheRecHitCollectionTag_
edm::InputTag hoRecHitCollectionTag_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
CaloHitAnalyzer hbheAnalyzer_
edm::InputTag hfRecHitCollectionTag_
CaloHitAnalyzer hoAnalyzer_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
HBHEHitFilter hbheFilter_
CaloHitAnalyzer zdcAnalyzer_