24 HBRecHitEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"HBRecHitEnergyThresholdParam");
25 HERecHitEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"HERecHitEnergyThresholdParam");
26 SumHcalEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"SumHcalEnergyThresholdParam");
27 NHitsHcalThreshold = iConfig.
getParameter<
int>(
"NHitsHcalThresholdParam");
29 ebrechit_token_ = consumes<EBRecHitCollection>(IT_EBRecHit);
30 eerechit_token_ = consumes<EERecHitCollection>(IT_EERecHit);
31 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
32 hfrechit_token_ = consumes<HFRecHitCollection>(IT_HFRecHit);
33 calotower_token_ = consumes<CaloTowerCollection>(IT_CaloTowers);
35 produces<HcalHaloData>();
45 iEvent.getByToken(calotower_token_, TheCaloTowers);
49 iEvent.getByToken(ebrechit_token_, TheEBRecHits);
53 iEvent.getByToken(eerechit_token_, TheEERecHits);
58 iEvent.getByToken(hbherechit_token_, TheHBHERecHits);
63 iEvent.getByToken(hfrechit_token_, TheHFRecHits);
70 iEvent.put(std::make_unique<HcalHaloData>(
71 HcalAlgo.
Calculate(*TheCaloGeometry, TheHBHERecHits, TheCaloTowers, TheEBRecHits, TheEERecHits, iSetup)));
75 HcalHaloDataProducer::~HcalHaloDataProducer() {}