28 EcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMinMatchingRadiusParam");
29 EcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMaxMatchingRadiusParam");
30 HcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMinMatchingRadiusParam");
31 HcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMaxMatchingRadiusParam");
32 CaloTowerEtThreshold = (float)iConfig.
getParameter<
double>(
"CaloTowerEtThresholdParam");
34 calotower_token_ = consumes<edm::View<Candidate> >(IT_CaloTower);
35 calomet_token_ = consumes<reco::CaloMETCollection>(IT_met);
36 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
37 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
38 cschalo_token_ = consumes<CSCHaloData>(IT_CSCHaloData);
39 ecalhalo_token_ = consumes<EcalHaloData>(IT_EcalHaloData);
40 hcalhalo_token_ = consumes<HcalHaloData>(IT_HcalHaloData);
42 produces<GlobalHaloData>();
62 iEvent.
getByToken(calotower_token_, TheCaloTowers);
72 iEvent.
getByToken(cscsegment_token_, TheCSCSegments);
77 iEvent.
getByToken(cscrechit_token_, TheCSCRecHits);
82 iEvent.
getByToken(cschalo_token_, TheCSCHaloData);
87 iEvent.
getByToken(ecalhalo_token_, TheEcalHaloData);
92 iEvent.
getByToken(hcalhalo_token_, TheHcalHaloData);
103 std::auto_ptr<GlobalHaloData> GlobalData(
new GlobalHaloData(GlobalAlgo.
Calculate(*TheCaloGeometry, *TheCSCGeometry, *(&TheCaloMET.
product()->front()), TheCaloTowers, TheCSCSegments, TheCSCRecHits, *TheCSCHaloData.
product(), *TheEcalHaloData.
product(), *TheHcalHaloData.
product() )) );
104 iEvent.
put(GlobalData);
108 std::auto_ptr<GlobalHaloData> GlobalData(
new GlobalHaloData() ) ;
109 iEvent.
put(GlobalData);
115 GlobalHaloDataProducer::~GlobalHaloDataProducer(){}
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) 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.
void SetEcalMatchingRadius(float min, float max)
T const * product() const
void SetCaloTowerEtThreshold(float EtMin)