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 supercluster_token_ = consumes<reco::SuperClusterCollection>(IT_SuperCluster);
44 photon_token_ = consumes<reco::PhotonCollection>(IT_Photon);
46 produces<EcalHaloData>();
58 iEvent.
getByToken(ebrechit_token_, TheEBRecHits);
63 iEvent.
getByToken(eerechit_token_, TheEERecHits);
68 iEvent.
getByToken(esrechit_token_, TheESRecHits);
73 iEvent.
getByToken(supercluster_token_, TheSuperClusters);
89 std::auto_ptr<EcalHaloData> EcalData(
new EcalHaloData( EcalAlgo.
Calculate(*TheCaloGeometry, ThePhotons, TheSuperClusters, TheEBRecHits, TheEERecHits, TheESRecHits)));
90 iEvent.
put( EcalData ) ;
94 std::auto_ptr<EcalHaloData> EcalData(
new EcalHaloData() ) ;
100 EcalHaloDataProducer::~EcalHaloDataProducer(){}
T getParameter(std::string const &) const
void SetAngleCut(float a=4.)
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)
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)
void SetRoundnessCut(float r=100.)