29 EcalMinMatchingRadius = (
float)iConfig.
getParameter<
double>(
"EcalMinMatchingRadiusParam");
30 EcalMaxMatchingRadius = (
float)iConfig.
getParameter<
double>(
"EcalMaxMatchingRadiusParam");
31 HcalMinMatchingRadius = (
float)iConfig.
getParameter<
double>(
"HcalMinMatchingRadiusParam");
32 HcalMaxMatchingRadius = (
float)iConfig.
getParameter<
double>(
"HcalMaxMatchingRadiusParam");
33 CaloTowerEtThreshold = (
float)iConfig.
getParameter<
double>(
"CaloTowerEtThresholdParam");
37 GlobalAlgo.SetMaxSegmentTheta((
float)iConfig.
getParameter<
double>(
"MaxSegmentTheta"));
39 GlobalAlgo.setEtThresholdforCSCCaloMatchingEB((
float)iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_eb"));
40 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingEB(
41 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_eb"));
42 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingEB(
43 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_eb"));
44 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingEB((
float)iConfig.
getParameter<
double>(
"dtcalosegm_thresh_eb"));
45 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingEB(
46 (
float)iConfig.
getParameter<
double>(
"dphicalosegm_thresh_eb"));
48 GlobalAlgo.setEtThresholdforCSCCaloMatchingEE((
float)iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_ee"));
49 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingEE(
50 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_ee"));
51 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingEE(
52 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_ee"));
53 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingEE((
float)iConfig.
getParameter<
double>(
"dtcalosegm_thresh_ee"));
54 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingEE(
55 (
float)iConfig.
getParameter<
double>(
"dphicalosegm_thresh_ee"));
57 GlobalAlgo.setEtThresholdforCSCCaloMatchingHB((
float)iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_hb"));
58 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingHB(
59 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_hb"));
60 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingHB(
61 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_hb"));
62 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingHB((
float)iConfig.
getParameter<
double>(
"dtcalosegm_thresh_hb"));
63 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingHB(
64 (
float)iConfig.
getParameter<
double>(
"dphicalosegm_thresh_hb"));
66 GlobalAlgo.setEtThresholdforCSCCaloMatchingHE((
float)iConfig.
getParameter<
double>(
"rh_et_threshforcscmatching_he"));
67 GlobalAlgo.setRcaloMinRsegmLowThresholdforCSCCaloMatchingHE(
68 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_lowthresh_he"));
69 GlobalAlgo.setRcaloMinRsegmHighThresholdforCSCCaloMatchingHE(
70 (
float)iConfig.
getParameter<
double>(
"rcalominrsegm_highthresh_he"));
71 GlobalAlgo.setDtcalosegmThresholdforCSCCaloMatchingHE((
float)iConfig.
getParameter<
double>(
"dtcalosegm_thresh_he"));
72 GlobalAlgo.setDPhicalosegmThresholdforCSCCaloMatchingHE(
73 (
float)iConfig.
getParameter<
double>(
"dphicalosegm_thresh_he"));
75 calotower_token_ = consumes<edm::View<Candidate> >(IT_CaloTower);
76 calomet_token_ = consumes<reco::CaloMETCollection>(IT_met);
77 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
78 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
79 muon_token_ = consumes<reco::MuonCollection>(IT_Muon);
80 cschalo_token_ = consumes<CSCHaloData>(IT_CSCHaloData);
81 ecalhalo_token_ = consumes<EcalHaloData>(IT_EcalHaloData);
82 hcalhalo_token_ = consumes<HcalHaloData>(IT_HcalHaloData);
83 cscgeometry_token_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
84 globaltrackinggeometry_token_ = esConsumes<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>();
85 calogeometry_token_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
87 produces<GlobalHaloData>();
103 iEvent.getByToken(calotower_token_, TheCaloTowers);
108 iEvent.getByToken(calomet_token_, TheCaloMET);
113 iEvent.getByToken(cscsegment_token_, TheCSCSegments);
118 iEvent.getByToken(cscrechit_token_, TheCSCRecHits);
127 iEvent.getByToken(cschalo_token_, TheCSCHaloData);
132 iEvent.getByToken(ecalhalo_token_, TheEcalHaloData);
137 iEvent.getByToken(hcalhalo_token_, TheHcalHaloData);
140 GlobalAlgo.SetEcalMatchingRadius(EcalMinMatchingRadius, EcalMaxMatchingRadius);
141 GlobalAlgo.SetHcalMatchingRadius(HcalMinMatchingRadius, HcalMaxMatchingRadius);
142 GlobalAlgo.SetCaloTowerEtThreshold(CaloTowerEtThreshold);
147 iEvent.put(std::make_unique<GlobalHaloData>(
GlobalHaloData(GlobalAlgo.Calculate(*TheCaloGeometry,
149 *(&TheCaloMET.
product()->front()),
159 iEvent.put(std::make_unique<GlobalHaloData>());
165 GlobalHaloDataProducer::~GlobalHaloDataProducer() {}
T getParameter(std::string const &) const
T const * product() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const