22 HBRecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HBRecHitEnergyThresholdParam");
23 HERecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HERecHitEnergyThresholdParam");
24 SumHcalEnergyThreshold = (float) iConfig.
getParameter<
double>(
"SumHcalEnergyThresholdParam");
25 NHitsHcalThreshold = iConfig.
getParameter<
int>(
"NHitsHcalThresholdParam");
27 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
28 hfrechit_token_ = consumes<HFRecHitCollection>(IT_HFRecHit);
30 produces<HcalHaloData>();
42 iEvent.
getByToken(hbherechit_token_, TheHBHERecHits);
47 iEvent.
getByToken(hfrechit_token_, TheHFRecHits);
57 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData( HcalAlgo.
Calculate(*TheCaloGeometry, TheHBHERecHits) ) ) ;
58 iEvent.
put ( HcalData ) ;
62 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData() ) ;
63 iEvent.
put( HcalData ) ;
68 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.
reco::HcalHaloData Calculate(const CaloGeometry &TheCaloGeometry, edm::Handle< HBHERecHitCollection > &TheHBHERecHits)
void SetPhiWedgeThresholds(float SumE, int nhits)