Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:59

0001 #ifndef CondFormats_CSCObjects_CSCL1TPLookupTableME11ILT_h
0002 #define CondFormats_CSCObjects_CSCL1TPLookupTableME11ILT_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 #include <vector>
0006 
0007 class CSCL1TPLookupTableME11ILT {
0008 public:
0009   CSCL1TPLookupTableME11ILT();
0010 
0011   ~CSCL1TPLookupTableME11ILT() {}
0012 
0013   typedef std::vector<unsigned> t_lut;
0014 
0015   // setters
0016   void set_GEM_pad_CSC_es_ME11b_even(t_lut lut);
0017   void set_GEM_pad_CSC_es_ME11a_even(t_lut lut);
0018   void set_GEM_pad_CSC_es_ME11b_odd(t_lut lut);
0019   void set_GEM_pad_CSC_es_ME11a_odd(t_lut lut);
0020 
0021   void set_GEM_roll_CSC_min_wg_ME11_even(t_lut lut);
0022   void set_GEM_roll_CSC_max_wg_ME11_even(t_lut lut);
0023   void set_GEM_roll_CSC_min_wg_ME11_odd(t_lut lut);
0024   void set_GEM_roll_CSC_max_wg_ME11_odd(t_lut lut);
0025 
0026   // GEM-CSC trigger: slope correction
0027   void set_CSC_slope_cosi_2to1_L1_ME11a_even(t_lut lut);
0028   void set_CSC_slope_cosi_2to1_L1_ME11a_odd(t_lut lut);
0029   void set_CSC_slope_cosi_3to1_L1_ME11a_even(t_lut lut);
0030   void set_CSC_slope_cosi_3to1_L1_ME11a_odd(t_lut lut);
0031 
0032   void set_CSC_slope_cosi_2to1_L1_ME11b_even(t_lut lut);
0033   void set_CSC_slope_cosi_2to1_L1_ME11b_odd(t_lut lut);
0034   void set_CSC_slope_cosi_3to1_L1_ME11b_even(t_lut lut);
0035   void set_CSC_slope_cosi_3to1_L1_ME11b_odd(t_lut lut);
0036 
0037   void set_CSC_slope_cosi_corr_L1_ME11a_even(t_lut lut);
0038   void set_CSC_slope_cosi_corr_L1_ME11b_even(t_lut lut);
0039   void set_CSC_slope_cosi_corr_L1_ME11a_odd(t_lut lut);
0040   void set_CSC_slope_cosi_corr_L1_ME11b_odd(t_lut lut);
0041 
0042   void set_CSC_slope_corr_L1_ME11a_even(t_lut lut);
0043   void set_CSC_slope_corr_L1_ME11b_even(t_lut lut);
0044   void set_CSC_slope_corr_L1_ME11a_odd(t_lut lut);
0045   void set_CSC_slope_corr_L1_ME11b_odd(t_lut lut);
0046   void set_CSC_slope_corr_L2_ME11a_even(t_lut lut);
0047   void set_CSC_slope_corr_L2_ME11b_even(t_lut lut);
0048   void set_CSC_slope_corr_L2_ME11a_odd(t_lut lut);
0049   void set_CSC_slope_corr_L2_ME11b_odd(t_lut lut);
0050 
0051   void set_es_diff_slope_L1_ME11a_even(t_lut lut);
0052   void set_es_diff_slope_L1_ME11a_odd(t_lut lut);
0053   void set_es_diff_slope_L1_ME11b_even(t_lut lut);
0054   void set_es_diff_slope_L1_ME11b_odd(t_lut lut);
0055   void set_es_diff_slope_L2_ME11a_even(t_lut lut);
0056   void set_es_diff_slope_L2_ME11a_odd(t_lut lut);
0057   void set_es_diff_slope_L2_ME11b_even(t_lut lut);
0058   void set_es_diff_slope_L2_ME11b_odd(t_lut lut);
0059 
0060   // getters
0061   unsigned GEM_pad_CSC_es_ME11b_even(unsigned pad) const;
0062   unsigned GEM_pad_CSC_es_ME11a_even(unsigned pad) const;
0063   unsigned GEM_pad_CSC_es_ME11b_odd(unsigned pad) const;
0064   unsigned GEM_pad_CSC_es_ME11a_odd(unsigned pad) const;
0065 
0066   unsigned GEM_roll_CSC_min_wg_ME11_even(unsigned roll) const;
0067   unsigned GEM_roll_CSC_max_wg_ME11_even(unsigned roll) const;
0068   unsigned GEM_roll_CSC_min_wg_ME11_odd(unsigned roll) const;
0069   unsigned GEM_roll_CSC_max_wg_ME11_odd(unsigned roll) const;
0070 
0071   // GEM-CSC trigger: slope correction
0072   unsigned CSC_slope_cosi_2to1_L1_ME11a_even(unsigned channel) const;
0073   unsigned CSC_slope_cosi_2to1_L1_ME11a_odd(unsigned channel) const;
0074   unsigned CSC_slope_cosi_3to1_L1_ME11a_even(unsigned channel) const;
0075   unsigned CSC_slope_cosi_3to1_L1_ME11a_odd(unsigned channel) const;
0076 
0077   unsigned CSC_slope_cosi_2to1_L1_ME11b_even(unsigned channel) const;
0078   unsigned CSC_slope_cosi_2to1_L1_ME11b_odd(unsigned channel) const;
0079   unsigned CSC_slope_cosi_3to1_L1_ME11b_even(unsigned channel) const;
0080   unsigned CSC_slope_cosi_3to1_L1_ME11b_odd(unsigned channel) const;
0081 
0082   unsigned CSC_slope_cosi_corr_L1_ME11a_even(unsigned channel) const;
0083   unsigned CSC_slope_cosi_corr_L1_ME11b_even(unsigned channel) const;
0084   unsigned CSC_slope_cosi_corr_L1_ME11a_odd(unsigned channel) const;
0085   unsigned CSC_slope_cosi_corr_L1_ME11b_odd(unsigned channel) const;
0086 
0087   unsigned CSC_slope_corr_L1_ME11a_even(unsigned channel) const;
0088   unsigned CSC_slope_corr_L1_ME11b_even(unsigned channel) const;
0089   unsigned CSC_slope_corr_L1_ME11a_odd(unsigned channel) const;
0090   unsigned CSC_slope_corr_L1_ME11b_odd(unsigned channel) const;
0091   unsigned CSC_slope_corr_L2_ME11a_even(unsigned channel) const;
0092   unsigned CSC_slope_corr_L2_ME11b_even(unsigned channel) const;
0093   unsigned CSC_slope_corr_L2_ME11a_odd(unsigned channel) const;
0094   unsigned CSC_slope_corr_L2_ME11b_odd(unsigned channel) const;
0095 
0096   // GEM-CSC trigger: 1/8-strip difference to slope
0097   unsigned es_diff_slope_L1_ME11a_even(unsigned es_diff) const;
0098   unsigned es_diff_slope_L1_ME11a_odd(unsigned es_diff) const;
0099   unsigned es_diff_slope_L1_ME11b_even(unsigned es_diff) const;
0100   unsigned es_diff_slope_L1_ME11b_odd(unsigned es_diff) const;
0101   unsigned es_diff_slope_L2_ME11a_even(unsigned es_diff) const;
0102   unsigned es_diff_slope_L2_ME11a_odd(unsigned es_diff) const;
0103   unsigned es_diff_slope_L2_ME11b_even(unsigned es_diff) const;
0104   unsigned es_diff_slope_L2_ME11b_odd(unsigned es_diff) const;
0105 
0106 private:
0107   t_lut GEM_pad_CSC_es_ME11b_even_;
0108   t_lut GEM_pad_CSC_es_ME11a_even_;
0109   t_lut GEM_pad_CSC_es_ME11b_odd_;
0110   t_lut GEM_pad_CSC_es_ME11a_odd_;
0111 
0112   t_lut GEM_roll_CSC_min_wg_ME11_even_;
0113   t_lut GEM_roll_CSC_max_wg_ME11_even_;
0114   t_lut GEM_roll_CSC_min_wg_ME11_odd_;
0115   t_lut GEM_roll_CSC_max_wg_ME11_odd_;
0116 
0117   t_lut CSC_slope_cosi_2to1_L1_ME11a_even_;
0118   t_lut CSC_slope_cosi_2to1_L1_ME11a_odd_;
0119   t_lut CSC_slope_cosi_3to1_L1_ME11a_even_;
0120   t_lut CSC_slope_cosi_3to1_L1_ME11a_odd_;
0121 
0122   t_lut CSC_slope_cosi_2to1_L1_ME11b_even_;
0123   t_lut CSC_slope_cosi_2to1_L1_ME11b_odd_;
0124   t_lut CSC_slope_cosi_3to1_L1_ME11b_even_;
0125   t_lut CSC_slope_cosi_3to1_L1_ME11b_odd_;
0126 
0127   t_lut CSC_slope_cosi_corr_L1_ME11a_even_;
0128   t_lut CSC_slope_cosi_corr_L1_ME11b_even_;
0129   t_lut CSC_slope_cosi_corr_L1_ME11a_odd_;
0130   t_lut CSC_slope_cosi_corr_L1_ME11b_odd_;
0131 
0132   t_lut CSC_slope_corr_L1_ME11a_even_;
0133   t_lut CSC_slope_corr_L1_ME11b_even_;
0134   t_lut CSC_slope_corr_L1_ME11a_odd_;
0135   t_lut CSC_slope_corr_L1_ME11b_odd_;
0136   t_lut CSC_slope_corr_L2_ME11a_even_;
0137   t_lut CSC_slope_corr_L2_ME11b_even_;
0138   t_lut CSC_slope_corr_L2_ME11a_odd_;
0139   t_lut CSC_slope_corr_L2_ME11b_odd_;
0140 
0141   t_lut es_diff_slope_L1_ME11a_even_;
0142   t_lut es_diff_slope_L1_ME11a_odd_;
0143   t_lut es_diff_slope_L1_ME11b_even_;
0144   t_lut es_diff_slope_L1_ME11b_odd_;
0145   t_lut es_diff_slope_L2_ME11a_even_;
0146   t_lut es_diff_slope_L2_ME11a_odd_;
0147   t_lut es_diff_slope_L2_ME11b_even_;
0148   t_lut es_diff_slope_L2_ME11b_odd_;
0149 
0150   COND_SERIALIZABLE;
0151 };
0152 
0153 #endif