98 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
99 auto egTrimmingLUT = std::make_shared<LUT>(egTrimmingLUTStream);
117 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
118 auto egMaxHOverELUT = std::make_shared<LUT>(egMaxHOverELUTStream);
122 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
123 auto egCompressShapesLUT = std::make_shared<LUT>(egCompressShapesLUTStream);
129 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
130 auto egShapeIdLUT = std::make_shared<LUT>(egShapeIdLUTStream);
137 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
138 auto egIsoLUT = std::make_shared<LUT>(egIsoLUTStream);
141 std::ifstream egIsoLUTStream2(egIsoLUTFile2.
fullPath());
142 auto egIsoLUT2 = std::make_shared<LUT>(egIsoLUTStream2);
166 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
167 auto egCalibrationLUT = std::make_shared<LUT>(egCalibrationLUTStream);
185 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
186 auto tauIsoLUT = std::make_shared<LUT>(tauIsoLUTStream);
190 std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.
fullPath());
191 std::shared_ptr<LUT> tauIsoLUT2(
new LUT(tauIsoLUTStream2));
195 std::ifstream tauTrimmingShapeVetoLUTStream(tauTrimmingShapeVetoLUTFile.
fullPath());
196 std::shared_ptr<LUT> tauTrimmingShapeVetoLUT(
new LUT(tauTrimmingShapeVetoLUTStream));
200 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
201 auto tauCalibrationLUT = std::make_shared<LUT>(tauCalibrationLUTStream);
205 std::ifstream tauCompressLUTStream(tauCompressLUTFile.
fullPath());
206 auto tauCompressLUT = std::make_shared<LUT>(tauCompressLUTStream);
210 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
211 auto tauEtToHFRingEtLUT = std::make_shared<LUT>(tauEtToHFRingEtLUTStream);
230 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
231 auto jetCalibrationLUT = std::make_shared<LUT>(jetCalibrationLUTStream);
234 std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.
fullPath());
235 std::shared_ptr<LUT> jetCompressEtaLUT(
new LUT(jetCompressEtaLUTStream));
238 std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.
fullPath());
239 std::shared_ptr<LUT> jetCompressPtLUT(
new LUT(jetCompressPtLUTStream));
245 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int>>(
"etSumEtaMin");
246 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int>>(
"etSumEtaMax");
247 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double>>(
"etSumEtThreshold");
259 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
260 for (
unsigned i = 0;
i < etSumEtaMin.size(); ++
i) {
266 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
270 std::ifstream etSumMetPUSLUTStream(etSumMetPUSLUTFile.
fullPath());
271 std::shared_ptr<LUT> etSumMetPUSLUT(
new LUT(etSumMetPUSLUTStream));
275 std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.
fullPath());
276 std::shared_ptr<LUT> etSumEttPUSLUT(
new LUT(etSumEttPUSLUTStream));
280 std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.
fullPath());
281 std::shared_ptr<LUT> etSumEcalSumPUSLUT(
new LUT(etSumEcalSumPUSLUTStream));
285 std::ifstream metCalibrationLUTStream(metCalibrationLUTFile.
fullPath());
286 std::shared_ptr<LUT> metCalibrationLUT(
new LUT(metCalibrationLUTStream));
290 std::ifstream metHFCalibrationLUTStream(metHFCalibrationLUTFile.
fullPath());
291 std::shared_ptr<LUT> metHFCalibrationLUT(
new LUT(metHFCalibrationLUTStream));
295 std::ifstream etSumEttCalibrationLUTStream(etSumEttCalibrationLUTFile.
fullPath());
296 std::shared_ptr<LUT> etSumEttCalibrationLUT(
new LUT(etSumEttCalibrationLUTStream));
300 std::ifstream etSumEcalSumCalibrationLUTStream(etSumEcalSumCalibrationLUTFile.
fullPath());
301 std::shared_ptr<LUT> etSumEcalSumCalibrationLUT(
new LUT(etSumEcalSumCalibrationLUTStream));
305 std::ifstream metPhiCalibrationLUTStream(metPhiCalibrationLUTFile.
fullPath());
306 std::shared_ptr<LUT> metPhiCalibrationLUT(
new LUT(metPhiCalibrationLUTStream));
310 std::ifstream metHFPhiCalibrationLUTStream(metHFPhiCalibrationLUTFile.
fullPath());
311 std::shared_ptr<LUT> metHFPhiCalibrationLUT(
new LUT(metHFPhiCalibrationLUTStream));
315 std::vector<double> etSumCentLower = conf.
getParameter<std::vector<double>>(
"etSumCentralityLower");
316 std::vector<double> etSumCentUpper = conf.
getParameter<std::vector<double>>(
"etSumCentralityUpper");
317 if (etSumCentLower.size() == etSumCentUpper.size()) {
318 for (
unsigned i = 0;
i < etSumCentLower.size(); ++
i) {
323 edm::LogError(
"l1t|calo") <<
"Inconsistent number of Centrality boundaries" << std::endl;
327 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
328 auto centralityLUT = std::make_shared<LUT>(centralityLUTStream);
331 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int>>(
"minimumBiasThresholds");
332 if (minbiasThresholds.size() == 4) {
335 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
340 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
341 auto q2LUT = std::make_shared<LUT>(q2LUTStream);
357 if (conf.
existsAs<std::vector<unsigned>>(
"layer1SecondStageLUT")) {
void setEtSumEtaMax(unsigned isum, int eta)
void setEtSumEcalSumCalibrationLUT(const l1t::LUT &lut)
void setEtSumEcalSumPUSType(std::string type)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
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)
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 setLayer1ECalScalePhiBins(std::vector< unsigned > params)
void setCentralityRegionMask(int mask)
void setJetCompressEtaLUT(const l1t::LUT &lut)
Log< level::Error, false > LogError
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 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)
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)
T getParameter(std::string const &) const
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)