23 HBRecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HBRecHitEnergyThresholdParam");
24 HERecHitEnergyThreshold = (float)iConfig.
getParameter<
double>(
"HERecHitEnergyThresholdParam");
25 SumHcalEnergyThreshold = (float) iConfig.
getParameter<
double>(
"SumHcalEnergyThresholdParam");
26 NHitsHcalThreshold = iConfig.
getParameter<
int>(
"NHitsHcalThresholdParam");
28 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
29 hfrechit_token_ = consumes<HFRecHitCollection>(IT_HFRecHit);
30 calotower_token_ = consumes<CaloTowerCollection>(IT_CaloTowers);
32 produces<HcalHaloData>();
43 iEvent.
getByToken(calotower_token_, TheCaloTowers);
48 iEvent.
getByToken(hbherechit_token_, TheHBHERecHits);
53 iEvent.
getByToken(hfrechit_token_, TheHFRecHits);
64 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData( HcalAlgo.
Calculate(*TheCaloGeometry, TheHBHERecHits, TheCaloTowers) ) ) ;
65 iEvent.
put ( HcalData ) ;
67 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData( HcalAlgo.
Calculate(*TheCaloGeometry, TheHBHERecHits) ) ) ;
68 iEvent.
put ( HcalData ) ;
73 std::auto_ptr<HcalHaloData> HcalData(
new HcalHaloData() ) ;
74 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.
reco::HcalHaloData Calculate(const CaloGeometry &TheCaloGeometry, edm::Handle< HBHERecHitCollection > &TheHBHERecHits, edm::Handle< CaloTowerCollection > &TheCaloTowers)
void SetPhiWedgeThresholds(float SumE, int nhits)