48 : simParameterMap_(conf),
53 hbheAnalyzer_(
"HBHE", 1., &simParameterMap_, &hbheFilter_),
54 hoAnalyzer_(
"HO", 1., &simParameterMap_, &hoFilter_),
55 hfAnalyzer_(
"HF", 1., &simParameterMap_, &hfFilter_),
56 zdcAnalyzer_(
"ZDC", 1., &simParameterMap_, &zdcFilter_),
57 hbheRecHitCollectionTag_(conf.getParameter<
edm::
InputTag>(
"hbheRecHitCollectionTag")),
58 hoRecHitCollectionTag_(conf.getParameter<
edm::
InputTag>(
"hoRecHitCollectionTag")),
59 hfRecHitCollectionTag_(conf.getParameter<
edm::
InputTag>(
"hfRecHitCollectionTag")),
60 hbheRecHitCollectionToken_(consumes(hbheRecHitCollectionTag_)),
61 hoRecHitCollectionToken_(consumes(hoRecHitCollectionTag_)),
62 hfRecHitCollectionToken_(consumes(hfRecHitCollectionTag_)),
63 cfToken_(consumes(
edm::
InputTag(
"mix",
"HcalHits"))),
64 zdccfToken_(consumes(
edm::
InputTag(
"mix",
"ZDCHits"))) {}
67 template <
class Collection>
70 for (
unsigned i = 0;
i <
recHits->size(); ++
i) {
void analyze(edm::Event const &e, edm::EventSetup const &c) override
CaloHitAnalyzer hfAnalyzer_
T const * product() const
HcalSimParameterMap simParameterMap_
HcalHitAnalyzer(edm::ParameterSet const &conf)
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > zdccfToken_
const edm::EDGetTokenT< CrossingFrame< PCaloHit > > cfToken_
const edm::EDGetTokenT< HORecHitCollection > hoRecHitCollectionToken_
void analyze(edm::Event const &e, CaloHitAnalyzer &analyzer, edm::EDGetTokenT< Collection > const &token)
const edm::InputTag hfRecHitCollectionTag_
void fillHits(MixCollection< PCaloHit > &hits)
should be called each event
CaloHitAnalyzer hbheAnalyzer_
#define DEFINE_FWK_MODULE(type)
CaloHitAnalyzer hoAnalyzer_
const edm::EDGetTokenT< HFRecHitCollection > hfRecHitCollectionToken_
const edm::InputTag hoRecHitCollectionTag_
HBHEHitFilter hbheFilter_
const edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitCollectionToken_
CaloHitAnalyzer zdcAnalyzer_
const edm::InputTag hbheRecHitCollectionTag_