103 std::ifstream egTrimmingLUTStream(egTrimmingLUTFile.
fullPath());
104 auto egTrimmingLUT = std::make_shared<LUT>(egTrimmingLUTStream);
122 std::ifstream egMaxHOverELUTStream(egMaxHOverELUTFile.
fullPath());
123 auto egMaxHOverELUT = std::make_shared<LUT>(egMaxHOverELUTStream);
127 std::ifstream egCompressShapesLUTStream(egCompressShapesLUTFile.
fullPath());
128 auto egCompressShapesLUT = std::make_shared<LUT>(egCompressShapesLUTStream);
134 std::ifstream egShapeIdLUTStream(egShapeIdLUTFile.
fullPath());
135 auto egShapeIdLUT = std::make_shared<LUT>(egShapeIdLUTStream);
142 std::ifstream egIsoLUTStream(egIsoLUTFile.
fullPath());
143 auto egIsoLUT = std::make_shared<LUT>(egIsoLUTStream);
146 std::ifstream egIsoLUTStream2(egIsoLUTFile2.
fullPath());
147 auto egIsoLUT2 = std::make_shared<LUT>(egIsoLUTStream2);
172 std::ifstream egCalibrationLUTStream(egCalibrationLUTFile.
fullPath());
173 auto egCalibrationLUT = std::make_shared<LUT>(egCalibrationLUTStream);
191 std::ifstream tauIsoLUTStream(tauIsoLUTFile.
fullPath());
192 auto tauIsoLUT = std::make_shared<LUT>(tauIsoLUTStream);
196 std::ifstream tauIsoLUTStream2(tauIsoLUTFile2.
fullPath());
197 std::shared_ptr<LUT> tauIsoLUT2(
new LUT(tauIsoLUTStream2) );
201 std::ifstream tauTrimmingShapeVetoLUTStream(tauTrimmingShapeVetoLUTFile.
fullPath());
202 std::shared_ptr<LUT> tauTrimmingShapeVetoLUT(
new LUT(tauTrimmingShapeVetoLUTStream) );
206 std::ifstream tauCalibrationLUTStream(tauCalibrationLUTFile.
fullPath());
207 auto tauCalibrationLUT = std::make_shared<LUT>(tauCalibrationLUTStream);
211 std::ifstream tauCompressLUTStream(tauCompressLUTFile.
fullPath());
212 auto tauCompressLUT = std::make_shared<LUT>(tauCompressLUTStream);
216 std::ifstream tauEtToHFRingEtLUTStream(tauEtToHFRingEtLUTFile.
fullPath());
217 auto tauEtToHFRingEtLUT = std::make_shared<LUT>(tauEtToHFRingEtLUTStream);
236 std::ifstream jetCalibrationLUTStream(jetCalibrationLUTFile.
fullPath());
237 auto jetCalibrationLUT = std::make_shared<LUT>(jetCalibrationLUTStream);
240 std::ifstream jetCompressEtaLUTStream(jetCompressEtaLUTFile.
fullPath());
241 std::shared_ptr<LUT> jetCompressEtaLUT(
new LUT(jetCompressEtaLUTStream) );
244 std::ifstream jetCompressPtLUTStream(jetCompressPtLUTFile.
fullPath());
245 std::shared_ptr<LUT> jetCompressPtLUT(
new LUT(jetCompressPtLUTStream) );
251 std::vector<int> etSumEtaMin = conf.
getParameter<std::vector<int> >(
"etSumEtaMin");
252 std::vector<int> etSumEtaMax = conf.
getParameter<std::vector<int> >(
"etSumEtaMax");
253 std::vector<double> etSumEtThreshold = conf.
getParameter<std::vector<double> >(
"etSumEtThreshold");
265 if ((etSumEtaMin.size() == etSumEtaMax.size()) && (etSumEtaMin.size() == etSumEtThreshold.size())) {
266 for (
unsigned i=0;
i<etSumEtaMin.size(); ++
i) {
273 edm::LogError(
"l1t|calo") <<
"Inconsistent number of EtSum parameters" << std::endl;
277 std::ifstream etSumMetPUSLUTStream(etSumMetPUSLUTFile.
fullPath());
278 std::shared_ptr<LUT> etSumMetPUSLUT(
new LUT(etSumMetPUSLUTStream) );
282 std::ifstream etSumEttPUSLUTStream(etSumEttPUSLUTFile.
fullPath());
283 std::shared_ptr<LUT> etSumEttPUSLUT(
new LUT(etSumEttPUSLUTStream) );
287 std::ifstream etSumEcalSumPUSLUTStream(etSumEcalSumPUSLUTFile.
fullPath());
288 std::shared_ptr<LUT> etSumEcalSumPUSLUT(
new LUT(etSumEcalSumPUSLUTStream) );
292 std::ifstream metCalibrationLUTStream(metCalibrationLUTFile.
fullPath());
293 std::shared_ptr<LUT> metCalibrationLUT(
new LUT(metCalibrationLUTStream) );
297 std::ifstream metHFCalibrationLUTStream(metHFCalibrationLUTFile.
fullPath());
298 std::shared_ptr<LUT> metHFCalibrationLUT(
new LUT(metHFCalibrationLUTStream) );
302 std::ifstream etSumEttCalibrationLUTStream(etSumEttCalibrationLUTFile.
fullPath());
303 std::shared_ptr<LUT> etSumEttCalibrationLUT(
new LUT(etSumEttCalibrationLUTStream) );
307 std::ifstream etSumEcalSumCalibrationLUTStream(etSumEcalSumCalibrationLUTFile.
fullPath());
308 std::shared_ptr<LUT> etSumEcalSumCalibrationLUT(
new LUT(etSumEcalSumCalibrationLUTStream) );
312 std::ifstream metPhiCalibrationLUTStream(metPhiCalibrationLUTFile.
fullPath());
313 std::shared_ptr<LUT> metPhiCalibrationLUT(
new LUT(metPhiCalibrationLUTStream) );
317 std::ifstream metHFPhiCalibrationLUTStream(metHFPhiCalibrationLUTFile.
fullPath());
318 std::shared_ptr<LUT> metHFPhiCalibrationLUT(
new LUT(metHFPhiCalibrationLUTStream) );
322 std::vector<double> etSumCentLower = conf.
getParameter<std::vector<double>>(
"etSumCentralityLower");
323 std::vector<double> etSumCentUpper = conf.
getParameter<std::vector<double>>(
"etSumCentralityUpper");
324 if (etSumCentLower.size() == etSumCentUpper.size()){
325 for (
unsigned i=0;
i<etSumCentLower.size(); ++
i) {
331 edm::LogError(
"l1t|calo") <<
"Inconsistent number of Centrality boundaries" << std::endl;
335 std::ifstream centralityLUTStream(centralityLUTFile.
fullPath());
336 auto centralityLUT = std::make_shared<LUT>(centralityLUTStream);
339 std::vector<int> minbiasThresholds = conf.
getParameter<std::vector<int> >(
"minimumBiasThresholds");
340 if(minbiasThresholds.size() == 4) {
343 edm::LogError(
"l1t|calo") <<
"Incorrect number of minimum bias thresholds set.";
348 std::ifstream q2LUTStream(q2LUTFile.
fullPath());
349 auto q2LUT = std::make_shared<LUT>(q2LUTStream);
365 if (conf.
existsAs<std::vector<unsigned>>(
"layer1SecondStageLUT")) {
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)
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)
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setLayer1HCalScalePhiBins(std::vector< unsigned > params)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
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)
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)