CMS 3D CMS Logo

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:
22  unsigned int exclusiveLayer; // 0 - process calol1 and calol2, 1 - only calol1, 2 - only calol2
24 
25  bool readCaloLayer1OnlineSettings(l1t::CaloParamsHelperO2O& paramsHelper,
26  std::map<std::string, l1t::Parameter>& conf,
27  std::map<std::string, l1t::Mask>&);
28  bool readCaloLayer2OnlineSettings(l1t::CaloParamsHelperO2O& paramsHelper,
29  std::map<std::string, l1t::Parameter>& conf,
30  std::map<std::string, l1t::Mask>&);
31 
32 public:
33  std::unique_ptr<const l1t::CaloParams> newObject(const std::string& objectKey,
34  const L1TCaloParamsO2ORcd& record) override;
35 
37  ~L1TCaloParamsOnlineProd(void) override {}
38 };
39 
41  std::map<std::string, l1t::Parameter>& conf,
42  std::map<std::string, l1t::Mask>&) {
43  const char* expectedParams[] = {
44  "layer1ECalScaleFactors",
45  "layer1HCalScaleFactors",
46  "layer1HFScaleFactors",
47  "layer1ECalScaleETBins",
48  "layer1HCalScaleETBins",
49  "layer1HFScaleETBins"
50  // Optional params
51  //"layer1ECalScalePhiBins",
52  //"layer1HCalScalePhiBins",
53  //"layer1HFScalePhiBins",
54  //"layer1SecondStageLUT"
55  };
56  for (const auto param : expectedParams) {
57  if (conf.find(param) == conf.end()) {
58  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd")
59  << "Unable to locate expected CaloLayer1 parameter: " << param << " in L1 settings payload!";
60  return false;
61  }
62  }
63  // Layer 1 LUT specification
64  paramsHelper.setLayer1ECalScaleFactors((conf["layer1ECalScaleFactors"].getVector<double>()));
65  paramsHelper.setLayer1HCalScaleFactors((conf["layer1HCalScaleFactors"].getVector<double>()));
66  paramsHelper.setLayer1HFScaleFactors((conf["layer1HFScaleFactors"].getVector<double>()));
67  paramsHelper.setLayer1ECalScaleETBins(conf["layer1ECalScaleETBins"].getVector<int>());
68  paramsHelper.setLayer1HCalScaleETBins(conf["layer1HCalScaleETBins"].getVector<int>());
69  paramsHelper.setLayer1HFScaleETBins(conf["layer1HFScaleETBins"].getVector<int>());
70 
71  if (conf.find("layer1ECalScalePhiBins") != conf.end())
72  paramsHelper.setLayer1ECalScalePhiBins(
73  conf["layer1ECalScalePhiBins"].getVector<unsigned int>()); // std::vector<unsigned>(36,0)
74  if (conf.find("layer1HCalScalePhiBins") != conf.end())
75  paramsHelper.setLayer1HCalScalePhiBins(conf["layer1HCalScalePhiBins"].getVector<unsigned int>());
76  if (conf.find("layer1HFScalePhiBins") != conf.end())
77  paramsHelper.setLayer1HFScalePhiBins(conf["layer1HFScalePhiBins"].getVector<unsigned int>());
78  if (conf.find("layer1SecondStageLUT") != conf.end())
79  paramsHelper.setLayer1SecondStageLUT(conf["layer1SecondStageLUT"].getVector<unsigned int>());
80 
81  return true;
82 }
83 
85  std::map<std::string, l1t::Parameter>& conf,
86  std::map<std::string, l1t::Mask>&) {
87  const char* expectedParams[] = {
88  "leptonSeedThreshold",
89  "leptonTowerThreshold",
90  "pileUpTowerThreshold",
91  "egammaRelaxationThreshold",
92  "egammaMaxEta",
93  "egammaBypassCuts",
94  "egammaBypassShape",
95  "egammaBypassEcalFG",
96  "egammaBypassExtendedHOverE",
97  "egammaHOverECut_iEtaLT15",
98  "egammaHOverECut_iEtaGTEq15",
99  "egammaEnergyCalibLUT",
100  "egammaIsoLUT1",
101  "egammaIsoLUT2",
102  "tauMaxEta",
103  "tauEnergyCalibLUT",
104  "tauIsoLUT",
105  "tauTrimmingLUT",
106  "jetSeedThreshold",
107  "HTMHT_maxJetEta",
108  "HT_jetThreshold",
109  "MHT_jetThreshold",
110  "jetBypassPileUpSub",
111  "jetEnergyCalibLUT",
112  "jetPUSUsePhiRing",
113  "towerCountThreshold",
114  "towerCountMaxEta",
115  "ETMET_maxTowerEta",
116  "ecalET_towerThresholdLUT",
117  "ET_towerThresholdLUT",
118  "MET_towerThresholdLUT",
119  "ET_centralityLowerThresholds",
120  "ET_centralityUpperThresholds",
121  "ET_energyCalibLUT",
122  "ecalET_energyCalibLUT",
123  "MET_energyCalibLUT",
124  "METHF_energyCalibLUT",
125  "MET_phiCalibLUT",
126  "METHF_phiCalibLUT",
127  };
128 
129  for (const auto param : expectedParams) {
130  if (conf.find(param) == conf.end()) {
131  edm::LogError("L1-O2O: L1TCaloParamsOnlineProd")
132  << "Unable to locate expected CaloLayer2 parameter: " << param << " in L1 settings payload!";
133  return false;
134  }
135  }
136  // Layer 2 params specification
137  paramsHelper.setEgSeedThreshold((conf["leptonSeedThreshold"].getValue<int>()) / 2);
138  paramsHelper.setTauSeedThreshold((conf["leptonSeedThreshold"].getValue<int>()) / 2);
139  paramsHelper.setEgNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>()) / 2);
140  paramsHelper.setTauNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>()) / 2);
141  paramsHelper.setPileUpTowerThreshold((conf["pileUpTowerThreshold"].getValue<int>()) / 2);
142 
143  paramsHelper.setEgMaxPtHOverE((conf["egammaRelaxationThreshold"].getValue<int>()) / 2.);
144  paramsHelper.setEgEtaCut((conf["egammaMaxEta"].getValue<int>()));
145  paramsHelper.setEgBypassEGVetos(conf["egammaBypassCuts"].getValue<bool>());
146  paramsHelper.setEgBypassShape(conf["egammaBypassShape"].getValue<bool>());
147  paramsHelper.setEgBypassECALFG(conf["egammaBypassEcalFG"].getValue<bool>());
148  paramsHelper.setEgBypassExtHOverE(conf["egammaBypassExtendedHOverE"].getValue<bool>());
149  paramsHelper.setEgHOverEcutBarrel(conf["egammaHOverECut_iEtaLT15"].getValue<int>());
150  paramsHelper.setEgHOverEcutEndcap(conf["egammaHOverECut_iEtaGTEq15"].getValue<int>());
151  paramsHelper.setEgCalibrationLUT(l1t::convertToLUT(conf["egammaEnergyCalibLUT"].getVector<int>()));
152  paramsHelper.setEgIsolationLUT(l1t::convertToLUT(conf["egammaIsoLUT1"].getVector<int>()));
153  paramsHelper.setEgIsolationLUT2(l1t::convertToLUT(conf["egammaIsoLUT2"].getVector<int>()));
154 
155  paramsHelper.setIsoTauEtaMax((conf["tauMaxEta"].getValue<int>()));
156  paramsHelper.setTauCalibrationLUT(l1t::convertToLUT(conf["tauEnergyCalibLUT"].getVector<int>()));
157  paramsHelper.setTauIsolationLUT(l1t::convertToLUT(conf["tauIsoLUT"].getVector<int>()));
158  paramsHelper.setTauTrimmingShapeVetoLUT(l1t::convertToLUT(conf["tauTrimmingLUT"].getVector<int>()));
159 
160  paramsHelper.setJetSeedThreshold((conf["jetSeedThreshold"].getValue<int>()) / 2);
161  paramsHelper.setJetBypassPUS(conf["jetBypassPileUpSub"].getValue<bool>());
162  paramsHelper.setJetPUSUsePhiRing(conf["jetPUSUsePhiRing"].getValue<bool>());
163  paramsHelper.setJetCalibrationLUT(l1t::convertToLUT(conf["jetEnergyCalibLUT"].getVector<uint32_t>()));
164 
165  std::vector<int> etSumEtaMax;
166  std::vector<int> etSumEtThresh;
167 
168  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
169  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
170  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
171  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
172  etSumEtaMax.push_back(conf["towerCountMaxEta"].getValue<int>());
173 
174  etSumEtThresh.push_back(0); //deprecated by EttPUSLUT
175  etSumEtThresh.push_back(conf["HT_jetThreshold"].getValue<int>() / 2);
176  etSumEtThresh.push_back(0); //deprecated by MetPUSLUT
177  etSumEtThresh.push_back(conf["MHT_jetThreshold"].getValue<int>() / 2);
178  etSumEtThresh.push_back(conf["towerCountThreshold"].getValue<int>() / 2);
179 
180  for (uint i = 0; i < 5; ++i) {
181  paramsHelper.setEtSumEtaMax(i, etSumEtaMax.at(i));
182  paramsHelper.setEtSumEtThreshold(i, etSumEtThresh.at(i));
183  }
184 
185  paramsHelper.setEtSumMetPUSLUT(l1t::convertToLUT(conf["MET_towerThresholdLUT"].getVector<int>()));
186  paramsHelper.setEtSumEttPUSLUT(l1t::convertToLUT(conf["ET_towerThresholdLUT"].getVector<int>()));
187  paramsHelper.setEtSumEcalSumPUSLUT(l1t::convertToLUT(conf["ecalET_towerThresholdLUT"].getVector<int>()));
188 
189  std::vector<double> etSumCentLowerValues;
190  std::vector<double> etSumCentUpperValues;
191 
192  etSumCentLowerValues = conf["ET_centralityLowerThresholds"].getVector<double>();
193  etSumCentUpperValues = conf["ET_centralityUpperThresholds"].getVector<double>();
194 
195  for (uint i = 0; i < 8; ++i) {
196  paramsHelper.setEtSumCentLower(i, etSumCentLowerValues[i] / 2);
197  paramsHelper.setEtSumCentUpper(i, etSumCentUpperValues[i] / 2);
198  }
199 
200  // demux tower sum calib LUTs
201  paramsHelper.setEtSumEttCalibrationLUT(l1t::convertToLUT(conf["ET_energyCalibLUT"].getVector<int>()));
202  paramsHelper.setEtSumEcalSumCalibrationLUT(l1t::convertToLUT(conf["ecalET_energyCalibLUT"].getVector<int>()));
203  paramsHelper.setMetCalibrationLUT(l1t::convertToLUT(conf["MET_energyCalibLUT"].getVector<int>()));
204  paramsHelper.setMetHFCalibrationLUT(l1t::convertToLUT(conf["METHF_energyCalibLUT"].getVector<int>()));
205  paramsHelper.setMetPhiCalibrationLUT(l1t::convertToLUT(conf["MET_phiCalibLUT"].getVector<int>()));
206  paramsHelper.setMetHFPhiCalibrationLUT(l1t::convertToLUT(conf["METHF_phiCalibLUT"].getVector<int>()));
207 
208  return true;
209 }
210 
212  : L1ConfigOnlineProdBaseExt<L1TCaloParamsO2ORcd, l1t::CaloParams>(iConfig) {
213  exclusiveLayer = iConfig.getParameter<uint32_t>("exclusiveLayer");
214  transactionSafe = iConfig.getParameter<bool>("transactionSafe");
215 }
216 
217 std::unique_ptr<const l1t::CaloParams> L1TCaloParamsOnlineProd::newObject(const std::string& objectKey,
218  const L1TCaloParamsO2ORcd& record) {
219  const L1TCaloParamsRcd& baseRcd = record.template getRecord<L1TCaloParamsRcd>();
220  edm::ESHandle<l1t::CaloParams> baseSettings;
221  baseRcd.get(baseSettings);
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.product()));
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.product()));
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.product()));
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.product()));
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.product()));
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
T getParameter(std::string const &) const
void setConfigured(bool state=true) noexcept
Definition: TriggerSystem.h:74
void setTauIsolationLUT(const l1t::LUT &lut)
void setLayer1HFScalePhiBins(const std::vector< unsigned > params)
JetCorrectorParameters::Record record
Definition: classes.h:7
void setEgCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
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)
delete x;
Definition: CaloConfig.h:22
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 > &)
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)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< const l1t::CaloParams > newObject(const std::string &objectKey, const L1TCaloParamsO2ORcd &record) override
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)