CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1TMuonBarrelParamsESProducer Class Reference
Inheritance diagram for L1TMuonBarrelParamsESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef std::shared_ptr< L1TMuonBarrelParamsReturnType
 
- 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
 

Public Member Functions

int getPtLutThreshold (int, std::vector< int > &) const
 
 L1TMuonBarrelParamsESProducer (const edm::ParameterSet &)
 
int load_ext (std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &, unsigned short int, unsigned short int)
 
int load_phi (std::vector< LUT > &, unsigned short int, unsigned short int, std::string)
 
int load_pt (std::vector< LUT > &, std::vector< int > &, unsigned short int, std::string)
 
ReturnType produce (const L1TMuonBarrelParamsRcd &)
 
 ~L1TMuonBarrelParamsESProducer ()
 
- 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 Attributes

L1TMuonBarrelParamsHelper m_params_helper
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- 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 &)
 

Detailed Description

Definition at line 39 of file L1TMuonBarrelParamsESProducer.cc.

Member Typedef Documentation

Definition at line 48 of file L1TMuonBarrelParamsESProducer.cc.

Constructor & Destructor Documentation

L1TMuonBarrelParamsESProducer::L1TMuonBarrelParamsESProducer ( const edm::ParameterSet iConfig)

if configDB

Definition at line 67 of file L1TMuonBarrelParamsESProducer.cc.

References L1TMuonBarrelParamsHelper::configFromDB(), L1TMuonBarrelParamsHelper::configFromPy(), l1t::TriggerSystem::configureSystemFromFiles(), gather_cfg::cout, edm::FileInPath::fullPath(), hgcalDigitizer_cfi::fwVersion, edm::ParameterSet::getParameter(), m_params_helper, edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

68 {
70  //the following line is needed to tell the framework what
71  // data is being produced
72  setWhatProduced(this);
73  // Firmware version
74  unsigned fwVersion = iConfig.getParameter<unsigned>("fwVersion");
75  std::string AssLUTpath = iConfig.getParameter<std::string>("AssLUTPath");
76  //m_params.setAssLUTPath(AssLUTpath);
77 
78  // int PT_Assignment_nbits_Phi = iConfig.getParameter<int>("PT_Assignment_nbits_Phi");
79  // int PT_Assignment_nbits_PhiB = iConfig.getParameter<int>("PT_Assignment_nbits_PhiB");
80  // int PHI_Assignment_nbits_Phi = iConfig.getParameter<int>("PHI_Assignment_nbits_Phi");
81  // int PHI_Assignment_nbits_PhiB = iConfig.getParameter<int>("PHI_Assignment_nbits_PhiB");
82  // int Extrapolation_nbits_Phi = iConfig.getParameter<int>("Extrapolation_nbits_Phi");
83  // int Extrapolation_nbits_PhiB = iConfig.getParameter<int>("Extrapolation_nbits_PhiB");
84  // int BX_min = iConfig.getParameter<int>("BX_min");
85  // int BX_max = iConfig.getParameter<int>("BX_max");
86  // int Extrapolation_Filter = iConfig.getParameter<int>("Extrapolation_Filter");
87  // int OutOfTime_Filter_Window = iConfig.getParameter<int>("OutOfTime_Filter_Window");
88  // bool OutOfTime_Filter = iConfig.getParameter<bool>("OutOfTime_Filter");
89  // bool Open_LUTs = iConfig.getParameter<bool>("Open_LUTs");
90  // bool EtaTrackFinder = iConfig.getParameter<bool>("EtaTrackFinder");
91  // bool Extrapolation_21 = iConfig.getParameter<bool>("Extrapolation_21");
92  bool configFromXML = iConfig.getParameter<bool>("configFromXML");
93  // bool DisableNewAlgo = iConfig.getParameter<bool>("DisableNewAlgo");
94 
95  std::map<std::string, int> allInts;
96  std::map<std::string, bool> allBools;
97  std::map<std::string, std::vector<std::string> > allMasks;
98 
99  allInts["PT_Assignment_nbits_Phi"] = iConfig.getParameter<int>("PT_Assignment_nbits_Phi");
100  allInts["PT_Assignment_nbits_PhiB"] = iConfig.getParameter<int>("PT_Assignment_nbits_PhiB");
101  allInts["PHI_Assignment_nbits_Phi"] = iConfig.getParameter<int>("PHI_Assignment_nbits_Phi");
102  allInts["PHI_Assignment_nbits_PhiB"] = iConfig.getParameter<int>("PHI_Assignment_nbits_PhiB");
103  allInts["Extrapolation_nbits_Phi"] = iConfig.getParameter<int>("Extrapolation_nbits_Phi");
104  allInts["Extrapolation_nbits_PhiB"] = iConfig.getParameter<int>("Extrapolation_nbits_PhiB");
105  allInts["BX_min"] = iConfig.getParameter<int>("BX_min");
106  allInts["BX_max"] = iConfig.getParameter<int>("BX_max");
107  allInts["Extrapolation_Filter"] = iConfig.getParameter<int>("Extrapolation_Filter");
108  allInts["OutOfTime_Filter_Window"] = iConfig.getParameter<int>("OutOfTime_Filter_Window");
109  allBools["OutOfTime_Filter"] = iConfig.getParameter<bool>("OutOfTime_Filter");
110  allBools["Open_LUTs"] = iConfig.getParameter<bool>("Open_LUTs");
111  allBools["EtaTrackFinder"] = iConfig.getParameter<bool>("EtaTrackFinder");
112  allBools["Extrapolation_21"] = iConfig.getParameter<bool>("Extrapolation_21");
113  allBools["configFromXML"] = iConfig.getParameter<bool>("configFromXML");
114  allBools["DisableNewAlgo"] = iConfig.getParameter<bool>("DisableNewAlgo");
115 
116  allMasks["mask_phtf_st1"] = iConfig.getParameter< std::vector <string> >("mask_phtf_st1");
117  allMasks["mask_phtf_st2"] = iConfig.getParameter< std::vector <string> >("mask_phtf_st2");
118  allMasks["mask_phtf_st3"] = iConfig.getParameter< std::vector <string> >("mask_phtf_st3");
119  allMasks["mask_phtf_st4"] = iConfig.getParameter< std::vector <string> >("mask_phtf_st4");
120 
121  allMasks["mask_ettf_st1"] = iConfig.getParameter< std::vector <string> >("mask_ettf_st1");
122  allMasks["mask_ettf_st2"] = iConfig.getParameter< std::vector <string> >("mask_ettf_st2");
123  allMasks["mask_ettf_st3"] = iConfig.getParameter< std::vector <string> >("mask_ettf_st3");
124 
125 /*
126  m_params.set_PT_Assignment_nbits_Phi(PT_Assignment_nbits_Phi);
127  m_params.set_PT_Assignment_nbits_PhiB(PT_Assignment_nbits_PhiB);
128  m_params.set_PHI_Assignment_nbits_Phi(PHI_Assignment_nbits_Phi);
129  m_params.set_PHI_Assignment_nbits_PhiB(PHI_Assignment_nbits_PhiB);
130  m_params.set_Extrapolation_nbits_Phi(Extrapolation_nbits_Phi);
131  m_params.set_Extrapolation_nbits_PhiB(Extrapolation_nbits_PhiB);
132  m_params.set_BX_min(BX_min);
133  m_params.set_BX_max(BX_max);
134  m_params.set_Extrapolation_Filter(Extrapolation_Filter);
135  m_params.set_OutOfTime_Filter_Window(OutOfTime_Filter_Window);
136  m_params.set_OutOfTime_Filter(OutOfTime_Filter);
137  m_params.set_Open_LUTs(Open_LUTs);
138  m_params.set_EtaTrackFinder(EtaTrackFinder);
139  m_params.set_Extrapolation_21(Extrapolation_21);
140  m_params.setFwVersion(fwVersion);
141  m_params.set_DisableNewAlgo(DisableNewAlgo);
142 
143 
145  std::vector<LUT> pta_lut(0); pta_lut.reserve(19);
146  std::vector<int> pta_threshold(6); pta_threshold.reserve(9);
147  if ( load_pt(pta_lut,pta_threshold, PT_Assignment_nbits_Phi, AssLUTpath) != 0 ) {
148  cout << "Can not open files to load pt-assignment look-up tables for L1TMuonBarrelTrackProducer!" << endl;
149  }
150  m_params.setpta_lut(pta_lut);
151  m_params.setpta_threshold(pta_threshold);
152 
154  std::vector<LUT> phi_lut(0); phi_lut.reserve(2);
155  if ( load_phi(phi_lut, PHI_Assignment_nbits_Phi, PHI_Assignment_nbits_PhiB, AssLUTpath) != 0 ) {
156  cout << "Can not open files to load phi-assignment look-up tables for L1TMuonBarrelTrackProducer!" << endl;
157  }
158  m_params.setphi_lut(phi_lut);
159 
160 
161 
162 
163  m_params.l1mudttfparams.reset();
164 
165  std::vector <std::string> mask_phtf_st1 = iConfig.getParameter< std::vector <string> >("mask_phtf_st1");
166  std::vector <std::string> mask_phtf_st2 = iConfig.getParameter< std::vector <string> >("mask_phtf_st2");
167  std::vector <std::string> mask_phtf_st3 = iConfig.getParameter< std::vector <string> >("mask_phtf_st3");
168  std::vector <std::string> mask_phtf_st4 = iConfig.getParameter< std::vector <string> >("mask_phtf_st4");
169 
170  std::vector <std::string> mask_ettf_st1 = iConfig.getParameter< std::vector <string> >("mask_ettf_st1");
171  std::vector <std::string> mask_ettf_st2 = iConfig.getParameter< std::vector <string> >("mask_ettf_st2");
172  std::vector <std::string> mask_ettf_st3 = iConfig.getParameter< std::vector <string> >("mask_ettf_st3");
173 
174  for( int wh=-3; wh<4; wh++ ) {
175  int sec = 0;
176  for(char& c : mask_phtf_st1[wh+3]) {
177  int mask = c - '0';
178  m_params.l1mudttfmasks.set_inrec_chdis_st1(wh,sec,mask);
179  sec++;
180  }
181  sec = 0;
182  for(char& c : mask_phtf_st2[wh+3]) {
183  int mask = c - '0';
184  m_params.l1mudttfmasks.set_inrec_chdis_st2(wh,sec,mask);
185  sec++;
186  }
187  sec = 0;
188  for(char& c : mask_phtf_st3[wh+3]) {
189  int mask = c - '0';
190  m_params.l1mudttfmasks.set_inrec_chdis_st3(wh,sec,mask);
191  sec++;
192  }
193  sec = 0;
194  for(char& c : mask_phtf_st4[wh+3]) {
195  int mask = c - '0';
196  m_params.l1mudttfmasks.set_inrec_chdis_st4(wh,sec,mask);
197  sec++;
198  }
199  sec = 0;
200  for(char& c : mask_ettf_st1[wh+3]) {
201  int mask = c - '0';
202  m_params.l1mudttfmasks.set_etsoc_chdis_st1(wh,sec,mask);
203  sec++;
204  }
205  sec = 0;
206  for(char& c : mask_ettf_st2[wh+3]) {
207  int mask = c - '0';
208  m_params.l1mudttfmasks.set_etsoc_chdis_st2(wh,sec,mask);
209  sec++;
210  }
211  sec = 0;
212  for(char& c : mask_ettf_st3[wh+3]) {
213  int mask = c - '0';
214  m_params.l1mudttfmasks.set_etsoc_chdis_st3(wh,sec,mask);
215  //Not used in BMTF - mask
216  m_params.l1mudttfmasks.set_inrec_chdis_csc(wh,sec,true);
217  sec++;
218  }
219 
220  }
221 
222 
224  std::vector<L1TMuonBarrelParams::LUTParams::extLUT> ext_lut(0); ext_lut.reserve(12);
225  if ( load_ext(ext_lut, PHI_Assignment_nbits_Phi, PHI_Assignment_nbits_PhiB) != 0 ) {
226  cout << "Can not open files to load extrapolation look-up tables for L1TMuonBarrelTrackProducer!" << endl;
227  }
228  m_params.setext_lut(ext_lut);
229 
230  //m_params.l1mudttfextlut.load();
231 
232  */
233 
234  m_params_helper.configFromPy(allInts, allBools, allMasks, fwVersion, AssLUTpath);
235  if(configFromXML){
236  cout<<"Configuring BMTF Emulator from xml files.\n";
237  edm::FileInPath hwXmlFile(iConfig.getParameter<std::string>("hwXmlFile"));
238  edm::FileInPath topCfgXmlFile(iConfig.getParameter<std::string>("topCfgXmlFile"));
239  std::string xmlCfgKey = iConfig.getParameter<std::string>("xmlCfgKey");
240 
241  l1t::TriggerSystem trgSys;
242  trgSys.configureSystemFromFiles(hwXmlFile.fullPath().c_str(),topCfgXmlFile.fullPath().c_str(),xmlCfgKey.c_str());
243 
244  /* std::map<std::string, std::string> procRole = trgSys.getProcRole();
245 
246  for(auto it_proc=procRole.begin(); it_proc!=procRole.end(); it_proc++ ){
247 
248  std::string procId = it_proc->first;
249 
250  std::map<std::string, l1t::Setting> settings = trgSys.getSettings(procId);
251  std::vector<l1t::TableRow> tRow = settings["regTable"].getTableRows();
252  for(auto it=tRow.begin(); it!=tRow.end(); it++)
253  {
254  if (it->getRowValue<std::string>("register_path").find("open_lut") != std::string::npos){
255  //std::cout << "Value is: " << it->getRowValue<bool>("register_value") << std::endl;
256  m_params.set_Open_LUTs(it->getRowValue<bool>("register_value"));
257  }
258  if (it->getRowValue<std::string>("register_path").find("sel_21") != std::string::npos){
259  //std::cout << "Value is: " << it->getRowValue<bool>("register_value") << std::endl;
260  m_params.set_Extrapolation_21(it->getRowValue<bool>("register_value"));
261  }
262 
263  if (it->getRowValue<std::string>("register_path").find("dis_newalgo") != std::string::npos){
264  //std::cout << "Value is: " << it->getRowValue<int>("register_value") << std::endl;
265  //int fwv = (it->getRowValue<int>("register_value")==1) ? 1 : 2;
266  //m_params.setFwVersion(fwv);
267  bool disnewalgo = (it->getRowValue<int>("register_value")==1);
268  m_params.set_DisableNewAlgo(disnewalgo);
269  }
270 
271  string masks[5] = {"mask_ctrl_N2", "mask_ctrl_N1", "mask_ctrl_0", "mask_ctrl_P1", "mask_ctrl_P2"};
272 
273  for(int m=0; m<5; m++){
274 
275  if (it->getRowValue<std::string>("register_path").find(masks[m]) != std::string::npos){
276  string mask_ctrl = it->getRowValue<string>("register_value");
277  const char *hexstring = mask_ctrl.c_str();
279  int mask = (int)strtol((hexstring+7), NULL, 16);
280  int mask_all = (int)strtol((hexstring), NULL, 16);
282  if(!( mask_all==0x111111 || mask_all==0x222222 || mask_all==0x333333 || mask_all==0x444444 ||
283  mask_all==0x555555 || mask_all==0x666666 || mask_all==0x777777) )
284  cerr<<"BMTF: Cannot re-emulate properly. Individual link masking cannot be handled."<<endl;
285 
286  if((mask&1)>0) {
287  for(int sec=0; sec<12; sec++){
288  if(masks[m]=="mask_ctrl_N2"){
289  m_params.l1mudttfmasks.set_inrec_chdis_st1(-3,sec,true);
290  m_params.l1mudttfmasks.set_etsoc_chdis_st1(-3,sec,true);
291  }
292  if(masks[m]=="mask_ctrl_N1"){
293  m_params.l1mudttfmasks.set_inrec_chdis_st1(-2,sec,true);
294  m_params.l1mudttfmasks.set_etsoc_chdis_st1(-2,sec,true);
295  }
296 
297  if(masks[m]=="mask_ctrl_0"){
298  m_params.l1mudttfmasks.set_inrec_chdis_st1(-1,sec,true);
299  m_params.l1mudttfmasks.set_inrec_chdis_st1(1,sec,true);
300  m_params.l1mudttfmasks.set_etsoc_chdis_st1(-1,sec,true);
301  m_params.l1mudttfmasks.set_etsoc_chdis_st1(1,sec,true);
302  }
303  if(masks[m]=="mask_ctrl_P1"){
304  m_params.l1mudttfmasks.set_inrec_chdis_st1(2,sec,true);
305  m_params.l1mudttfmasks.set_etsoc_chdis_st1(2,sec,true);
306  }
307  if(masks[m]=="mask_ctrl_P2"){
308  m_params.l1mudttfmasks.set_inrec_chdis_st1(3,sec,true);
309  m_params.l1mudttfmasks.set_etsoc_chdis_st1(3,sec,true);
310  }
311  }
312 
313  }
314 
315  if((mask&2)>0) {
316  for(int sec=0; sec<12; sec++){
317  if(masks[m]=="mask_ctrl_N2"){
318  m_params.l1mudttfmasks.set_inrec_chdis_st2(-3,sec,true);
319  m_params.l1mudttfmasks.set_etsoc_chdis_st2(-3,sec,true);
320  }
321  if(masks[m]=="mask_ctrl_N1"){
322  m_params.l1mudttfmasks.set_inrec_chdis_st2(-2,sec,true);
323  m_params.l1mudttfmasks.set_etsoc_chdis_st2(-2,sec,true);
324  }
325 
326  if(masks[m]=="mask_ctrl_0"){
327  m_params.l1mudttfmasks.set_inrec_chdis_st2(-1,sec,true);
328  m_params.l1mudttfmasks.set_inrec_chdis_st2(1,sec,true);
329  m_params.l1mudttfmasks.set_etsoc_chdis_st2(-1,sec,true);
330  m_params.l1mudttfmasks.set_etsoc_chdis_st2(1,sec,true);
331  }
332  if(masks[m]=="mask_ctrl_P1"){
333  m_params.l1mudttfmasks.set_inrec_chdis_st2(2,sec,true);
334  m_params.l1mudttfmasks.set_etsoc_chdis_st2(2,sec,true);
335  }
336  if(masks[m]=="mask_ctrl_P2"){
337  m_params.l1mudttfmasks.set_inrec_chdis_st2(3,sec,true);
338  m_params.l1mudttfmasks.set_etsoc_chdis_st2(3,sec,true);
339  }
340  }
341  }
342 
343  if((mask&4)>0) {
344  for(int sec=0; sec<12; sec++){
345  if(masks[m]=="mask_ctrl_N2"){
346  m_params.l1mudttfmasks.set_inrec_chdis_st3(-3,sec,true);
347  m_params.l1mudttfmasks.set_etsoc_chdis_st3(-3,sec,true);
348  }
349  if(masks[m]=="mask_ctrl_N1"){
350  m_params.l1mudttfmasks.set_inrec_chdis_st3(-2,sec,true);
351  m_params.l1mudttfmasks.set_etsoc_chdis_st3(-2,sec,true);
352  }
353 
354  if(masks[m]=="mask_ctrl_0"){
355  m_params.l1mudttfmasks.set_inrec_chdis_st3(-1,sec,true);
356  m_params.l1mudttfmasks.set_inrec_chdis_st3(1,sec,true);
357  m_params.l1mudttfmasks.set_etsoc_chdis_st3(-1,sec,true);
358  m_params.l1mudttfmasks.set_etsoc_chdis_st3(1,sec,true);
359  }
360  if(masks[m]=="mask_ctrl_P1"){
361  m_params.l1mudttfmasks.set_inrec_chdis_st3(2,sec,true);
362  m_params.l1mudttfmasks.set_etsoc_chdis_st3(2,sec,true);
363  }
364  if(masks[m]=="mask_ctrl_P2"){
365  m_params.l1mudttfmasks.set_inrec_chdis_st3(3,sec,true);
366  m_params.l1mudttfmasks.set_etsoc_chdis_st3(3,sec,true);
367  }
368  }
369  }
370 
371  if((mask&8)>0) {
372  for(int sec=0; sec<12; sec++){
373  if(masks[m]=="mask_ctrl_N2"){
374  m_params.l1mudttfmasks.set_inrec_chdis_st4(-3,sec,true);
375  }
376  if(masks[m]=="mask_ctrl_N1"){
377  m_params.l1mudttfmasks.set_inrec_chdis_st4(-2,sec,true);
378  }
379 
380  if(masks[m]=="mask_ctrl_0"){
381  m_params.l1mudttfmasks.set_inrec_chdis_st4(-1,sec,true);
382  m_params.l1mudttfmasks.set_inrec_chdis_st4(1,sec,true);
383  }
384  if(masks[m]=="mask_ctrl_P1"){
385  m_params.l1mudttfmasks.set_inrec_chdis_st4(2,sec,true);
386  }
387  if(masks[m]=="mask_ctrl_P2"){
388  m_params.l1mudttfmasks.set_inrec_chdis_st4(3,sec,true);
389  }
390  }
391  }
392  }///if register path
393  }///for masks
394  }///for it tRow
395  }///for it procRole */
397  }
398  //m_params = cast_to_L1TMuonBarrelParams((L1TMuonBarrelParams_PUBLIC)m_params_helper);
399 
400 
401 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void configureSystemFromFiles(const char *hwCfgFile, const char *topCfgFile, const char *key)
Definition: TriggerSystem.cc:8
void configFromPy(std::map< std::string, int > &allInts, std::map< std::string, bool > &allBools, std::map< std::string, std::vector< std::string > > allMasks, unsigned int fwVersion, const std::string &AssLUTpath)
void configFromDB(l1t::TriggerSystem &trgSys)
L1TMuonBarrelParamsESProducer::~L1TMuonBarrelParamsESProducer ( )

Definition at line 404 of file L1TMuonBarrelParamsESProducer.cc.

405 {
406 
407 }

Member Function Documentation

int L1TMuonBarrelParamsESProducer::getPtLutThreshold ( int  ,
std::vector< int > &   
) const
int L1TMuonBarrelParamsESProducer::load_ext ( std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &  ,
unsigned short  int,
unsigned short  int 
)
int L1TMuonBarrelParamsESProducer::load_phi ( std::vector< LUT > &  ,
unsigned short  int,
unsigned short  int,
std::string   
)
int L1TMuonBarrelParamsESProducer::load_pt ( std::vector< LUT > &  ,
std::vector< int > &  ,
unsigned short  int,
std::string   
)
L1TMuonBarrelParamsESProducer::ReturnType L1TMuonBarrelParamsESProducer::produce ( const L1TMuonBarrelParamsRcd iRecord)

Definition at line 701 of file L1TMuonBarrelParamsESProducer.cc.

References DEFINE_FWK_EVENTSETUP_MODULE, and m_params_helper.

702 {
703  using namespace edm::es;
704 
705  return std::make_shared<L1TMuonBarrelParams>(m_params_helper);
706 }

Member Data Documentation

L1TMuonBarrelParamsHelper L1TMuonBarrelParamsESProducer::m_params_helper
private

Definition at line 53 of file L1TMuonBarrelParamsESProducer.cc.

Referenced by L1TMuonBarrelParamsESProducer(), and produce().