CMS 3D CMS Logo

L1TMuonBarrelParamsAllPublic.h
Go to the documentation of this file.
1 #ifndef L1TMuonBarrelParamsAllPublic_h
2 #define L1TMuonBarrelParamsAllPublic_h
3 
5 
7 public:
10 
12  assert(sizeof(L1TMuonBarrelParamsAllPublic) == sizeof(L1TMuonBarrelParams));
13  //const void * pa = &a;
14  //const L1TMuonBarrelParamsAllPublic * py
15  *this = *static_cast<const L1TMuonBarrelParamsAllPublic*>(&a);
16  //this = py;
17  //delete (L1TMuonBarrelParams*)pa;
18  };
19 
20  std::string AssLUTPath() const { return !pnodes_[CONFIG].sparams_.empty() ? pnodes_[CONFIG].sparams_[0] : ""; };
21  void setAssLUTPath(std::string path) { pnodes_[CONFIG].sparams_.push_back(path); };
22 
23  void setpta_lut(std::vector<LUT> ptalut) { lutparams_.pta_lut_ = ptalut; };
24  std::vector<LUT> pta_lut() const { return lutparams_.pta_lut_; };
25  void setpta_threshold(std::vector<int> ptathresh) { lutparams_.pta_threshold_ = ptathresh; };
26  std::vector<int> pta_threshold() const { return lutparams_.pta_threshold_; };
27 
28  void setphi_lut(std::vector<LUT> philut) { lutparams_.phi_lut_ = philut; };
29  std::vector<LUT> phi_lut() const { return lutparams_.phi_lut_; };
30 
31  void setext_lut(std::vector<LUTParams::extLUT> extlut) { lutparams_.ext_lut_ = extlut; };
32  std::vector<LUTParams::extLUT> ext_lut() const { return lutparams_.ext_lut_; };
33 
34  void setqp_lut(qpLUT qplut) { lutparams_.qp_lut_ = qplut; };
35  qpLUT qp_lut() const { return lutparams_.qp_lut_; };
36 
38  etaLUT eta_lut() const { return lutparams_.eta_lut_; };
39 
46  void set_BX_min(int par1) { pnodes_[CONFIG].iparams_[BX_min] = par1; };
47  void set_BX_max(int par1) { pnodes_[CONFIG].iparams_[BX_max] = par1; };
51  void set_Open_LUTs(bool par1) { pnodes_[CONFIG].iparams_[Open_LUTs] = par1; };
52  void set_EtaTrackFinder(bool par1) { pnodes_[CONFIG].iparams_[EtaTrackFinder] = par1; };
54  void set_DisableNewAlgo(bool par1) { pnodes_[CONFIG].iparams_[DisableNewAlgo] = par1; };
55 
62  int get_BX_min() const { return pnodes_[CONFIG].iparams_[BX_min]; };
63  int get_BX_max() const { return pnodes_[CONFIG].iparams_[BX_max]; };
64  int get_Extrapolation_Filter() const { return pnodes_[CONFIG].iparams_[Extrapolation_Filter]; };
66 
67  bool get_OutOfTime_Filter() const { return pnodes_[CONFIG].iparams_[OutOfTime_Filter]; };
68  bool get_Open_LUTs() const { return pnodes_[CONFIG].iparams_[Open_LUTs]; };
69  bool get_EtaTrackFinder() const { return pnodes_[CONFIG].iparams_[EtaTrackFinder]; };
70  bool get_Extrapolation_21() const { return pnodes_[CONFIG].iparams_[Extrapolation_21]; };
71  bool get_DisableNewAlgo() const { return pnodes_[CONFIG].iparams_[DisableNewAlgo]; };
72 
73  unsigned fwVersion() const { return fwVersion_; };
74  void setFwVersion(unsigned fwVersion) { fwVersion_ = fwVersion; };
75 };
76 
77 //const L1TMuonBarrelParamsAllPublic& cast_to_L1TMuonBarrelParamsAllPublic(const L1TMuonBarrelParams& a);
79 
80 #endif
void setpta_threshold(std::vector< int > ptathresh)
L1TMuonBarrelParamsAllPublic(const L1TMuonBarrelParams &a)
std::map< LUTID, LUTCONT > qpLUT
std::vector< LUT > phi_lut() const
void setphi_lut(std::vector< LUT > philut)
std::vector< int > pta_threshold() const
void setext_lut(std::vector< LUTParams::extLUT > extlut)
std::vector< LUTParams::extLUT > ext_lut() const
void setpta_lut(std::vector< LUT > ptalut)
std::vector< LUT > pta_lut() const
const L1TMuonBarrelParams & cast_to_L1TMuonBarrelParams(const L1TMuonBarrelParamsAllPublic &a)
double a
Definition: hdecay.h:119
std::vector< Node > pnodes_
std::map< short, L1MuDTEtaPattern, std::less< short > > etaLUT
Eta Pattern LUT.