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