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() {}
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void SetRecHitEnergyThresholds(float HB, float HE)
void SetPhiWedgeThresholds(float SumE, int nhits)
reco::HcalHaloData Calculate(const CaloGeometry &TheCaloGeometry, edm::Handle< HBHERecHitCollection > &TheHBHERecHits, edm::Handle< CaloTowerCollection > &TheCaloTowers, edm::Handle< EBRecHitCollection > &TheEBRecHits, edm::Handle< EERecHitCollection > &TheEERecHits, const edm::EventSetup &TheSetup)