CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1TCaloParamsOnlineProd.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 #include <stdexcept>
4 #include <sstream>
5 
13 //#include "L1Trigger/L1TCalorimeter/interface/CaloParamsHelper.h"
14 #include "CaloParamsHelperO2O.h"
15 #include "OnlineDBqueryHelper.h"
16 
17 #include "xercesc/util/PlatformUtils.hpp"
18 using namespace XERCES_CPP_NAMESPACE;
19 
20 class L1TCaloParamsOnlineProd : public L1ConfigOnlineProdBaseExt<L1TCaloParamsO2ORcd, l1t::CaloParams> {
21 private:
23  const unsigned int exclusiveLayer; // 0 - process calol1 and calol2, 1 - only calol1, 2 - only calol2
24  const bool transactionSafe;
25 
26  bool readCaloLayer1OnlineSettings(l1t::CaloParamsHelperO2O& paramsHelper,
27  std::map<std::string, l1t::Parameter>& conf,
28  std::map<std::string, l1t::Mask>&);
29  bool readCaloLayer2OnlineSettings(l1t::CaloParamsHelperO2O& paramsHelper,
30  std::map<std::string, l1t::Parameter>& conf,
31  std::map<std::string, l1t::Mask>&);
32 
33 public:
34  std::unique_ptr<const l1t::CaloParams> newObject(const std::string& objectKey,
35  const L1TCaloParamsO2ORcd& record) override;
36 
38  ~L1TCaloParamsOnlineProd(void) override {}
39 };
40 
42  std::map<std::string, l1t::Parameter>& conf,
43  std::map<std::string, l1t::Mask>&) {
44  const char* expectedParams[] = {
45  "layer1ECalScaleFactors",
46  "layer1HCalScaleFactors",
47  "layer1HFScaleFactors",
48  "layer1ECalScaleETBins",
49  "layer1HCalScaleETBins",
50  "layer1HFScaleETBins"
51  // Optional params
52  //"layer1ECalScalePhiBins",
53  //"layer1HCalScalePhiBins",
54  //"layer1HFScalePhiBins",
55  //"layer1SecondStageLUT"
56  };
57  for (const auto param : expectedParams) {
58  if (conf.find(param) == conf.end()) {
59  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd")
60  << "Unable to locate expected CaloLayer1 parameter: " << param << " in L1 settings payload!";
61  return false;
62  }
63  }
64  // Layer 1 LUT specification
65  paramsHelper.setLayer1ECalScaleFactors((conf["layer1ECalScaleFactors"].getVector<double>()));
66  paramsHelper.setLayer1HCalScaleFactors((conf["layer1HCalScaleFactors"].getVector<double>()));
67  paramsHelper.setLayer1HFScaleFactors((conf["layer1HFScaleFactors"].getVector<double>()));
68  paramsHelper.setLayer1ECalScaleETBins(conf["layer1ECalScaleETBins"].getVector<int>());
69  paramsHelper.setLayer1HCalScaleETBins(conf["layer1HCalScaleETBins"].getVector<int>());
70  paramsHelper.setLayer1HFScaleETBins(conf["layer1HFScaleETBins"].getVector<int>());
71 
72  if (conf.find("layer1ECalScalePhiBins") != conf.end())
73  paramsHelper.setLayer1ECalScalePhiBins(
74  conf["layer1ECalScalePhiBins"].getVector<unsigned int>()); // std::vector<unsigned>(36,0)
75  if (conf.find("layer1HCalScalePhiBins") != conf.end())
76  paramsHelper.setLayer1HCalScalePhiBins(conf["layer1HCalScalePhiBins"].getVector<unsigned int>());
77  if (conf.find("layer1HFScalePhiBins") != conf.end())
78  paramsHelper.setLayer1HFScalePhiBins(conf["layer1HFScalePhiBins"].getVector<unsigned int>());
79  if (conf.find("layer1SecondStageLUT") != conf.end())
80  paramsHelper.setLayer1SecondStageLUT(conf["layer1SecondStageLUT"].getVector<unsigned int>());
81 
82  return true;
83 }
84 
86  std::map<std::string, l1t::Parameter>& conf,
87  std::map<std::string, l1t::Mask>&) {
88  const char* expectedParams[] = {
89  "leptonSeedThreshold",
90  "leptonTowerThreshold",
91  "pileUpTowerThreshold",
92  "egammaRelaxationThreshold",
93  "egammaMaxEta",
94  "egammaBypassCuts",
95  "egammaBypassShape",
96  "egammaBypassEcalFG",
97  "egammaBypassExtendedHOverE",
98  "egammaHOverECut_iEtaLT15",
99  "egammaHOverECut_iEtaGTEq15",
100  "egammaEnergyCalibLUT",
101  "egammaIsoLUT1",
102  "egammaIsoLUT2",
103  "tauMaxEta",
104  "tauEnergyCalibLUT",
105  "tauIsoLUT",
106  "tauTrimmingLUT",
107  "jetSeedThreshold",
108  "HTMHT_maxJetEta",
109  "HT_jetThreshold",
110  "MHT_jetThreshold",
111  "jetBypassPileUpSub",
112  "jetEnergyCalibLUT",
113  "jetPUSUsePhiRing",
114  "towerCountThreshold",
115  "towerCountMaxEta",
116  "ETMET_maxTowerEta",
117  "ecalET_towerThresholdLUT",
118  "ET_towerThresholdLUT",
119  "MET_towerThresholdLUT",
120  "ET_centralityLowerThresholds",
121  "ET_centralityUpperThresholds",
122  "ET_energyCalibLUT",
123  "ecalET_energyCalibLUT",
124  "MET_energyCalibLUT",
125  "METHF_energyCalibLUT",
126  "MET_phiCalibLUT",
127  "METHF_phiCalibLUT",
128  };
129 
130  for (const auto param : expectedParams) {
131  if (conf.find(param) == conf.end()) {
132  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd")
133  << "Unable to locate expected CaloLayer2 parameter: " << param << " in L1 settings payload!";
134  return false;
135  }
136  }
137  // Layer 2 params specification
138  paramsHelper.setEgSeedThreshold((conf["leptonSeedThreshold"].getValue<int>()) / 2);
139  paramsHelper.setTauSeedThreshold((conf["leptonSeedThreshold"].getValue<int>()) / 2);
140  paramsHelper.setEgNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>()) / 2);
141  paramsHelper.setTauNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>()) / 2);
142  paramsHelper.setPileUpTowerThreshold((conf["pileUpTowerThreshold"].getValue<int>()) / 2);
143 
144  paramsHelper.setEgMaxPtHOverE((conf["egammaRelaxationThreshold"].getValue<int>()) / 2.);
145  paramsHelper.setEgEtaCut((conf["egammaMaxEta"].getValue<int>()));
146  paramsHelper.setEgBypassEGVetos(conf["egammaBypassCuts"].getValue<bool>());
147  paramsHelper.setEgBypassShape(conf["egammaBypassShape"].getValue<bool>());
148  paramsHelper.setEgBypassECALFG(conf["egammaBypassEcalFG"].getValue<bool>());
149  paramsHelper.setEgBypassExtHOverE(conf["egammaBypassExtendedHOverE"].getValue<bool>());
150  paramsHelper.setEgHOverEcutBarrel(conf["egammaHOverECut_iEtaLT15"].getValue<int>());
151  paramsHelper.setEgHOverEcutEndcap(conf["egammaHOverECut_iEtaGTEq15"].getValue<int>());
152  paramsHelper.setEgCalibrationLUT(l1t::convertToLUT(conf["egammaEnergyCalibLUT"].getVector<int>()));
153  paramsHelper.setEgIsolationLUT(l1t::convertToLUT(conf["egammaIsoLUT1"].getVector<int>()));
154  paramsHelper.setEgIsolationLUT2(l1t::convertToLUT(conf["egammaIsoLUT2"].getVector<int>()));
155 
156  paramsHelper.setIsoTauEtaMax((conf["tauMaxEta"].getValue<int>()));
157  paramsHelper.setTauCalibrationLUT(l1t::convertToLUT(conf["tauEnergyCalibLUT"].getVector<int>()));
158  paramsHelper.setTauIsolationLUT(l1t::convertToLUT(conf["tauIsoLUT"].getVector<int>()));
159  paramsHelper.setTauTrimmingShapeVetoLUT(l1t::convertToLUT(conf["tauTrimmingLUT"].getVector<int>()));
160 
161  paramsHelper.setJetSeedThreshold((conf["jetSeedThreshold"].getValue<int>()) / 2);
162  paramsHelper.setJetBypassPUS(conf["jetBypassPileUpSub"].getValue<bool>());
163  paramsHelper.setJetPUSUsePhiRing(conf["jetPUSUsePhiRing"].getValue<bool>());
164  paramsHelper.setJetCalibrationLUT(l1t::convertToLUT(conf["jetEnergyCalibLUT"].getVector<uint32_t>()));
165 
166  std::vector<int> etSumEtaMax;
167  std::vector<int> etSumEtThresh;
168 
169  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
170  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
171  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
172  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
173  etSumEtaMax.push_back(conf["towerCountMaxEta"].getValue<int>());
174 
175  etSumEtThresh.push_back(0); //deprecated by EttPUSLUT
176  etSumEtThresh.push_back(conf["HT_jetThreshold"].getValue<int>() / 2);
177  etSumEtThresh.push_back(0); //deprecated by MetPUSLUT
178  etSumEtThresh.push_back(conf["MHT_jetThreshold"].getValue<int>() / 2);
179  etSumEtThresh.push_back(conf["towerCountThreshold"].getValue<int>() / 2);
180 
181  for (uint i = 0; i < 5; ++i) {
182  paramsHelper.setEtSumEtaMax(i, etSumEtaMax.at(i));
183  paramsHelper.setEtSumEtThreshold(i, etSumEtThresh.at(i));
184  }
185 
186  paramsHelper.setEtSumMetPUSLUT(l1t::convertToLUT(conf["MET_towerThresholdLUT"].getVector<int>()));
187  paramsHelper.setEtSumEttPUSLUT(l1t::convertToLUT(conf["ET_towerThresholdLUT"].getVector<int>()));
188  paramsHelper.setEtSumEcalSumPUSLUT(l1t::convertToLUT(conf["ecalET_towerThresholdLUT"].getVector<int>()));
189 
190  std::vector<double> etSumCentLowerValues;
191  std::vector<double> etSumCentUpperValues;
192 
193  etSumCentLowerValues = conf["ET_centralityLowerThresholds"].getVector<double>();
194  etSumCentUpperValues = conf["ET_centralityUpperThresholds"].getVector<double>();
195 
196  for (uint i = 0; i < 8; ++i) {
197  paramsHelper.setEtSumCentLower(i, etSumCentLowerValues[i] / 2);
198  paramsHelper.setEtSumCentUpper(i, etSumCentUpperValues[i] / 2);
199  }
200 
201  // demux tower sum calib LUTs
202  paramsHelper.setEtSumEttCalibrationLUT(l1t::convertToLUT(conf["ET_energyCalibLUT"].getVector<int>()));
203  paramsHelper.setEtSumEcalSumCalibrationLUT(l1t::convertToLUT(conf["ecalET_energyCalibLUT"].getVector<int>()));
204  paramsHelper.setMetCalibrationLUT(l1t::convertToLUT(conf["MET_energyCalibLUT"].getVector<int>()));
205  paramsHelper.setMetHFCalibrationLUT(l1t::convertToLUT(conf["METHF_energyCalibLUT"].getVector<int>()));
206  paramsHelper.setMetPhiCalibrationLUT(l1t::convertToLUT(conf["MET_phiCalibLUT"].getVector<int>()));
207  paramsHelper.setMetHFPhiCalibrationLUT(l1t::convertToLUT(conf["METHF_phiCalibLUT"].getVector<int>()));
208 
209  return true;
210 }
211 
213  : L1ConfigOnlineProdBaseExt<L1TCaloParamsO2ORcd, l1t::CaloParams>(iConfig),
214  baseSettings_token(wrappedSetWhatProduced(iConfig).consumes()),
215  exclusiveLayer(iConfig.getParameter<uint32_t>("exclusiveLayer")),
216  transactionSafe(iConfig.getParameter<bool>("transactionSafe")) {}
217 
218 std::unique_ptr<const l1t::CaloParams> L1TCaloParamsOnlineProd::newObject(const std::string& objectKey,
219  const L1TCaloParamsO2ORcd& record) {
220  const L1TCaloParamsRcd& baseRcd = record.template getRecord<L1TCaloParamsRcd>();
221  auto const& baseSettings = baseRcd.get(baseSettings_token);
222 
223  if (objectKey.empty()) {
224  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << "Key is empty";
225  if (transactionSafe)
226  throw std::runtime_error("SummaryForFunctionManager: Calo | Faulty | Empty objectKey");
227  else {
228  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << "returning unmodified prototype of l1t::CaloParams";
229  return std::make_unique<const l1t::CaloParams>(baseSettings);
230  }
231  }
232 
233  std::string tscKey = objectKey.substr(0, objectKey.find(':'));
234  std::string rsKey = objectKey.substr(objectKey.find(':') + 1, std::string::npos);
235 
236  edm::LogInfo("L1-O2O: L1TCaloParamsOnlineProd")
237  << "Producing L1TCaloParamsOnlineProd with TSC key = " << tscKey << " and RS key = " << rsKey;
238 
239  std::string calol1_top_key, calol1_algo_key;
240  std::string calol1_algo_payload;
241  std::string calol2_top_key, calol2_algo_key, calol2_hw_key;
242  std::string calol2_hw_payload;
243  std::map<std::string, std::string> calol2_algo_payloads; // key -> XML payload
244  try {
245  std::map<std::string, std::string> topKeys =
246  l1t::OnlineDBqueryHelper::fetch({"CALOL1_KEY", "CALOL2_KEY"}, "L1_TRG_CONF_KEYS", tscKey, m_omdsReader);
247 
248  if (exclusiveLayer == 0 || exclusiveLayer == 1) {
249  calol1_top_key = topKeys["CALOL1_KEY"];
250 
251  calol1_algo_key = l1t::OnlineDBqueryHelper::fetch({"ALGO"}, "CALOL1_KEYS", calol1_top_key, m_omdsReader)["ALGO"];
252 
253  calol1_algo_payload =
254  l1t::OnlineDBqueryHelper::fetch({"CONF"}, "CALOL1_CLOBS", calol1_algo_key, m_omdsReader)["CONF"];
255  }
256 
257  if (exclusiveLayer == 0 || exclusiveLayer == 2) {
258  calol2_top_key = topKeys["CALOL2_KEY"];
259 
260  std::map<std::string, std::string> calol2_keys =
261  l1t::OnlineDBqueryHelper::fetch({"ALGO", "HW"}, "CALOL2_KEYS", calol2_top_key, m_omdsReader);
262 
263  calol2_hw_key = calol2_keys["HW"];
264  calol2_hw_payload =
265  l1t::OnlineDBqueryHelper::fetch({"CONF"}, "CALOL2_CLOBS", calol2_hw_key, m_omdsReader)["CONF"];
266 
267  calol2_algo_key = calol2_keys["ALGO"];
268 
269  std::map<std::string, std::string> calol2_algo_keys =
270  l1t::OnlineDBqueryHelper::fetch({"DEMUX", "MPS_COMMON", "MPS_JET", "MP_EGAMMA", "MP_SUM", "MP_TAU"},
271  "CALOL2_ALGO_KEYS",
272  calol2_algo_key,
273  m_omdsReader);
274 
275  for (auto& key : calol2_algo_keys)
276  calol2_algo_payloads[key.second] =
277  l1t::OnlineDBqueryHelper::fetch({"CONF"}, "CALOL2_CLOBS", key.second, m_omdsReader)["CONF"];
278  }
279 
280  } catch (std::runtime_error& e) {
281  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << e.what();
282  if (transactionSafe)
283  throw std::runtime_error(std::string("SummaryForFunctionManager: Calo | Faulty | ") + e.what());
284  else {
285  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << "returning unmodified prototype of l1t::CaloParams";
286  return std::make_unique<const l1t::CaloParams>(baseSettings);
287  }
288  }
289 
290  if (exclusiveLayer == 0 || exclusiveLayer == 2) {
291  // for debugging purposes dump the configs to local files
292  for (auto& conf : calol2_algo_payloads) {
293  std::ofstream output(std::string("/tmp/").append(conf.first.substr(0, conf.first.find("/"))).append(".xml"));
294  output << conf.second;
295  output.close();
296  }
297  std::ofstream output(std::string("/tmp/").append(calol2_hw_key.substr(0, calol2_hw_key.find('/'))).append(".xml"));
298  output << calol2_hw_payload;
299  output.close();
300  }
301  if (exclusiveLayer == 0 || exclusiveLayer == 1) {
302  std::ofstream output(
303  std::string("/tmp/").append(calol1_algo_key.substr(0, calol1_algo_key.find('/'))).append(".xml"));
304  output << calol1_algo_payload;
305  output.close();
306  }
307 
308  l1t::CaloParamsHelperO2O m_params_helper(baseSettings);
309 
310  if (exclusiveLayer == 0 || exclusiveLayer == 1) {
311  try {
312  l1t::XmlConfigParser xmlReader1;
313  xmlReader1.readDOMFromString(calol1_algo_payload);
314 
315  l1t::TriggerSystem calol1;
316  calol1.addProcessor("processors", "processors", "-1", "-1");
317  xmlReader1.readRootElement(calol1, "calol1");
318  calol1.setConfigured();
319 
320  std::map<std::string, l1t::Parameter> calol1_conf = calol1.getParameters("processors");
321  std::map<std::string, l1t::Mask> calol1_rs; //= calol1.getMasks ("processors");
322 
323  if (!readCaloLayer1OnlineSettings(m_params_helper, calol1_conf, calol1_rs))
324  throw std::runtime_error("Parsing error for CaloLayer1");
325 
326  } catch (std::runtime_error& e) {
327  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << e.what();
328  if (transactionSafe)
329  throw std::runtime_error(std::string("SummaryForFunctionManager: Calo | Faulty | ") + e.what());
330  else {
331  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << "returning unmodified prototype of l1t::CaloParams";
332  return std::make_unique<const l1t::CaloParams>(baseSettings);
333  }
334  }
335  }
336 
337  if (exclusiveLayer == 0 || exclusiveLayer == 2) {
338  try {
339  l1t::TriggerSystem calol2;
340  l1t::XmlConfigParser xmlReader2;
341  xmlReader2.readDOMFromString(calol2_hw_payload);
342  xmlReader2.readRootElement(calol2, "calol2");
343 
344  for (auto& conf : calol2_algo_payloads) {
345  xmlReader2.readDOMFromString(conf.second);
346  xmlReader2.readRootElement(calol2, "calol2");
347  }
348 
349  // calol2.setSystemId("calol2");
350  calol2.setConfigured();
351 
352  std::map<std::string, l1t::Parameter> calol2_conf = calol2.getParameters("MP1");
353  std::map<std::string, l1t::Parameter> calol2_conf_demux = calol2.getParameters("DEMUX");
354  calol2_conf.insert(calol2_conf_demux.begin(), calol2_conf_demux.end());
355  std::map<std::string, l1t::Mask> calol2_rs; //= calol2.getMasks ("processors");
356 
357  if (!readCaloLayer2OnlineSettings(m_params_helper, calol2_conf, calol2_rs))
358  throw std::runtime_error("Parsing error for CaloLayer2");
359 
360  } catch (std::runtime_error& e) {
361  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << e.what();
362  if (transactionSafe)
363  throw std::runtime_error(std::string("SummaryForFunctionManager: Calo | Faulty | ") + e.what());
364  else {
365  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd") << "returning unmodified prototype of l1t::CaloParams";
366  return std::make_unique<const l1t::CaloParams>(baseSettings);
367  }
368  }
369  }
370 
371  auto retval = std::make_unique<const l1t::CaloParams>(m_params_helper);
372 
373  edm::LogInfo("L1-O2O: L1TCaloParamsOnlineProd") << "SummaryForFunctionManager: Calo | OK | All looks good";
374  return retval;
375 }
376 
377 //define this as a plug-in
void setConfigured(bool state=true) noexcept
Definition: TriggerSystem.h:74
void setTauIsolationLUT(const l1t::LUT &lut)
void setLayer1HFScalePhiBins(const std::vector< unsigned > params)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
void setJetCalibrationLUT(const l1t::LUT &lut)
void setEgNeighbourThreshold(double thresh)
void setLayer1HCalScaleFactors(const std::vector< double > params)
void setLayer1ECalScaleFactors(const std::vector< double > params)
void setLayer1SecondStageLUT(const std::vector< unsigned > &lut)
void setEtSumEcalSumCalibrationLUT(const l1t::LUT &lut)
Log< level::Error, false > LogError
const edm::ESGetToken< l1t::CaloParams, L1TCaloParamsRcd > baseSettings_token
L1TCaloParamsOnlineProd(const edm::ParameterSet &)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setTauCalibrationLUT(const l1t::LUT &lut)
void setLayer1HCalScalePhiBins(const std::vector< unsigned > params)
void setJetSeedThreshold(double thresh)
void setLayer1HCalScaleETBins(const std::vector< int > params)
void setEtSumCentLower(unsigned centClass, double loBound)
void setEtSumEtaMax(unsigned isum, int eta)
void readDOMFromString(const std::string &str, xercesc::DOMDocument *&doc)
void setEgIsolationLUT(const l1t::LUT &lut)
void setLayer1HFScaleETBins(const std::vector< int > params)
void setTauSeedThreshold(double thresh)
static std::map< std::string, std::string > fetch(const std::vector< std::string > &queryColumns, const std::string &table, const std::string &key, l1t::OMDSReader &m_omdsReader)
void setTauNeighbourThreshold(double thresh)
void setLayer1ECalScaleETBins(const std::vector< int > params)
bool readCaloLayer2OnlineSettings(l1t::CaloParamsHelperO2O &paramsHelper, std::map< std::string, l1t::Parameter > &conf, std::map< std::string, l1t::Mask > &)
tuple key
prepare the HTCondor submission files and eventually submit them
void setPileUpTowerThreshold(int thresh)
void setMetHFPhiCalibrationLUT(const l1t::LUT &lut)
void setEgIsolationLUT2(const l1t::LUT &lut)
l1t::LUT convertToLUT(const std::vector< uint64_t > &v, int padding=-1) noexcept
Definition: ConvertToLUT.h:10
void setLayer1ECalScalePhiBins(const std::vector< unsigned > params)
void setTauTrimmingShapeVetoLUT(const l1t::LUT &lut)
void setMetHFCalibrationLUT(const l1t::LUT &lut)
void setMetPhiCalibrationLUT(const l1t::LUT &lut)
Log< level::Info, false > LogInfo
std::unique_ptr< const l1t::CaloParams > newObject(const std::string &objectKey, const L1TCaloParamsO2ORcd &record) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
const std::map< std::string, Parameter > & getParameters(const char *processor) const
void setEgBypassEGVetos(unsigned flag)
void setEtSumEcalSumPUSLUT(const l1t::LUT &lut)
void setEgBypassShape(unsigned flag)
void setEtSumCentUpper(unsigned centClass, double upBound)
void setEgSeedThreshold(double thresh)
void setEtSumEtThreshold(unsigned isum, double thresh)
void readRootElement(TriggerSystem &aTriggerSystem, const std::string &sysId="")
bool readCaloLayer1OnlineSettings(l1t::CaloParamsHelperO2O &paramsHelper, std::map< std::string, l1t::Parameter > &conf, std::map< std::string, l1t::Mask > &)
void setEgBypassExtHOverE(unsigned flag)
void addProcessor(const char *processor, const char *role, const char *crate, const char *slot)
void setJetPUSUsePhiRing(unsigned flag)
void setEgMaxPtHOverE(double thresh)
void setEtSumMetPUSLUT(const l1t::LUT &lut)
void setJetBypassPUS(unsigned flag)
void setLayer1HFScaleFactors(const std::vector< double > params)
void setEgBypassECALFG(unsigned flag)
void setMetCalibrationLUT(const l1t::LUT &lut)