CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1TMuonBarrelParamsHelper.h
Go to the documentation of this file.
1 #ifndef L1TMUON_BARREL_PARAMS_HELPER_h
2 #define L1TMUON_BARREL_PARAMS_HELPER_h
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
12 
16 
20 
24 
27 
28 typedef std::map<short, short, std::less<short> > LUT;
29 
31 public:
34 
36 
37  void configFromPy(std::map<std::string, int>& allInts,
38  std::map<std::string, bool>& allBools,
39  std::map<std::string, std::vector<std::string> > allMasks,
40  unsigned int fwVersion,
41  const std::string& AssLUTpath);
42  void configFromDB(l1t::TriggerSystem& trgSys);
43 
44  std::string AssLUTPath() const { return !pnodes_[CONFIG].sparams_.empty() ? pnodes_[CONFIG].sparams_[0] : ""; }
45  void setAssLUTPath(std::string path) { pnodes_[CONFIG].sparams_.push_back(path); }
46 
47  void setpta_lut(std::vector<LUT> ptalut) { lutparams_.pta_lut_ = ptalut; };
48  std::vector<LUT> pta_lut() const { return lutparams_.pta_lut_; };
49  void setpta_threshold(std::vector<int> ptathresh) { lutparams_.pta_threshold_ = ptathresh; };
50  std::vector<int> pta_threshold() const { return lutparams_.pta_threshold_; };
51 
52  void setphi_lut(std::vector<LUT> philut) { lutparams_.phi_lut_ = philut; };
53  std::vector<LUT> phi_lut() const { return lutparams_.phi_lut_; };
54 
55  void setext_lut(std::vector<LUTParams::extLUT> extlut) { lutparams_.ext_lut_ = extlut; };
56  std::vector<LUTParams::extLUT> ext_lut() const { return lutparams_.ext_lut_; };
57 
58  void setqp_lut(qpLUT qplut) { lutparams_.qp_lut_ = qplut; };
59  qpLUT qp_lut() const { return lutparams_.qp_lut_; };
60 
62  etaLUT eta_lut() const { return lutparams_.eta_lut_; };
63 
64  void set_PT_Assignment_nbits_Phi(int par1) { pnodes_[CONFIG].iparams_[PT_Assignment_nbits_Phi] = par1; }
68  void set_Extrapolation_nbits_Phi(int par1) { pnodes_[CONFIG].iparams_[Extrapolation_nbits_Phi] = par1; }
70  void set_BX_min(int par1) { pnodes_[CONFIG].iparams_[BX_min] = par1; }
71  void set_BX_max(int par1) { pnodes_[CONFIG].iparams_[BX_max] = par1; }
72  void set_Extrapolation_Filter(int par1) { pnodes_[CONFIG].iparams_[Extrapolation_Filter] = par1; }
73  void set_OutOfTime_Filter_Window(int par1) { pnodes_[CONFIG].iparams_[OutOfTime_Filter_Window] = par1; }
74  void set_OutOfTime_Filter(bool par1) { pnodes_[CONFIG].iparams_[OutOfTime_Filter] = par1; }
75  void set_Open_LUTs(bool par1) { pnodes_[CONFIG].iparams_[Open_LUTs] = par1; }
76  void set_EtaTrackFinder(bool par1) { pnodes_[CONFIG].iparams_[EtaTrackFinder] = par1; }
77  void set_Extrapolation_21(bool par1) { pnodes_[CONFIG].iparams_[Extrapolation_21] = par1; }
78  void set_DisableNewAlgo(bool par1) { pnodes_[CONFIG].iparams_[DisableNewAlgo] = par1; }
79 
86  int get_BX_min() const { return pnodes_[CONFIG].iparams_[BX_min]; }
87  int get_BX_max() const { return pnodes_[CONFIG].iparams_[BX_max]; }
88  int get_Extrapolation_Filter() const { return pnodes_[CONFIG].iparams_[Extrapolation_Filter]; }
90 
91  bool get_OutOfTime_Filter() const { return pnodes_[CONFIG].iparams_[OutOfTime_Filter]; }
92  bool get_Open_LUTs() const { return pnodes_[CONFIG].iparams_[Open_LUTs]; }
93  bool get_EtaTrackFinder() const { return pnodes_[CONFIG].iparams_[EtaTrackFinder]; }
94  bool get_Extrapolation_21() const { return pnodes_[CONFIG].iparams_[Extrapolation_21]; }
95  bool get_DisableNewAlgo() const { return pnodes_[CONFIG].iparams_[DisableNewAlgo]; }
96 
97  // FW version
98  unsigned fwVersion() const { return fwVersion_; }
100 
101  // print parameters to stream:
102  void print(std::ostream&) const;
104 
105  // L1MuDTExtLut l1mudttfextlut;
108 
109 private:
110  int load_pt(std::vector<LUT>&, std::vector<int>&, unsigned short int, std::string);
111  int load_phi(std::vector<LUT>&, unsigned short int, unsigned short int, std::string);
112  int load_ext(std::vector<L1TMuonBarrelParams::LUTParams::extLUT>&, unsigned short int, unsigned short int);
113 };
114 
115 #endif
L1MuBMTQualPatternLut l1mudttfqualplut
friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp; o, const L1TMuonBarrelParams &amp; p) { p...
int load_phi(std::vector< LUT > &, unsigned short int, unsigned short int, std::string)
std::map< LUTID, LUTCONT > qpLUT
std::vector< LUT > phi_lut() const
std::vector< LUT > pta_lut() const
std::vector< int > pta_threshold() const
std::vector< LUTParams::extLUT > ext_lut() const
void setphi_lut(std::vector< LUT > philut)
int load_ext(std::vector< L1TMuonBarrelParams::LUTParams::extLUT > &, unsigned short int, unsigned short int)
void setpta_lut(std::vector< LUT > ptalut)
int load_pt(std::vector< LUT > &, std::vector< int > &, unsigned short int, std::string)
if configDB
void setAssLUTPath(std::string path)
void setFwVersion(unsigned fwVersion)
void setext_lut(std::vector< LUTParams::extLUT > extlut)
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 print(std::ostream &) const
void configFromDB(l1t::TriggerSystem &trgSys)
std::vector< Node > pnodes_
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:31
std::map< short, L1MuDTEtaPattern, std::less< short > > etaLUT
Eta Pattern LUT.
void setpta_threshold(std::vector< int > ptathresh)