29 RoundnessCut = iConfig.
getParameter<
double>(
"RoundnessCutParam");
30 AngleCut = iConfig.
getParameter<
double>(
"AngleCutParam");
32 EBRecHitEnergyThreshold = (float) iConfig.
getParameter<
double> (
"EBRecHitEnergyThresholdParam");
33 EERecHitEnergyThreshold = (float) iConfig.
getParameter<
double> (
"EERecHitEnergyThresholdParam");
34 ESRecHitEnergyThreshold = (float) iConfig.
getParameter<
double> (
"ESRecHitEnergyThresholdParam");
35 SumEcalEnergyThreshold = (float)iConfig.
getParameter<
double> (
"SumEcalEnergyThresholdParam");
36 NHitsEcalThreshold = iConfig.
getParameter<
int> (
"NHitsEcalThresholdParam");
38 RoundnessCut = iConfig.
getParameter<
double>(
"RoundnessCutParam");
39 AngleCut = iConfig.
getParameter<
double>(
"AngleCutParam");
41 ebrechit_token_ = consumes<EBRecHitCollection>(IT_EBRecHit);
42 eerechit_token_ = consumes<EERecHitCollection>(IT_EERecHit);
43 esrechit_token_ = consumes<ESRecHitCollection>(IT_ESRecHit);
44 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
45 supercluster_token_ = consumes<reco::SuperClusterCollection>(IT_SuperCluster);
46 photon_token_ = consumes<reco::PhotonCollection>(IT_Photon);
48 produces<EcalHaloData>();
60 iEvent.
getByToken(ebrechit_token_, TheEBRecHits);
65 iEvent.
getByToken(eerechit_token_, TheEERecHits);
70 iEvent.
getByToken(esrechit_token_, TheESRecHits);
74 iEvent.
getByToken(hbherechit_token_, TheHBHERecHits);
79 iEvent.
getByToken(supercluster_token_, TheSuperClusters);
94 std::auto_ptr<EcalHaloData> EcalData(
new EcalHaloData( EcalAlgo.
Calculate(*TheCaloGeometry, ThePhotons, TheSuperClusters, TheEBRecHits, TheEERecHits, TheESRecHits, TheHBHERecHits,iSetup)));
95 iEvent.
put( EcalData ) ;
100 EcalHaloDataProducer::~EcalHaloDataProducer(){}
T getParameter(std::string const &) const
void SetAngleCut(float a=4.)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void SetRecHitEnergyThresholds(float EB, float EE, float ES)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void SetPhiWedgeThresholds(float SumE, int nhits)
reco::EcalHaloData Calculate(const CaloGeometry &TheCaloGeometry, edm::Handle< reco::PhotonCollection > &ThePhotons, edm::Handle< reco::SuperClusterCollection > &TheSuperClusters, edm::Handle< EBRecHitCollection > &TheEBRecHits, edm::Handle< EERecHitCollection > &TheEERecHits, edm::Handle< ESRecHitCollection > &TheESRecHits, edm::Handle< HBHERecHitCollection > &TheHBHERecHits, const edm::EventSetup &TheSetup)
void SetRoundnessCut(float r=100.)