28 RoundnessCut = iConfig.
getParameter<
double>(
"RoundnessCutParam");
29 AngleCut = iConfig.
getParameter<
double>(
"AngleCutParam");
31 EBRecHitEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"EBRecHitEnergyThresholdParam");
32 EERecHitEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"EERecHitEnergyThresholdParam");
33 ESRecHitEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"ESRecHitEnergyThresholdParam");
34 SumEcalEnergyThreshold = (
float)iConfig.
getParameter<
double>(
"SumEcalEnergyThresholdParam");
35 NHitsEcalThreshold = iConfig.
getParameter<
int>(
"NHitsEcalThresholdParam");
37 RoundnessCut = iConfig.
getParameter<
double>(
"RoundnessCutParam");
38 AngleCut = iConfig.
getParameter<
double>(
"AngleCutParam");
40 ebrechit_token_ = consumes<EBRecHitCollection>(IT_EBRecHit);
41 eerechit_token_ = consumes<EERecHitCollection>(IT_EERecHit);
42 esrechit_token_ = consumes<ESRecHitCollection>(IT_ESRecHit);
43 hbherechit_token_ = consumes<HBHERecHitCollection>(IT_HBHERecHit);
44 supercluster_token_ = consumes<reco::SuperClusterCollection>(IT_SuperCluster);
45 photon_token_ = consumes<reco::PhotonCollection>(IT_Photon);
47 produces<EcalHaloData>();
58 iEvent.
getByToken(ebrechit_token_, TheEBRecHits);
63 iEvent.
getByToken(eerechit_token_, TheEERecHits);
68 iEvent.
getByToken(esrechit_token_, TheESRecHits);
72 iEvent.
getByToken(hbherechit_token_, TheHBHERecHits);
77 iEvent.
getByToken(supercluster_token_, TheSuperClusters);
91 iEvent.
put(std::make_unique<EcalHaloData>(EcalAlgo.
Calculate(
92 *TheCaloGeometry, ThePhotons, TheSuperClusters, TheEBRecHits, TheEERecHits, TheESRecHits, TheHBHERecHits, iSetup)));
97 EcalHaloDataProducer::~EcalHaloDataProducer() {}
T getParameter(std::string const &) const
void SetAngleCut(float a=4.)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void SetRecHitEnergyThresholds(float EB, float EE, float ES)
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.)