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::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Types

using ReturnType = std::unique_ptr< L1TMuonBarrelParams >
 

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 () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Private Attributes

L1TMuonBarrelParamsHelper m_params_helper
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 38 of file L1TMuonBarrelParamsESProducer.cc.

Member Typedef Documentation

◆ ReturnType

Definition at line 47 of file L1TMuonBarrelParamsESProducer.cc.

Constructor & Destructor Documentation

◆ L1TMuonBarrelParamsESProducer()

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

if configDB

Definition at line 67 of file L1TMuonBarrelParamsESProducer.cc.

References L1TMuonBarrelParamsHelper::configFromDB(), L1TMuonBarrelParamsHelper::configFromPy(), fakeBmtfParams_cff::configFromXML, l1t::TriggerSystem::configureSystemFromFiles(), gather_cfg::cout, amcDumpToRaw_cfi::fwVersion, edm::ParameterSet::getParameter(), fakeGmtParams_cff::hwXmlFile, m_params_helper, edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, fakeGmtParams_cff::topCfgXmlFile, and fakeGmtParams_cff::xmlCfgKey.

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

Definition at line 399 of file L1TMuonBarrelParamsESProducer.cc.

399 {}

Member Function Documentation

◆ getPtLutThreshold()

int L1TMuonBarrelParamsESProducer::getPtLutThreshold ( int  ,
std::vector< int > &   
) const

◆ load_ext()

int L1TMuonBarrelParamsESProducer::load_ext ( std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &  ,
unsigned short  int,
unsigned short  int 
)

◆ load_phi()

int L1TMuonBarrelParamsESProducer::load_phi ( std::vector< LUT > &  ,
unsigned short  int,
unsigned short  int,
std::string   
)

◆ load_pt()

int L1TMuonBarrelParamsESProducer::load_pt ( std::vector< LUT > &  ,
std::vector< int > &  ,
unsigned short  int,
std::string   
)

◆ produce()

L1TMuonBarrelParamsESProducer::ReturnType L1TMuonBarrelParamsESProducer::produce ( const L1TMuonBarrelParamsRcd iRecord)

Definition at line 689 of file L1TMuonBarrelParamsESProducer.cc.

References m_params_helper.

689  {
690  return std::make_unique<L1TMuonBarrelParams>(m_params_helper);
691 }

Member Data Documentation

◆ m_params_helper

L1TMuonBarrelParamsHelper L1TMuonBarrelParamsESProducer::m_params_helper
private

Definition at line 53 of file L1TMuonBarrelParamsESProducer.cc.

Referenced by L1TMuonBarrelParamsESProducer(), and produce().