Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:17

0001 //-------------------------------------------------
0002 //
0003 /**  \class L1MuDTTFParameters
0004  *
0005  *   DTTF Parameters from OMDS
0006  *
0007  *
0008  *   $Date: 2009/05/04 09:20:57 $
0009  *   $Revision: 1.2 $
0010  *
0011  *   J. Troconiz            UAM Madrid
0012  */
0013 //
0014 //--------------------------------------------------
0015 #ifndef L1MUDTTF_PARAMETERS_H
0016 #define L1MUDTTF_PARAMETERS_H
0017 
0018 #include "CondFormats/Serialization/interface/Serializable.h"
0019 
0020 //---------------
0021 // C++ Headers --
0022 //---------------
0023 
0024 //----------------------
0025 // Base Class Headers --
0026 //----------------------
0027 
0028 //------------------------------------
0029 // Collaborating Class Declarations --
0030 //------------------------------------
0031 
0032 //              ---------------------
0033 //              -- Class Interface --
0034 //              ---------------------
0035 
0036 class L1MuDTTFParameters {
0037 public:
0038   /// constructor
0039   L1MuDTTFParameters() { reset(); }
0040 
0041   /// destructor
0042   virtual ~L1MuDTTFParameters() {}
0043 
0044   /// reset parameters to zero
0045   void reset();
0046 
0047   void set_inrec_qual_st1(int wh, int sc, const unsigned short int val);
0048   unsigned short int get_inrec_qual_st1(int wh, int sc) const;
0049   void set_inrec_qual_st2(int wh, int sc, const unsigned short int val);
0050   unsigned short int get_inrec_qual_st2(int wh, int sc) const;
0051   void set_inrec_qual_st3(int wh, int sc, const unsigned short int val);
0052   unsigned short int get_inrec_qual_st3(int wh, int sc) const;
0053   void set_inrec_qual_st4(int wh, int sc, const unsigned short int val);
0054   unsigned short int get_inrec_qual_st4(int wh, int sc) const;
0055 
0056   void set_soc_stdis_n(int wh, int sc, const unsigned short int val);
0057   unsigned short int get_soc_stdis_n(int wh, int sc) const;
0058   void set_soc_stdis_wl(int wh, int sc, const unsigned short int val);
0059   unsigned short int get_soc_stdis_wl(int wh, int sc) const;
0060   void set_soc_stdis_wr(int wh, int sc, const unsigned short int val);
0061   unsigned short int get_soc_stdis_wr(int wh, int sc) const;
0062   void set_soc_stdis_zl(int wh, int sc, const unsigned short int val);
0063   unsigned short int get_soc_stdis_zl(int wh, int sc) const;
0064   void set_soc_stdis_zr(int wh, int sc, const unsigned short int val);
0065   unsigned short int get_soc_stdis_zr(int wh, int sc) const;
0066 
0067   void set_soc_qcut_st1(int wh, int sc, const unsigned short int val);
0068   unsigned short int get_soc_qcut_st1(int wh, int sc) const;
0069   void set_soc_qcut_st2(int wh, int sc, const unsigned short int val);
0070   unsigned short int get_soc_qcut_st2(int wh, int sc) const;
0071   void set_soc_qcut_st4(int wh, int sc, const unsigned short int val);
0072   unsigned short int get_soc_qcut_st4(int wh, int sc) const;
0073   void set_soc_qual_csc(int wh, int sc, const unsigned short int val);
0074   unsigned short int get_soc_qual_csc(int wh, int sc) const;
0075 
0076   void set_soc_run_21(int wh, int sc, const bool val);
0077   bool get_soc_run_21(int wh, int sc) const;
0078   void set_soc_nbx_del(int wh, int sc, const bool val);
0079   bool get_soc_nbx_del(int wh, int sc) const;
0080   void set_soc_csc_etacanc(int wh, int sc, const bool val);
0081   bool get_soc_csc_etacanc(int wh, int sc) const;
0082   void set_soc_openlut_extr(int wh, int sc, const bool val);
0083   bool get_soc_openlut_extr(int wh, int sc) const;
0084 
0085   void print() const;
0086 
0087 private:
0088   int check(int wh, int sc) const;
0089 
0090 private:
0091   unsigned short int inrec_qual_st1[6][12];
0092   unsigned short int inrec_qual_st2[6][12];
0093   unsigned short int inrec_qual_st3[6][12];
0094   unsigned short int inrec_qual_st4[6][12];
0095 
0096   unsigned short int soc_stdis_n[6][12];
0097   unsigned short int soc_stdis_wl[6][12];
0098   unsigned short int soc_stdis_wr[6][12];
0099   unsigned short int soc_stdis_zl[6][12];
0100   unsigned short int soc_stdis_zr[6][12];
0101 
0102   unsigned short int soc_qcut_st1[6][12];
0103   unsigned short int soc_qcut_st2[6][12];
0104   unsigned short int soc_qcut_st4[6][12];
0105   unsigned short int soc_qual_csc[6][12];
0106 
0107   bool soc_run_21[6][12];
0108   bool soc_nbx_del[6][12];
0109   bool soc_csc_etacanc[6][12];
0110   bool soc_openlut_extr[6][12];
0111 
0112   COND_SERIALIZABLE;
0113 };
0114 
0115 #endif