27 EcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMinMatchingRadiusParam");
28 EcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMaxMatchingRadiusParam");
29 HcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMinMatchingRadiusParam");
30 HcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMaxMatchingRadiusParam");
31 CaloTowerEtThreshold = (float)iConfig.
getParameter<
double>(
"CaloTowerEtThresholdParam");
33 produces<GlobalHaloData>();
60 iEvent.
getByLabel(IT_CSCSegment, TheCSCSegments);
64 iEvent.
getByLabel(IT_CSCRecHit, TheCSCRecHits );
68 iEvent.
getByLabel(IT_CSCHaloData, TheCSCHaloData );
72 iEvent.
getByLabel(IT_EcalHaloData, TheEcalHaloData );
76 iEvent.
getByLabel(IT_HcalHaloData, TheHcalHaloData );
87 std::auto_ptr<GlobalHaloData> GlobalData(
new GlobalHaloData(GlobalAlgo.
Calculate(*TheCaloGeometry, *TheCSCGeometry, *(&TheCaloMET.
product()->front()), TheCaloTowers, TheCSCSegments, TheCSCRecHits, *TheCSCHaloData.
product(), *TheEcalHaloData.
product(), *TheHcalHaloData.
product() )) );
88 iEvent.
put(GlobalData);
93 iEvent.
put(GlobalData);
99 GlobalHaloDataProducer::~GlobalHaloDataProducer(){}
T getParameter(std::string const &) const
reco::GlobalHaloData Calculate(const CaloGeometry &TheCaloGeometry, const CSCGeometry &TheCSCGeometry, const reco::CaloMET &TheCaloMET, edm::Handle< edm::View< reco::Candidate > > &TheCaloTowers, edm::Handle< CSCSegmentCollection > &TheCSCSegments, edm::Handle< CSCRecHit2DCollection > &TheCSCRecHits, const reco::CSCHaloData &TheCSCHaloData, const reco::EcalHaloData &TheEcalHaloData, const reco::HcalHaloData &TheHcalHaloData)
void SetHcalMatchingRadius(float min, float max)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void SetEcalMatchingRadius(float min, float max)
T const * product() const
void SetCaloTowerEtThreshold(float EtMin)