25 HBRecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HBRecHitEnergyThresholdParam");
26 HERecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HERecHitEnergyThresholdParam");
27 SumHcalEnergyThreshold = (float) iConfig.
getParameter<
double>(
"SumHcalEnergyThresholdParam");
28 NHitsHcalThreshold = iConfig.
getParameter<
int>(
"NHitsHcalThresholdParam");
30 ebrechit_token_ = consumes<EBRecHitCollection>(IT_EBRecHit);
31 eerechit_token_ = consumes<EERecHitCollection>(IT_EERecHit);
32 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
33 hfrechit_token_ = consumes<HFRecHitCollection>(IT_HFRecHit);
34 calotower_token_ = consumes<CaloTowerCollection>(IT_CaloTowers);
36 produces<HcalHaloData>();
47 iEvent.
getByToken(calotower_token_, TheCaloTowers);
51 iEvent.
getByToken(ebrechit_token_, TheEBRecHits);
55 iEvent.
getByToken(eerechit_token_, TheEERecHits);
60 iEvent.
getByToken(hbherechit_token_, TheHBHERecHits);
65 iEvent.
getByToken(hfrechit_token_, TheHFRecHits);
74 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData( HcalAlgo.
Calculate(*TheCaloGeometry, TheHBHERecHits, TheCaloTowers, TheEBRecHits, TheEERecHits,iSetup) ) ) ;
75 iEvent.
put ( HcalData ) ;
79 HcalHaloDataProducer::~HcalHaloDataProducer(){}
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void SetRecHitEnergyThresholds(float HB, float HE)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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)