CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TCaloParamsOnlineProd Class Reference
Inheritance diagram for L1TCaloParamsOnlineProd:
L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams > edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1TCaloParamsOnlineProd (const edm::ParameterSet &)
 
virtual std::shared_ptr< l1t::CaloParamsnewObject (const std::string &objectKey, const L1TCaloParamsO2ORcd &record) override
 
 ~L1TCaloParamsOnlineProd (void)
 
- Public Member Functions inherited from L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >
 L1ConfigOnlineProdBaseExt (const edm::ParameterSet &)
 
std::shared_ptr< l1t::CaloParamsproduce (const L1TCaloParamsO2ORcd &iRecord)
 
 ~L1ConfigOnlineProdBaseExt ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Member Functions

bool readCaloLayer1OnlineSettings (l1t::CaloParamsHelperO2O &paramsHelper, std::map< std::string, l1t::Parameter > &conf, std::map< std::string, l1t::Mask > &)
 
bool readCaloLayer2OnlineSettings (l1t::CaloParamsHelperO2O &paramsHelper, std::map< std::string, l1t::Parameter > &conf, std::map< std::string, l1t::Mask > &)
 

Private Attributes

unsigned int exclusiveLayer
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >
bool getObjectKey (const L1TCaloParamsO2ORcd &record, std::shared_ptr< l1t::CaloParams > data, std::string &objectKey)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- Protected Attributes inherited from L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >
bool m_copyFromCondDB
 
cond::persistency::Session m_dbSession
 
bool m_forceGeneration
 
l1t::OMDSReader m_omdsReader
 

Detailed Description

Definition at line 20 of file L1TCaloParamsOnlineProd.cc.

Constructor & Destructor Documentation

L1TCaloParamsOnlineProd::L1TCaloParamsOnlineProd ( const edm::ParameterSet iConfig)
L1TCaloParamsOnlineProd::~L1TCaloParamsOnlineProd ( void  )
inline

Definition at line 32 of file L1TCaloParamsOnlineProd.cc.

32 {}

Member Function Documentation

std::shared_ptr< l1t::CaloParams > L1TCaloParamsOnlineProd::newObject ( const std::string &  objectKey,
const L1TCaloParamsO2ORcd record 
)
overridevirtual

Implements L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >.

Definition at line 194 of file L1TCaloParamsOnlineProd.cc.

References l1t::TriggerSystem::addProcessor(), mps_alisetup::append, DEFINE_FWK_EVENTSETUP_MODULE, MillePedeFileConverter_cfg::e, exclusiveLayer, l1t::OnlineDBqueryHelper::fetch(), edm::eventsetup::EventSetupRecord::get(), l1t::TriggerSystem::getParameters(), crabWrapper::key, L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >::m_omdsReader, convertSQLitetoXML_cfg::output, readCaloLayer1OnlineSettings(), readCaloLayer2OnlineSettings(), l1t::XmlConfigParser::readDOMFromString(), l1t::XmlConfigParser::readRootElement(), l1t::TriggerSystem::setConfigured(), and AlCaHLTBitMon_QueryRunRegistry::string.

194  {
195  using namespace edm::es;
196 
197  const L1TCaloParamsRcd& baseRcd = record.template getRecord< L1TCaloParamsRcd >() ;
198  edm::ESHandle< l1t::CaloParams > baseSettings ;
199  baseRcd.get( baseSettings ) ;
200 
201 
202  if( objectKey.empty() ){
203  edm::LogError( "L1-O2O: L1TCaloParamsOnlineProd" ) << "Key is empty, returning empty l1t::CaloParams";
204  throw std::runtime_error("Empty objectKey");
205  }
206 
207  std::string tscKey = objectKey.substr(0, objectKey.find(":") );
208  std::string rsKey = objectKey.substr( objectKey.find(":")+1, std::string::npos );
209 
210  edm::LogInfo( "L1-O2O: L1TCaloParamsOnlineProd" ) << "Producing L1TCaloParamsOnlineProd with TSC key = " << tscKey << " and RS key = " << rsKey
211 ;
212 
213  std::string calol1_top_key, calol1_algo_key;
214  std::string calol1_algo_payload;
215  std::string calol2_top_key, calol2_algo_key, calol2_hw_key;
216  std::string calol2_hw_payload;
217  std::map<std::string,std::string> calol2_algo_payloads; // key -> XML payload
218  try {
219 
220  std::map<std::string,std::string> topKeys =
221  l1t::OnlineDBqueryHelper::fetch( {"CALOL1_KEY","CALOL2_KEY"},
222  "L1_TRG_CONF_KEYS",
223  tscKey,
225  );
226 
227  if( exclusiveLayer == 0 || exclusiveLayer == 1 ){
228 
229  calol1_top_key = topKeys["CALOL1_KEY"];
230 
231  calol1_algo_key = l1t::OnlineDBqueryHelper::fetch( {"ALGO"},
232  "CALOL1_KEYS",
233  calol1_top_key,
235  ) ["ALGO"];
236 
237  calol1_algo_payload = l1t::OnlineDBqueryHelper::fetch( {"CONF"},
238  "CALOL1_CLOBS",
239  calol1_algo_key,
241  ) ["CONF"];
242  }
243 
244  if( exclusiveLayer == 0 || exclusiveLayer == 2 ){
245 
246  calol2_top_key = topKeys["CALOL2_KEY"];
247 
248  std::map<std::string,std::string> calol2_keys =
249  l1t::OnlineDBqueryHelper::fetch( {"ALGO","HW"},
250  "CALOL2_KEYS",
251  calol2_top_key,
253  );
254 
255  calol2_hw_key = calol2_keys["HW"];
256  calol2_hw_payload = l1t::OnlineDBqueryHelper::fetch( {"CONF"},
257  "CALOL2_CLOBS",
258  calol2_hw_key,
260  ) ["CONF"];
261 
262  calol2_algo_key = calol2_keys["ALGO"];
263 
264  std::map<std::string,std::string> calol2_algo_keys =
265  l1t::OnlineDBqueryHelper::fetch( {"DEMUX","MPS_COMMON","MPS_JET","MP_EGAMMA","MP_SUM","MP_TAU"},
266  "CALOL2_ALGO_KEYS",
267  calol2_algo_key,
269  );
270 
271  for(auto &key : calol2_algo_keys)
272  calol2_algo_payloads[ key.second ] =
274  "CALOL2_CLOBS",
275  key.second,
277  ) ["CONF"];
278  }
279 
280  } catch ( std::runtime_error &e ) {
281  edm::LogError( "L1-O2O: L1TCaloParamsOnlineProd" ) << e.what();
282  throw std::runtime_error("Broken key");
283  }
284 
285  if( exclusiveLayer == 0 || exclusiveLayer == 2 ){
286  // for debugging purposes dump the configs to local files
287  for(auto &conf : calol2_algo_payloads){
288  std::ofstream output(std::string("/tmp/").append(conf.first.substr(0,conf.first.find("/"))).append(".xml"));
289  output<<conf.second;
290  output.close();
291  }
292  std::ofstream output(std::string("/tmp/").append(calol2_hw_key.substr(0,calol2_hw_key.find("/"))).append(".xml"));
293  output << calol2_hw_payload;
294  output.close();
295  }
296  if( exclusiveLayer == 0 || exclusiveLayer == 1 )
297  {
298  std::ofstream output(std::string("/tmp/").append(calol1_algo_key.substr(0,calol1_algo_key.find("/"))).append(".xml"));
299  output << calol1_algo_payload;
300  output.close();
301  }
302 
303  l1t::CaloParamsHelperO2O m_params_helper( *(baseSettings.product()) );
304 
305 
306  if( exclusiveLayer == 0 || exclusiveLayer == 1 ){
307  l1t::XmlConfigParser xmlReader1;
308  xmlReader1.readDOMFromString( calol1_algo_payload );
309 
310  l1t::TriggerSystem calol1;
311  calol1.addProcessor("processors", "processors","-1","-1");
312  xmlReader1.readRootElement( calol1, "calol1" );
313  calol1.setConfigured();
314 
315  std::map<std::string, l1t::Parameter> calol1_conf = calol1.getParameters("processors");
316  std::map<std::string, l1t::Mask> calol1_rs ;//= calol1.getMasks ("processors");
317 
318  if( !readCaloLayer1OnlineSettings(m_params_helper, calol1_conf, calol1_rs) )
319  throw std::runtime_error("Parsing error for CaloLayer1");
320  }
321 
322 
323  if( exclusiveLayer == 0 || exclusiveLayer == 2 ){
324  l1t::TriggerSystem calol2;
325 
326  l1t::XmlConfigParser xmlReader2;
327  xmlReader2.readDOMFromString( calol2_hw_payload );
328  xmlReader2.readRootElement( calol2, "calol2" );
329 
330  for(auto &conf : calol2_algo_payloads){
331  xmlReader2.readDOMFromString( conf.second );
332  xmlReader2.readRootElement( calol2, "calol2" );
333  }
334 
335 // calol2.setSystemId("calol2");
336  calol2.setConfigured();
337 
338  // Perhaps layer 2 has to look at settings for demux and mp separately? // => No demux settings required
339  std::map<std::string, l1t::Parameter> calol2_conf = calol2.getParameters("MP1");
340  std::map<std::string, l1t::Mask> calol2_rs ;//= calol2.getMasks ("processors");
341 
342  if( !readCaloLayer2OnlineSettings(m_params_helper, calol2_conf, calol2_rs) )
343  throw std::runtime_error("Parsing error for CaloLayer2");
344  }
345 
346 
347  std::shared_ptr< l1t::CaloParams > retval = std::make_shared< l1t::CaloParams >( m_params_helper ) ;
348  return retval;
349 }
void setConfigured(bool state=true) noexcept
Definition: TriggerSystem.h:73
void readDOMFromString(const std::string &str, xercesc::DOMDocument *&doc)
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 get(HolderT &iHolder) const
bool readCaloLayer2OnlineSettings(l1t::CaloParamsHelperO2O &paramsHelper, std::map< std::string, l1t::Parameter > &conf, std::map< std::string, l1t::Mask > &)
const std::map< std::string, Parameter > & getParameters(const char *processor) const
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 addProcessor(const char *processor, const char *role, const char *crate, const char *slot)
bool L1TCaloParamsOnlineProd::readCaloLayer1OnlineSettings ( l1t::CaloParamsHelperO2O paramsHelper,
std::map< std::string, l1t::Parameter > &  conf,
std::map< std::string, l1t::Mask > &   
)
private

Definition at line 36 of file L1TCaloParamsOnlineProd.cc.

References MessageLogger_cfi::cerr, l1t::CaloParamsHelperO2O::setLayer1ECalScaleETBins(), l1t::CaloParamsHelperO2O::setLayer1ECalScaleFactors(), l1t::CaloParamsHelperO2O::setLayer1ECalScalePhiBins(), l1t::CaloParamsHelperO2O::setLayer1HCalScaleETBins(), l1t::CaloParamsHelperO2O::setLayer1HCalScaleFactors(), l1t::CaloParamsHelperO2O::setLayer1HCalScalePhiBins(), l1t::CaloParamsHelperO2O::setLayer1HFScaleETBins(), l1t::CaloParamsHelperO2O::setLayer1HFScaleFactors(), l1t::CaloParamsHelperO2O::setLayer1HFScalePhiBins(), and l1t::CaloParamsHelperO2O::setLayer1SecondStageLUT().

Referenced by newObject().

37  {
38  const char * expectedParams[] = {
39  "layer1ECalScaleFactors",
40  "layer1HCalScaleFactors",
41  "layer1HFScaleFactors",
42  "layer1ECalScaleETBins",
43  "layer1HCalScaleETBins",
44  "layer1HFScaleETBins"
45  // Optional params
46  //"layer1ECalScalePhiBins",
47  //"layer1HCalScalePhiBins",
48  //"layer1HFScalePhiBins",
49  //"layer1SecondStageLUT"
50  };
51  for (const auto param : expectedParams) {
52  if ( conf.find(param) == conf.end() ) {
53  std::cerr << "Unable to locate expected CaloLayer1 parameter: " << param << " in L1 settings payload!";
54  return false;
55  }
56  }
57  // Layer 1 LUT specification
58  paramsHelper.setLayer1ECalScaleFactors((conf["layer1ECalScaleFactors"].getVector<double>()));
59  paramsHelper.setLayer1HCalScaleFactors((conf["layer1HCalScaleFactors"].getVector<double>()));
60  paramsHelper.setLayer1HFScaleFactors ((conf["layer1HFScaleFactors"] .getVector<double>()));
61  paramsHelper.setLayer1ECalScaleETBins(conf["layer1ECalScaleETBins"].getVector<int>());
62  paramsHelper.setLayer1HCalScaleETBins(conf["layer1HCalScaleETBins"].getVector<int>());
63  paramsHelper.setLayer1HFScaleETBins (conf["layer1HFScaleETBins"] .getVector<int>());
64 
65  if( conf.find("layer1ECalScalePhiBins") != conf.end() )
66  paramsHelper.setLayer1ECalScalePhiBins(conf["layer1ECalScalePhiBins"].getVector<unsigned int>()); // std::vector<unsigned>(36,0)
67  if( conf.find("layer1HCalScalePhiBins") != conf.end() )
68  paramsHelper.setLayer1HCalScalePhiBins(conf["layer1HCalScalePhiBins"].getVector<unsigned int>());
69  if( conf.find("layer1HFScalePhiBins") != conf.end() )
70  paramsHelper.setLayer1HFScalePhiBins (conf["layer1HFScalePhiBins"] .getVector<unsigned int>());
71  if( conf.find("layer1SecondStageLUT") != conf.end() )
72  paramsHelper.setLayer1SecondStageLUT(conf["layer1SecondStageLUT"].getVector<unsigned int>() );
73 
74  return true;
75 }
void setLayer1HFScalePhiBins(const std::vector< unsigned > params)
void setLayer1HCalScaleFactors(const std::vector< double > params)
void setLayer1ECalScaleFactors(const std::vector< double > params)
void setLayer1SecondStageLUT(const std::vector< unsigned > &lut)
void setLayer1HCalScalePhiBins(const std::vector< unsigned > params)
void setLayer1HCalScaleETBins(const std::vector< int > params)
void setLayer1HFScaleETBins(const std::vector< int > params)
void setLayer1ECalScaleETBins(const std::vector< int > params)
void setLayer1ECalScalePhiBins(const std::vector< unsigned > params)
void setLayer1HFScaleFactors(const std::vector< double > params)
bool L1TCaloParamsOnlineProd::readCaloLayer2OnlineSettings ( l1t::CaloParamsHelperO2O paramsHelper,
std::map< std::string, l1t::Parameter > &  conf,
std::map< std::string, l1t::Mask > &   
)
private

"tauIsoLUT2",

Definition at line 78 of file L1TCaloParamsOnlineProd.cc.

References MessageLogger_cfi::cerr, l1t::convertToLUT(), mps_fire::i, l1t::CaloParamsHelperO2O::setEgBypassEGVetos(), l1t::CaloParamsHelperO2O::setEgBypassExtHOverE(), l1t::CaloParamsHelperO2O::setEgCalibrationLUT(), l1t::CaloParamsHelperO2O::setEgEtaCut(), l1t::CaloParamsHelperO2O::setEgHOverEcutBarrel(), l1t::CaloParamsHelperO2O::setEgHOverEcutEndcap(), l1t::CaloParamsHelperO2O::setEgIsolationLUT(), l1t::CaloParamsHelperO2O::setEgIsolationLUT2(), l1t::CaloParamsHelperO2O::setEgMaxPtHOverE(), l1t::CaloParamsHelperO2O::setEgNeighbourThreshold(), l1t::CaloParamsHelperO2O::setEgSeedThreshold(), l1t::CaloParamsHelperO2O::setEtSumEcalSumCalibrationLUT(), l1t::CaloParamsHelperO2O::setEtSumEcalSumPUSLUT(), l1t::CaloParamsHelperO2O::setEtSumEtaMax(), l1t::CaloParamsHelperO2O::setEtSumEttCalibrationLUT(), l1t::CaloParamsHelperO2O::setEtSumEtThreshold(), l1t::CaloParamsHelperO2O::setEtSumEttPUSLUT(), l1t::CaloParamsHelperO2O::setEtSumMetPUSLUT(), l1t::CaloParamsHelperO2O::setEtSumXCalibrationLUT(), l1t::CaloParamsHelperO2O::setIsoTauEtaMax(), l1t::CaloParamsHelperO2O::setJetBypassPUS(), l1t::CaloParamsHelperO2O::setJetCalibrationLUT(), l1t::CaloParamsHelperO2O::setJetSeedThreshold(), l1t::CaloParamsHelperO2O::setTauCalibrationLUT(), l1t::CaloParamsHelperO2O::setTauIsolationLUT(), l1t::CaloParamsHelperO2O::setTauIsolationLUT2(), l1t::CaloParamsHelperO2O::setTauNeighbourThreshold(), l1t::CaloParamsHelperO2O::setTauSeedThreshold(), and l1t::CaloParamsHelperO2O::setTauTrimmingShapeVetoLUT().

Referenced by newObject().

79  {
80  const char * expectedParams[] = {
81  "leptonSeedThreshold",
82  "leptonTowerThreshold",
83  "pileUpTowerThreshold",
84  "jetSeedThreshold",
85  "jetMaxEta",
86  "HTMHT_maxJetEta",
87  "HT_jetThreshold",
88  "MHT_jetThreshold",
89  "jetEnergyCalibLUT",
90  "ETMET_maxTowerEta",
91  "ET_energyCalibLUT",
92  "ecalET_energyCalibLUT",
93  "METX_energyCalibLUT",
94  "METY_energyCalibLUT",
95  "egammaRelaxationThreshold",
96  "egammaMaxEta",
97  "egammaEnergyCalibLUT",
98  "egammaIsoLUT1",
99  "egammaIsoLUT2",
100  "tauMaxEta",
101  "tauEnergyCalibLUT",
102  "tauIsoLUT1",
104  "towerCountThreshold",
105  "towerCountMaxEta",
106  "ET_towerThresholdLUT",
107  "MET_towerThresholdLUT",
108  "ecalET_towerThresholdLUT",
109  "jetBypassPileUpSub",
110  "egammaBypassCuts",
111  "egammaHOverECut_iEtaLT15",
112  "egammaHOverECut_iEtaGTEq15",
113  "egammaBypassExtendedHOverE"
114  };
115  for (const auto param : expectedParams) {
116  if ( conf.find(param) == conf.end() ) {
117  std::cerr << "Unable to locate expected CaloLayer2 parameter: " << param << " in L1 settings payload!";
118  return false;
119  }
120  }
121  // Layer 2 params specification
122  paramsHelper.setEgSeedThreshold((conf["leptonSeedThreshold"].getValue<int>())/2);
123  paramsHelper.setTauSeedThreshold((conf["leptonSeedThreshold"].getValue<int>())/2);
124  paramsHelper.setEgNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>())/2);
125  paramsHelper.setTauNeighbourThreshold((conf["leptonTowerThreshold"].getValue<int>())/2);
126  paramsHelper.setJetSeedThreshold((conf["jetSeedThreshold"].getValue<int>())/2);
127  paramsHelper.setJetBypassPUS(conf["jetBypassPileUpSub"].getValue<bool>());
128  paramsHelper.setEgBypassEGVetos(conf["egammaBypassCuts"].getValue<bool>());
129  paramsHelper.setEgHOverEcutBarrel(conf["egammaHOverECut_iEtaLT15"].getValue<int>());
130  paramsHelper.setEgHOverEcutEndcap(conf["egammaHOverECut_iEtaGTEq15"].getValue<int>());
131 
132 
133  // Currently not used // paramsHelper.setEgPileupTowerThresh((conf["pileUpTowerThreshold"].getValue<int>()));
134  // Currently not used // paramsHelper.setTauPileupTowerThresh((conf["pileUpTowerThreshold"].getValue<int>()));
135  // Currently not used // paramsHelper.setJetMaxEta((conf["jetMaxEta"].getValue<int>()));
136 
137  std::vector<int> etSumEtaMax;
138  std::vector<int> etSumEtThresh;
139 
140  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
141  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
142  etSumEtaMax.push_back(conf["ETMET_maxTowerEta"].getValue<int>());
143  etSumEtaMax.push_back(conf["HTMHT_maxJetEta"].getValue<int>());
144  etSumEtaMax.push_back(conf["towerCountMaxEta"].getValue<int>());
145 
146  etSumEtThresh.push_back(0); //conf["ET_towerThreshold"].getValue<int>()/2); // ETT tower threshold
147  etSumEtThresh.push_back(conf["HT_jetThreshold"].getValue<int>()/2);
148  etSumEtThresh.push_back(0); //conf["MET_towerThreshold"].getValue<int>()/2); // ETM tower threshold
149  etSumEtThresh.push_back(conf["MHT_jetThreshold"].getValue<int>()/2);
150  etSumEtThresh.push_back(conf["ET_towerThreshold"].getValue<int>()/2);
151 
152  for (uint i=0; i<5; ++i) {
153  paramsHelper.setEtSumEtaMax(i, etSumEtaMax.at(i));
154  paramsHelper.setEtSumEtThreshold(i, etSumEtThresh.at(i));
155  }
156 
157  paramsHelper.setJetCalibrationLUT ( l1t::convertToLUT( conf["jetEnergyCalibLUT"].getVector<uint32_t>() ) );
158 
159  paramsHelper.setEtSumMetPUSLUT ( l1t::convertToLUT( conf["MET_towerThresholdLUT"].getVector<int>() ) );
160  paramsHelper.setEtSumEttPUSLUT ( l1t::convertToLUT( conf["ET_towerThresholdLUT"].getVector<int>() ) );
161  paramsHelper.setEtSumEcalSumPUSLUT( l1t::convertToLUT( conf["ecalET_towerThresholdLUT"].getVector<int>() ) );
162 
163  paramsHelper.setEtSumEttCalibrationLUT ( l1t::convertToLUT( conf["ET_energyCalibLUT"].getVector<int>() ) );
164  paramsHelper.setEtSumEcalSumCalibrationLUT( l1t::convertToLUT( conf["ecalET_energyCalibLUT"].getVector<int>() ) );
165  paramsHelper.setEtSumXCalibrationLUT ( l1t::convertToLUT( conf["METX_energyCalibLUT"].getVector<int>() ) );
166 
167  paramsHelper.setEgMaxPtHOverE((conf["egammaRelaxationThreshold"].getValue<int>())/2.);
168  paramsHelper.setEgEtaCut((conf["egammaMaxEta"].getValue<int>()));
169  paramsHelper.setEgCalibrationLUT ( l1t::convertToLUT( conf["egammaEnergyCalibLUT"].getVector<int>() ) );
170  paramsHelper.setEgIsolationLUT ( l1t::convertToLUT( conf["egammaIsoLUT1"].getVector<int>() ) );
171  paramsHelper.setEgIsolationLUT2 ( l1t::convertToLUT( conf["egammaIsoLUT2"].getVector<int>() ) );
172 
173  paramsHelper.setIsoTauEtaMax((conf["tauMaxEta"].getValue<int>()));
174 
175  paramsHelper.setTauCalibrationLUT( l1t::convertToLUT( conf["tauEnergyCalibLUT"].getVector<int>() ) );
176  paramsHelper.setTauIsolationLUT ( l1t::convertToLUT( conf["tauIsoLUT1"].getVector<int>() ) );
177  if( conf.find("tauIsoLUT2") != conf.end() )
178  paramsHelper.setTauIsolationLUT2 ( l1t::convertToLUT( conf["tauIsoLUT2"].getVector<int>() ) );
179 
180  paramsHelper.setEgBypassExtHOverE( conf["egammaBypassExtendedHOverE"].getValue<bool>() );
181 
182  if( conf.find("P_TauTrimming_13to8.mif") != conf.end() )
183  paramsHelper.setTauTrimmingShapeVetoLUT( l1t::convertToLUT( conf["P_TauTrimming_13to8.mif"].getVector<int>() ) );
184 
185  return true;
186 }
void setEtSumXCalibrationLUT(const l1t::LUT &lut)
void setTauIsolationLUT(const l1t::LUT &lut)
void setEgCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
void setJetCalibrationLUT(const l1t::LUT &lut)
void setEgNeighbourThreshold(double thresh)
void setEtSumEcalSumCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
void setTauCalibrationLUT(const l1t::LUT &lut)
void setJetSeedThreshold(double thresh)
void setEtSumEtaMax(unsigned isum, int eta)
void setEgIsolationLUT(const l1t::LUT &lut)
void setTauSeedThreshold(double thresh)
void setTauNeighbourThreshold(double thresh)
void setEgIsolationLUT2(const l1t::LUT &lut)
l1t::LUT convertToLUT(const std::vector< uint64_t > &v, int padding=-1) noexcept
Definition: ConvertToLUT.h:10
void setTauTrimmingShapeVetoLUT(const l1t::LUT &lut)
void setEgBypassEGVetos(unsigned flag)
void setEtSumEcalSumPUSLUT(const l1t::LUT &lut)
void setEgSeedThreshold(double thresh)
void setEtSumEtThreshold(unsigned isum, double thresh)
void setEgBypassExtHOverE(unsigned flag)
void setEgMaxPtHOverE(double thresh)
void setEtSumMetPUSLUT(const l1t::LUT &lut)
void setTauIsolationLUT2(const l1t::LUT &lut)
void setJetBypassPUS(unsigned flag)

Member Data Documentation

unsigned int L1TCaloParamsOnlineProd::exclusiveLayer
private

Definition at line 22 of file L1TCaloParamsOnlineProd.cc.

Referenced by L1TCaloParamsOnlineProd(), and newObject().