Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:13

0001 #ifndef L1TMuonBarrelParamsAllPublic_h
0002 #define L1TMuonBarrelParamsAllPublic_h
0003 
0004 #include <cassert>
0005 
0006 #include "CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h"
0007 
0008 class L1TMuonBarrelParamsAllPublic : public L1TMuonBarrelParams {
0009 public:
0010   L1TMuonBarrelParamsAllPublic(){};
0011   ~L1TMuonBarrelParamsAllPublic(){};
0012 
0013   L1TMuonBarrelParamsAllPublic(const L1TMuonBarrelParams& a) {
0014     assert(sizeof(L1TMuonBarrelParamsAllPublic) == sizeof(L1TMuonBarrelParams));
0015     //const void * pa = &a;
0016     //const L1TMuonBarrelParamsAllPublic * py
0017     *this = *static_cast<const L1TMuonBarrelParamsAllPublic*>(&a);
0018     //this = py;
0019     //delete (L1TMuonBarrelParams*)pa;
0020   };
0021 
0022   std::string AssLUTPath() const { return !pnodes_[CONFIG].sparams_.empty() ? pnodes_[CONFIG].sparams_[0] : ""; };
0023   void setAssLUTPath(std::string path) { pnodes_[CONFIG].sparams_.push_back(path); };
0024 
0025   void setpta_lut(std::vector<LUT> ptalut) { lutparams_.pta_lut_ = ptalut; };
0026   std::vector<LUT> pta_lut() const { return lutparams_.pta_lut_; };
0027   void setpta_threshold(std::vector<int> ptathresh) { lutparams_.pta_threshold_ = ptathresh; };
0028   std::vector<int> pta_threshold() const { return lutparams_.pta_threshold_; };
0029 
0030   void setphi_lut(std::vector<LUT> philut) { lutparams_.phi_lut_ = philut; };
0031   std::vector<LUT> phi_lut() const { return lutparams_.phi_lut_; };
0032 
0033   void setext_lut(std::vector<LUTParams::extLUT> extlut) { lutparams_.ext_lut_ = extlut; };
0034   std::vector<LUTParams::extLUT> ext_lut() const { return lutparams_.ext_lut_; };
0035 
0036   void setqp_lut(qpLUT qplut) { lutparams_.qp_lut_ = qplut; };
0037   qpLUT qp_lut() const { return lutparams_.qp_lut_; };
0038 
0039   void seteta_lut(etaLUT eta_lut) { lutparams_.eta_lut_ = eta_lut; };
0040   etaLUT eta_lut() const { return lutparams_.eta_lut_; };
0041 
0042   void set_PT_Assignment_nbits_Phi(int par1) { pnodes_[CONFIG].iparams_[PT_Assignment_nbits_Phi] = par1; };
0043   void set_PT_Assignment_nbits_PhiB(int par1) { pnodes_[CONFIG].iparams_[PT_Assignment_nbits_PhiB] = par1; };
0044   void set_PHI_Assignment_nbits_Phi(int par1) { pnodes_[CONFIG].iparams_[PHI_Assignment_nbits_Phi] = par1; };
0045   void set_PHI_Assignment_nbits_PhiB(int par1) { pnodes_[CONFIG].iparams_[PHI_Assignment_nbits_PhiB] = par1; };
0046   void set_Extrapolation_nbits_Phi(int par1) { pnodes_[CONFIG].iparams_[Extrapolation_nbits_Phi] = par1; };
0047   void set_Extrapolation_nbits_PhiB(int par1) { pnodes_[CONFIG].iparams_[Extrapolation_nbits_PhiB] = par1; };
0048   void set_BX_min(int par1) { pnodes_[CONFIG].iparams_[BX_min] = par1; };
0049   void set_BX_max(int par1) { pnodes_[CONFIG].iparams_[BX_max] = par1; };
0050   void set_Extrapolation_Filter(int par1) { pnodes_[CONFIG].iparams_[Extrapolation_Filter] = par1; };
0051   void set_OutOfTime_Filter_Window(int par1) { pnodes_[CONFIG].iparams_[OutOfTime_Filter_Window] = par1; };
0052   void set_OutOfTime_Filter(bool par1) { pnodes_[CONFIG].iparams_[OutOfTime_Filter] = par1; };
0053   void set_Open_LUTs(bool par1) { pnodes_[CONFIG].iparams_[Open_LUTs] = par1; };
0054   void set_EtaTrackFinder(bool par1) { pnodes_[CONFIG].iparams_[EtaTrackFinder] = par1; };
0055   void set_Extrapolation_21(bool par1) { pnodes_[CONFIG].iparams_[Extrapolation_21] = par1; };
0056   void set_DisableNewAlgo(bool par1) { pnodes_[CONFIG].iparams_[DisableNewAlgo] = par1; };
0057 
0058   int get_PT_Assignment_nbits_Phi() const { return pnodes_[CONFIG].iparams_[PT_Assignment_nbits_Phi]; };
0059   int get_PT_Assignment_nbits_PhiB() const { return pnodes_[CONFIG].iparams_[PT_Assignment_nbits_PhiB]; };
0060   int get_PHI_Assignment_nbits_Phi() const { return pnodes_[CONFIG].iparams_[PHI_Assignment_nbits_Phi]; };
0061   int get_PHI_Assignment_nbits_PhiB() const { return pnodes_[CONFIG].iparams_[PHI_Assignment_nbits_PhiB]; };
0062   int get_Extrapolation_nbits_Phi() const { return pnodes_[CONFIG].iparams_[Extrapolation_nbits_Phi]; };
0063   int get_Extrapolation_nbits_PhiB() const { return pnodes_[CONFIG].iparams_[Extrapolation_nbits_PhiB]; };
0064   int get_BX_min() const { return pnodes_[CONFIG].iparams_[BX_min]; };
0065   int get_BX_max() const { return pnodes_[CONFIG].iparams_[BX_max]; };
0066   int get_Extrapolation_Filter() const { return pnodes_[CONFIG].iparams_[Extrapolation_Filter]; };
0067   int get_OutOfTime_Filter_Window() const { return pnodes_[CONFIG].iparams_[OutOfTime_Filter_Window]; };
0068 
0069   bool get_OutOfTime_Filter() const { return pnodes_[CONFIG].iparams_[OutOfTime_Filter]; };
0070   bool get_Open_LUTs() const { return pnodes_[CONFIG].iparams_[Open_LUTs]; };
0071   bool get_EtaTrackFinder() const { return pnodes_[CONFIG].iparams_[EtaTrackFinder]; };
0072   bool get_Extrapolation_21() const { return pnodes_[CONFIG].iparams_[Extrapolation_21]; };
0073   bool get_DisableNewAlgo() const { return pnodes_[CONFIG].iparams_[DisableNewAlgo]; };
0074 
0075   unsigned fwVersion() const { return fwVersion_; };
0076   void setFwVersion(unsigned fwVersion) { fwVersion_ = fwVersion; };
0077 };
0078 
0079 //const L1TMuonBarrelParamsAllPublic& cast_to_L1TMuonBarrelParamsAllPublic(const L1TMuonBarrelParams& a);
0080 const L1TMuonBarrelParams& cast_to_L1TMuonBarrelParams(const L1TMuonBarrelParamsAllPublic& a);
0081 
0082 #endif