74 setWhatProduced(
this);
106 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
107 std::shared_ptr<LUT> egTrimmingLUT(
new LUT(egTrimmingLUTStream) );
127 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
128 std::shared_ptr<LUT> egMaxHOverELUT(
new LUT(egMaxHOverELUTStream) );
132 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
133 std::shared_ptr<LUT> egCompressShapesLUT(
new LUT(egCompressShapesLUTStream) );
139 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
140 std::shared_ptr<LUT> egShapeIdLUT(
new LUT(egShapeIdLUTStream) );
147 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
148 std::shared_ptr<LUT> egIsoLUT(
new LUT(egIsoLUTStream) );
151 std::ifstream egIsoLUTStream2(egIsoLUTFile2.
fullPath());
152 auto egIsoLUT2 = std::make_shared<LUT>(egIsoLUTStream2);
177 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
178 std::shared_ptr<LUT> egCalibrationLUT(
new LUT(egCalibrationLUTStream) );
196 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
197 std::shared_ptr<LUT> tauIsoLUT(
new LUT(tauIsoLUTStream) );
201 std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.
fullPath());
202 std::shared_ptr<LUT> tauIsoLUT2(
new LUT(tauIsoLUTStream2) );
206 std::ifstream tauTrimmingShapeVetoLUTStream(tauTrimmingShapeVetoLUTFile.
fullPath());
207 std::shared_ptr<LUT> tauTrimmingShapeVetoLUT(
new LUT(tauTrimmingShapeVetoLUTStream) );
211 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
212 std::shared_ptr<LUT> tauCalibrationLUT(
new LUT(tauCalibrationLUTStream) );
216 std::ifstream tauCompressLUTStream(tauCompressLUTFile.
fullPath());
217 std::shared_ptr<LUT> tauCompressLUT(
new LUT(tauCompressLUTStream) );
221 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
222 std::shared_ptr<LUT> tauEtToHFRingEtLUT(
new LUT(tauEtToHFRingEtLUTStream) );
241 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
242 std::shared_ptr<LUT> jetCalibrationLUT(
new LUT(jetCalibrationLUTStream) );
245 std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.
fullPath());
246 std::shared_ptr<LUT> jetCompressEtaLUT(
new LUT(jetCompressEtaLUTStream) );
249 std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.
fullPath());
250 std::shared_ptr<LUT> jetCompressPtLUT(
new LUT(jetCompressPtLUTStream) );
256 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int> >(
"etSumEtaMin");
257 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int> >(
"etSumEtaMax");
258 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double> >(
"etSumEtThreshold");
271 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
272 for (
unsigned i=0;
i<etSumEtaMin.size(); ++
i) {
279 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
283 std::ifstream etSumMetPUSLUTStream(etSumMetPUSLUTFile.
fullPath());
284 std::shared_ptr<LUT> etSumMetPUSLUT(
new LUT(etSumMetPUSLUTStream) );
288 std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.
fullPath());
289 std::shared_ptr<LUT> etSumEttPUSLUT(
new LUT(etSumEttPUSLUTStream) );
293 std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.
fullPath());
294 std::shared_ptr<LUT> etSumEcalSumPUSLUT(
new LUT(etSumEcalSumPUSLUTStream) );
299 std::ifstream metCalibrationLUTStream(metCalibrationLUTFile.
fullPath());
300 std::shared_ptr<LUT> metCalibrationLUT(
new LUT(metCalibrationLUTStream) );
304 std::ifstream metHFCalibrationLUTStream(metHFCalibrationLUTFile.
fullPath());
305 std::shared_ptr<LUT> metHFCalibrationLUT(
new LUT(metHFCalibrationLUTStream) );
309 std::ifstream etSumEttCalibrationLUTStream(etSumEttCalibrationLUTFile.
fullPath());
310 std::shared_ptr<LUT> etSumEttCalibrationLUT(
new LUT(etSumEttCalibrationLUTStream) );
314 std::ifstream etSumEcalSumCalibrationLUTStream(etSumEcalSumCalibrationLUTFile.
fullPath());
315 std::shared_ptr<LUT> etSumEcalSumCalibrationLUT(
new LUT(etSumEcalSumCalibrationLUTStream) );
319 std::ifstream metPhiCalibrationLUTStream(metPhiCalibrationLUTFile.
fullPath());
320 std::shared_ptr<LUT> metPhiCalibrationLUT(
new LUT(metPhiCalibrationLUTStream) );
324 std::ifstream metHFPhiCalibrationLUTStream(metHFPhiCalibrationLUTFile.
fullPath());
325 std::shared_ptr<LUT> metHFPhiCalibrationLUT(
new LUT(metHFPhiCalibrationLUTStream) );
330 std::vector<double> etSumCentLower = conf.
getParameter<std::vector<double>>(
"etSumCentralityLower");
331 std::vector<double> etSumCentUpper = conf.
getParameter<std::vector<double>>(
"etSumCentralityUpper");
332 if (etSumCentLower.size() == etSumCentUpper.size()){
333 for (
unsigned i=0;
i<etSumCentLower.size(); ++
i) {
339 edm::LogError(
"l1t|calo") <<
"Inconsistent number of Centrality boundaries" << std::endl;
344 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
345 std::shared_ptr<LUT> centralityLUT(
new LUT(centralityLUTStream) );
348 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int> >(
"minimumBiasThresholds");
349 if(minbiasThresholds.size() == 4) {
352 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
357 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
358 std::shared_ptr<LUT> q2LUT(
new LUT(q2LUTStream) );
374 if (conf.
existsAs<std::vector<unsigned>>(
"layer1SecondStageLUT")) {
399 return std::make_unique<CaloParams>(m_params);
void setEtSumEtaMax(unsigned isum, int eta)
void setEtSumEcalSumCalibrationLUT(const l1t::LUT &lut)
void setEtSumEcalSumPUSType(std::string type)
T getParameter(std::string const &) const
void setMetPhiCalibrationLUT(const l1t::LUT &lut)
void setTauMaxJetIsolationA(double cutValue)
void setEgCalibrationVersion(unsigned version)
void setCentralityLUT(const l1t::LUT &lut)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
void setLayer1HFScaleFactors(std::vector< double > params)
void setIsoTauEtaMax(int value)
void setTauMinPtJetIsolationB(double limit)
void setRegionPUSType(std::string type)
void setEtSumBypassMetPUS(unsigned flag)
void setEgNeighbourThreshold(double thresh)
void setEgMinPtHOverEIsolation(int cutValue)
void setEgLsb(double lsb)
void setJetCalibrationParams(std::vector< double > params)
void setTauEtToHFRingEtLUT(const l1t::LUT &lut)
void setTauCalibrationLUT(const l1t::LUT &lut)
void setTauLsb(double lsb)
void setTauIsolationLUT(const l1t::LUT &lut)
void setJetCalibrationLUT(const l1t::LUT &lut)
~L1TCaloStage2ParamsESProducer() override
void setEtSumBypassEcalSumPUS(unsigned flag)
void setTauNeighbourThreshold(double thresh)
void setEgMaxPtJetIsolation(int cutValue)
void setEtSumMetPUSLUT(const l1t::LUT &lut)
void setEgHOverEcutEndcap(int cut)
void setEgHcalThreshold(double thresh)
void setTauIsoAreaNrTowersPhi(unsigned iTauIsoAreaNrTowersPhi)
std::unique_ptr< CaloParams > ReturnType
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void setEgBypassExtHOverE(unsigned flag)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
void setLayer1ECalScalePhiBins(std::vector< unsigned > params)
void setCentralityRegionMask(int mask)
L1TCaloStage2ParamsESProducer(const edm::ParameterSet &)
void setJetCompressEtaLUT(const l1t::LUT &lut)
ReturnType produce(const L1TCaloParamsRcd &)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setLayer1HCalScalePhiBins(std::vector< unsigned > params)
void setEgShapeIdLUT(const l1t::LUT &lut)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setJetCompressPtLUT(const l1t::LUT &lut)
void setEgHOverEcutBarrel(int cut)
void setEtSumEcalSumCalibrationType(std::string type)
void setEgBypassECALFG(unsigned flag)
void setEtSumEtaMin(unsigned isum, int eta)
void setEtSumCentLower(unsigned centClass, double loBound)
void setTauMaxPtTauVeto(double limit)
void setRegionLsb(double lsb)
void setJetCalibrationType(std::string type)
void setEtSumMetPUSType(std::string type)
void setJetPUSUsePhiRing(unsigned flag)
void setTowerLsbH(double lsb)
void setLayer1HCalScaleFactors(std::vector< double > params)
void setEgMinPtJetIsolation(int cutValue)
void setEgBypassEGVetos(unsigned flag)
void setEtSumCentUpper(unsigned centClass, double upBound)
void setEgIsolationLUT2(const l1t::LUT &lut)
void setTauCompressLUT(const l1t::LUT &lut)
void setLayer1HCalScaleETBins(std::vector< int > params)
void setTowerNBitsH(int n)
void setPileUpTowerThreshold(int thresh)
void setEtSumEtThreshold(unsigned isum, double thresh)
void setTauPUSType(std::string type)
void setEgPUSType(std::string type)
void setLayer1ECalScaleETBins(std::vector< int > params)
void setTauSeedThreshold(double thresh)
void setTowerEncoding(bool doit)
void setTauMaxJetIsolationB(double limit)
void setEgIsoAreaNrTowersPhi(unsigned iEgIsoAreaNrTowersPhi)
void setEgBypassShape(unsigned flag)
void setTowerNBitsSum(int n)
void setJetNeighbourThreshold(double thresh)
void setEgShapeIdVersion(unsigned version)
void setTauRegionMask(int mask)
void setJetRegionMask(int mask)
void setEgEtaCut(int mask)
void setEgMaxHcalEt(double cut)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setLayer1SecondStageLUT(const std::vector< unsigned > &lut)
void setLayer1HFScalePhiBins(std::vector< unsigned > params)
void setJetLsb(double lsb)
void setTauPUSParams(const std::vector< double > ¶ms)
void setLayer1HFScaleETBins(std::vector< int > params)
void setEtSumEttCalibrationType(std::string type)
void setQ2LUT(const l1t::LUT &lut)
void setEtSumBypassEttPUS(unsigned flag)
void setEgMaxHOverELUT(const l1t::LUT &lut)
void setTowerNBitsE(int n)
void setMinimumBiasThresholds(std::vector< int > thresholds)
void setMetCalibrationType(std::string type)
void setJetSeedThreshold(double thresh)
void setMetHFCalibrationType(std::string type)
void setEgMaxPtHOverE(double thresh)
void setLayer1ECalScaleFactors(std::vector< double > params)
void setEgTrimmingLUT(const l1t::LUT &lut)
void setRegionPUSParams(const std::vector< double > ¶ms)
void setEgIsolationLUT(const l1t::LUT &lut)
void setEgMaxPtHOverEIsolation(int cutValue)
void setTauIsolationLUT2(const l1t::LUT &lut)
void setJetBypassPUS(unsigned flag)
void setTauTrimmingShapeVetoLUT(const l1t::LUT &lut)
void setMetHFPhiCalibrationLUT(const l1t::LUT &lut)
void setEgBypassHoE(unsigned flag)
void setMetHFCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttPUSType(std::string type)
std::string fullPath() const
void setEgSeedThreshold(double thresh)
void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi)
void setMetCalibrationLUT(const l1t::LUT &lut)
void setJetPUSType(std::string type)
void setEgIsoVetoNrTowersPhi(unsigned iEgIsoVetoNrTowersPhi)
void setEtSumLsb(double lsb)
void setEgIsoAreaNrTowersEta(unsigned iEgIsoAreaNrTowersEta)
std::vector< unsigned short int > LUT
void setEgShapeIdType(std::string type)
void setIsoTauEtaMin(int value)
void setTowerLsbSum(double lsb)
void setEgPUSParams(const std::vector< double > ¶ms)
void setTowerLsbE(double lsb)
void setEgCalibrationType(std::string type)
void setEtSumEcalSumPUSLUT(const l1t::LUT &lut)
void setEgCompressShapesLUT(const l1t::LUT &lut)
void setTowerNBitsRatio(int n)
void setEgIsolationType(std::string type)