74 setWhatProduced(
this);
103 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
104 auto egTrimmingLUT = std::make_shared<LUT>(egTrimmingLUTStream);
120 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
121 auto egMaxHOverELUT = std::make_shared<LUT>(egMaxHOverELUTStream);
125 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
126 auto egCompressShapesLUT = std::make_shared<LUT>(egCompressShapesLUTStream);
132 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
133 auto egShapeIdLUT = std::make_shared<LUT>(egShapeIdLUTStream);
140 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
141 auto egIsoLUT = std::make_shared<LUT>(egIsoLUTStream);
144 std::ifstream egIsoLUTStream2(egIsoLUTFile2.
fullPath());
145 auto egIsoLUT2 = std::make_shared<LUT>(egIsoLUTStream2);
170 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
171 auto egCalibrationLUT = std::make_shared<LUT>(egCalibrationLUTStream);
189 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
190 auto tauIsoLUT = std::make_shared<LUT>(tauIsoLUTStream);
194 std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.
fullPath());
195 std::shared_ptr<LUT> tauIsoLUT2(
new LUT(tauIsoLUTStream2) );
199 std::ifstream tauTrimmingShapeVetoLUTStream(tauTrimmingShapeVetoLUTFile.
fullPath());
200 std::shared_ptr<LUT> tauTrimmingShapeVetoLUT(
new LUT(tauTrimmingShapeVetoLUTStream) );
204 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
205 auto tauCalibrationLUT = std::make_shared<LUT>(tauCalibrationLUTStream);
209 std::ifstream tauCompressLUTStream(tauCompressLUTFile.
fullPath());
210 auto tauCompressLUT = std::make_shared<LUT>(tauCompressLUTStream);
214 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
215 auto tauEtToHFRingEtLUT = std::make_shared<LUT>(tauEtToHFRingEtLUTStream);
233 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
234 auto jetCalibrationLUT = std::make_shared<LUT>(jetCalibrationLUTStream);
237 std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.
fullPath());
238 std::shared_ptr<LUT> jetCompressEtaLUT(
new LUT(jetCompressEtaLUTStream) );
241 std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.
fullPath());
242 std::shared_ptr<LUT> jetCompressPtLUT(
new LUT(jetCompressPtLUTStream) );
248 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int> >(
"etSumEtaMin");
249 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int> >(
"etSumEtaMax");
250 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double> >(
"etSumEtThreshold");
262 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
263 for (
unsigned i=0;
i<etSumEtaMin.size(); ++
i) {
270 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
274 std::ifstream etSumMetPUSLUTStream(etSumMetPUSLUTFile.
fullPath());
275 std::shared_ptr<LUT> etSumMetPUSLUT(
new LUT(etSumMetPUSLUTStream) );
279 std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.
fullPath());
280 std::shared_ptr<LUT> etSumEttPUSLUT(
new LUT(etSumEttPUSLUTStream) );
284 std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.
fullPath());
285 std::shared_ptr<LUT> etSumEcalSumPUSLUT(
new LUT(etSumEcalSumPUSLUTStream) );
289 std::ifstream etSumXCalibrationLUTStream(etSumXCalibrationLUTFile.
fullPath());
290 std::shared_ptr<LUT> etSumXCalibrationLUT(
new LUT(etSumXCalibrationLUTStream) );
294 std::ifstream etSumYCalibrationLUTStream(etSumYCalibrationLUTFile.
fullPath());
295 std::shared_ptr<LUT> etSumYCalibrationLUT(
new LUT(etSumYCalibrationLUTStream) );
299 std::ifstream etSumEttCalibrationLUTStream(etSumEttCalibrationLUTFile.
fullPath());
300 std::shared_ptr<LUT> etSumEttCalibrationLUT(
new LUT(etSumEttCalibrationLUTStream) );
304 std::ifstream etSumEcalSumCalibrationLUTStream(etSumEcalSumCalibrationLUTFile.
fullPath());
305 std::shared_ptr<LUT> etSumEcalSumCalibrationLUT(
new LUT(etSumEcalSumCalibrationLUTStream) );
310 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
311 auto centralityLUT = std::make_shared<LUT>(centralityLUTStream);
314 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int> >(
"minimumBiasThresholds");
315 if(minbiasThresholds.size() == 4) {
318 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
323 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
324 auto q2LUT = std::make_shared<LUT>(q2LUTStream);
340 if (conf.
existsAs<std::vector<unsigned>>(
"layer1SecondStageLUT")) {
367 return std::make_shared<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 setTauMaxJetIsolationA(double cutValue)
void setEgCalibrationVersion(unsigned version)
void setCentralityLUT(const l1t::LUT &lut)
void setLayer1HCalScaleETBins(const std::vector< int > params)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
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)
~L1TCaloParamsESProducer() override
void setTauIsolationLUT(const l1t::LUT &lut)
void setJetCalibrationLUT(const l1t::LUT &lut)
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)
void setEgBypassExtHOverE(unsigned flag)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
void setCentralityRegionMask(int mask)
L1TCaloParamsESProducer(const edm::ParameterSet &)
void setJetCompressEtaLUT(const l1t::LUT &lut)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setLayer1ECalScalePhiBins(const std::vector< unsigned > params)
void setEgShapeIdLUT(const l1t::LUT &lut)
void setEtSumYCalibrationType(std::string type)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setJetCompressPtLUT(const l1t::LUT &lut)
void setEgHOverEcutBarrel(int cut)
void setEtSumEcalSumCalibrationType(std::string type)
ReturnType produce(const L1TCaloParamsRcd &)
void setEtSumEtaMin(unsigned isum, int eta)
void setTauMaxPtTauVeto(double limit)
void setEtSumXCalibrationLUT(const l1t::LUT &lut)
void setRegionLsb(double lsb)
void setJetCalibrationType(std::string type)
void setEtSumMetPUSType(std::string type)
void setTowerLsbH(double lsb)
void setEgMinPtJetIsolation(int cutValue)
void setEgBypassEGVetos(unsigned flag)
void setEgIsolationLUT2(const l1t::LUT &lut)
void setTauCompressLUT(const l1t::LUT &lut)
void setTowerNBitsH(int n)
void setLayer1HFScaleETBins(const std::vector< int > params)
void setEtSumEtThreshold(unsigned isum, double thresh)
void setTauPUSType(std::string type)
void setEgPUSType(std::string type)
void setLayer1ECalScaleETBins(const std::vector< int > params)
void setTauSeedThreshold(double thresh)
void setTowerEncoding(bool doit)
void setTauMaxJetIsolationB(double limit)
void setEgIsoAreaNrTowersPhi(unsigned iEgIsoAreaNrTowersPhi)
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)
void setLayer1SecondStageLUT(const std::vector< unsigned > &lut)
std::shared_ptr< CaloParams > ReturnType
void setJetLsb(double lsb)
void setTauPUSParams(const std::vector< double > ¶ms)
void setEtSumEttCalibrationType(std::string type)
void setQ2LUT(const l1t::LUT &lut)
void setLayer1HCalScaleFactors(const std::vector< double > params)
void setEtSumBypassEttPUS(unsigned flag)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setEgMaxHOverELUT(const l1t::LUT &lut)
void setLayer1HFScaleFactors(const std::vector< double > params)
void setTowerNBitsE(int n)
void setMinimumBiasThresholds(std::vector< int > thresholds)
void setJetSeedThreshold(double thresh)
void setEtSumYCalibrationLUT(const l1t::LUT &lut)
void setEgMaxPtHOverE(double thresh)
void setEgTrimmingLUT(const l1t::LUT &lut)
void setRegionPUSParams(const std::vector< double > ¶ms)
void setEtSumXCalibrationType(std::string type)
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 setEtSumEttPUSType(std::string type)
std::string fullPath() const
void setEgSeedThreshold(double thresh)
void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi)
void setLayer1ECalScaleFactors(const std::vector< double > params)
void setLayer1HCalScalePhiBins(const std::vector< unsigned > params)
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 setLayer1HFScalePhiBins(const std::vector< unsigned > params)
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)