31 EcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMinMatchingRadiusParam");
32 EcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"EcalMaxMatchingRadiusParam");
33 HcalMinMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMinMatchingRadiusParam");
34 HcalMaxMatchingRadius = (float)iConfig.
getParameter<
double>(
"HcalMaxMatchingRadiusParam");
35 CaloTowerEtThreshold = (float)iConfig.
getParameter<
double>(
"CaloTowerEtThresholdParam");
39 GlobalAlgo.SetMaxSegmentTheta( (
float) iConfig.
getParameter<
double>(
"MaxSegmentTheta") );
41 GlobalAlgo.setEtThresholdforCSCCaloMatchingEB((
float) iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_eb") );
42 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingEB((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_eb") );
43 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingEB((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_eb") );
44 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingEB((
float) iConfig.
getParameter<
double>(
"dtcalosegm_thresh_eb") );
45 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingEB((
float) iConfig.
getParameter<
double>(
"dphicalosegm_thresh_eb") );
47 GlobalAlgo.setEtThresholdforCSCCaloMatchingEE((
float) iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_ee") );
48 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingEE((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_ee") );
49 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingEE((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_ee") );
50 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingEE((
float) iConfig.
getParameter<
double>(
"dtcalosegm_thresh_ee") );
51 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingEE((
float) iConfig.
getParameter<
double>(
"dphicalosegm_thresh_ee") );
53 GlobalAlgo.setEtThresholdforCSCCaloMatchingHB((
float) iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_hb") );
54 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingHB((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_hb") );
55 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingHB((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_hb") );
56 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingHB((
float) iConfig.
getParameter<
double>(
"dtcalosegm_thresh_hb") );
57 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingHB((
float) iConfig.
getParameter<
double>(
"dphicalosegm_thresh_hb") );
59 GlobalAlgo.setEtThresholdforCSCCaloMatchingHE((
float) iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_he") );
60 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingHE((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_he") );
61 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingHE((
float) iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_he") );
62 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingHE((
float) iConfig.
getParameter<
double>(
"dtcalosegm_thresh_he") );
63 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingHE((
float) iConfig.
getParameter<
double>(
"dphicalosegm_thresh_he") );
67 calotower_token_ = consumes<edm::View<Candidate> >(IT_CaloTower);
68 calomet_token_ = consumes<reco::CaloMETCollection>(IT_met);
69 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
70 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
71 muon_token_ = consumes<reco::MuonCollection>(IT_Muon);
72 cschalo_token_ = consumes<CSCHaloData>(IT_CSCHaloData);
73 ecalhalo_token_ = consumes<EcalHaloData>(IT_EcalHaloData);
74 hcalhalo_token_ = consumes<HcalHaloData>(IT_HcalHaloData);
76 produces<GlobalHaloData>();
96 iEvent.
getByToken(calotower_token_, TheCaloTowers);
101 iEvent.
getByToken(calomet_token_, TheCaloMET);
106 iEvent.
getByToken(cscsegment_token_, TheCSCSegments);
111 iEvent.
getByToken(cscrechit_token_, TheCSCRecHits);
120 iEvent.
getByToken(cschalo_token_, TheCSCHaloData);
125 iEvent.
getByToken(ecalhalo_token_, TheEcalHaloData);
130 iEvent.
getByToken(hcalhalo_token_, TheHcalHaloData);
133 GlobalAlgo.SetEcalMatchingRadius(EcalMinMatchingRadius,EcalMaxMatchingRadius);
134 GlobalAlgo.SetHcalMatchingRadius(HcalMinMatchingRadius,HcalMaxMatchingRadius);
135 GlobalAlgo.SetCaloTowerEtThreshold(CaloTowerEtThreshold);
141 iEvent.
put(std::make_unique<GlobalHaloData>(
GlobalHaloData(GlobalAlgo.Calculate(*TheCaloGeometry, *TheCSCGeometry, *(&TheCaloMET.
product()->front()), TheCaloTowers, TheCSCSegments, TheCSCRecHits, TheMuons, *TheCSCHaloData.
product(), *TheEcalHaloData.
product(), *TheHcalHaloData.
product() ,ishlt))));
145 iEvent.
put(std::make_unique<GlobalHaloData>());
151 GlobalHaloDataProducer::~GlobalHaloDataProducer(){}
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
T const * product() const