CMS 3D CMS Logo

L1MuDTTFParameters.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   Class: L1MuDTTFParameters
00004 //
00005 //   Description: DTTF Parameters from OMDS
00006 //
00007 //
00008 //   $Date: 2008/05/29 10:15:02 $
00009 //   $Revision: 1.2 $
00010 //
00011 //   Author :
00012 //   J. Troconiz              UAM Madrid
00013 //
00014 //--------------------------------------------------
00015 
00016 //-----------------------
00017 // This Class's Header --
00018 //-----------------------
00019 
00020 #include "CondFormats/L1TObjects/interface/L1MuDTTFParameters.h"
00021 
00022 //---------------
00023 // C++ Headers --
00024 //---------------
00025 
00026 
00027 //-------------------------------
00028 // Collaborating Class Headers --
00029 //-------------------------------
00030 
00031 
00032 // --------------------------------
00033 //       class L1MuDTTFParameters
00034 //---------------------------------
00035 
00036 //--------------
00037 // Operations --
00038 //--------------
00039 
00040 //
00041 // reset parameters
00042 //
00043 void L1MuDTTFParameters::reset() {
00044 
00045   for( int i=0; i<6; i++ ) {
00046     for( int j=0; j<12; j++ ) {
00047 
00048       inrec_chdis_st1[i][j]  = false;
00049       inrec_chdis_st2[i][j]  = false;
00050       inrec_chdis_st3[i][j]  = false;
00051       inrec_chdis_st4[i][j]  = false;
00052       inrec_qual_st1[i][j]   = 0;
00053       inrec_qual_st2[i][j]   = 0;
00054       inrec_qual_st3[i][j]   = 0;
00055       inrec_qual_st4[i][j]   = 0;
00056       soc_stdis_n[i][j]      = 0;
00057       soc_stdis_wl[i][j]     = 0;
00058       soc_stdis_wr[i][j]     = 0;
00059       soc_stdis_zl[i][j]     = 0;
00060       soc_stdis_zr[i][j]     = 0;
00061       soc_qcut_st1[i][j]     = 0;
00062       soc_qcut_st2[i][j]     = 0;
00063       soc_qcut_st4[i][j]     = 0;
00064       soc_qual_csc[i][j]     = 0;
00065       soc_run_21[i][j]       = false;
00066       soc_nbx_del[i][j]      = false;
00067       soc_csc_etacanc[i][j]  = false;
00068       soc_openlut_extr[i][j] = false;
00069     }
00070   }
00071 }
00072 
00073 void L1MuDTTFParameters::set_inrec_chdis_st1(int wh, int sc, const bool val) {
00074 
00075   if ( check(wh,sc) == -99 ) return;
00076   inrec_chdis_st1[check(wh,sc)][sc] = val;
00077 }
00078 
00079 bool L1MuDTTFParameters::get_inrec_chdis_st1(int wh, int sc) const{
00080 
00081   if ( check(wh,sc) == -99 ) return false;
00082   return inrec_chdis_st1[check(wh,sc)][sc];
00083 }
00084 
00085 void L1MuDTTFParameters::set_inrec_chdis_st2(int wh, int sc, const bool val) {
00086 
00087   if ( check(wh,sc) == -99 ) return;
00088   inrec_chdis_st2[check(wh,sc)][sc] = val;
00089 }
00090 
00091 bool L1MuDTTFParameters::get_inrec_chdis_st2(int wh, int sc) const{
00092 
00093   if ( check(wh,sc) == -99 ) return false;
00094   return inrec_chdis_st2[check(wh,sc)][sc];
00095 }
00096 
00097 void L1MuDTTFParameters::set_inrec_chdis_st3(int wh, int sc, const bool val) {
00098 
00099   if ( check(wh,sc) == -99 ) return;
00100   inrec_chdis_st3[check(wh,sc)][sc] = val;
00101 }
00102 
00103 bool L1MuDTTFParameters::get_inrec_chdis_st3(int wh, int sc) const{
00104 
00105   if ( check(wh,sc) == -99 ) return false;
00106   return inrec_chdis_st3[check(wh,sc)][sc];
00107 }
00108 
00109 void L1MuDTTFParameters::set_inrec_chdis_st4(int wh, int sc, const bool val) {
00110 
00111   if ( check(wh,sc) == -99 ) return;
00112   inrec_chdis_st4[check(wh,sc)][sc] = val;
00113 }
00114 
00115 bool L1MuDTTFParameters::get_inrec_chdis_st4(int wh, int sc) const{
00116 
00117   if ( check(wh,sc) == -99 ) return false;
00118   return inrec_chdis_st4[check(wh,sc)][sc];
00119 }
00120 
00121 void L1MuDTTFParameters::set_inrec_qual_st1(int wh, int sc, const unsigned short int val) {
00122 
00123   if ( check(wh,sc) == -99 ) return;
00124   inrec_qual_st1[check(wh,sc)][sc] = val&0x7;
00125 }
00126 
00127 unsigned short int L1MuDTTFParameters::get_inrec_qual_st1(int wh, int sc) const{
00128 
00129   if ( check(wh,sc) == -99 ) return 0;
00130   return (inrec_qual_st1[check(wh,sc)][sc])&0x7;
00131 }
00132 
00133 void L1MuDTTFParameters::set_inrec_qual_st2(int wh, int sc, const unsigned short int val) {
00134 
00135   if ( check(wh,sc) == -99 ) return;
00136   inrec_qual_st2[check(wh,sc)][sc] = val&0x7;
00137 }
00138 
00139 unsigned short int L1MuDTTFParameters::get_inrec_qual_st2(int wh, int sc) const{
00140 
00141   if ( check(wh,sc) == -99 ) return 0;
00142   return (inrec_qual_st2[check(wh,sc)][sc])&0x7;
00143 }
00144 
00145 void L1MuDTTFParameters::set_inrec_qual_st3(int wh, int sc, const unsigned short int val) {
00146 
00147   if ( check(wh,sc) == -99 ) return;
00148   inrec_qual_st3[check(wh,sc)][sc] = val&0x7;
00149 }
00150 
00151 unsigned short int L1MuDTTFParameters::get_inrec_qual_st3(int wh, int sc) const{
00152 
00153   if ( check(wh,sc) == -99 ) return 0;
00154   return (inrec_qual_st3[check(wh,sc)][sc])&0x7;
00155 }
00156 
00157 void L1MuDTTFParameters::set_inrec_qual_st4(int wh, int sc, const unsigned short int val) {
00158 
00159   if ( check(wh,sc) == -99 ) return;
00160   inrec_qual_st4[check(wh,sc)][sc] = val&0x7;
00161 }
00162 
00163 unsigned short int L1MuDTTFParameters::get_inrec_qual_st4(int wh, int sc) const{
00164 
00165   if ( check(wh,sc) == -99 ) return 0;
00166   return (inrec_qual_st4[check(wh,sc)][sc])&0x7;
00167 }
00168 
00169 void L1MuDTTFParameters::set_soc_stdis_n(int wh, int sc, const unsigned short int val) {
00170 
00171   if ( check(wh,sc) == -99 ) return;
00172   soc_stdis_n[check(wh,sc)][sc] = val&0x7;
00173 }
00174 
00175 unsigned short int L1MuDTTFParameters::get_soc_stdis_n(int wh, int sc) const{
00176 
00177   if ( check(wh,sc) == -99 ) return 0;
00178   return (soc_stdis_n[check(wh,sc)][sc])&0x7;
00179 }
00180 
00181 void L1MuDTTFParameters::set_soc_stdis_wl(int wh, int sc, const unsigned short int val) {
00182 
00183   if ( check(wh,sc) == -99 ) return;
00184   soc_stdis_wl[check(wh,sc)][sc] = val&0x7;
00185 }
00186 
00187 unsigned short int L1MuDTTFParameters::get_soc_stdis_wl(int wh, int sc) const{
00188 
00189   if ( check(wh,sc) == -99 ) return 0;
00190   return (soc_stdis_wl[check(wh,sc)][sc])&0x7;
00191 }
00192 
00193 void L1MuDTTFParameters::set_soc_stdis_wr(int wh, int sc, const unsigned short int val) {
00194 
00195   if ( check(wh,sc) == -99 ) return;
00196   soc_stdis_wr[check(wh,sc)][sc] = val&0x7;
00197 }
00198 
00199 unsigned short int L1MuDTTFParameters::get_soc_stdis_wr(int wh, int sc) const{
00200 
00201   if ( check(wh,sc) == -99 ) return 0;
00202   return (soc_stdis_wr[check(wh,sc)][sc])&0x7;
00203 }
00204 
00205 void L1MuDTTFParameters::set_soc_stdis_zl(int wh, int sc, const unsigned short int val) {
00206 
00207   if ( check(wh,sc) == -99 ) return;
00208   soc_stdis_zl[check(wh,sc)][sc] = val&0x7;
00209 }
00210 
00211 unsigned short int L1MuDTTFParameters::get_soc_stdis_zl(int wh, int sc) const{
00212 
00213   if ( check(wh,sc) == -99 ) return 0;
00214   return (soc_stdis_zl[check(wh,sc)][sc])&0x7;
00215 }
00216 
00217 void L1MuDTTFParameters::set_soc_stdis_zr(int wh, int sc, const unsigned short int val) {
00218 
00219   if ( check(wh,sc) == -99 ) return;
00220   soc_stdis_zr[check(wh,sc)][sc] = val&0x7;
00221 }
00222 
00223 unsigned short int L1MuDTTFParameters::get_soc_stdis_zr(int wh, int sc) const{
00224 
00225   if ( check(wh,sc) == -99 ) return 0;
00226   return (soc_stdis_zr[check(wh,sc)][sc])&0x7;
00227 }
00228 
00229 void L1MuDTTFParameters::set_soc_qcut_st1(int wh, int sc, const unsigned short int val) {
00230 
00231   if ( check(wh,sc) == -99 ) return;
00232   soc_qcut_st1[check(wh,sc)][sc] = val&0x7;
00233 }
00234 
00235 unsigned short int L1MuDTTFParameters::get_soc_qcut_st1(int wh, int sc) const{
00236 
00237   if ( check(wh,sc) == -99 ) return 0;
00238   return (soc_qcut_st1[check(wh,sc)][sc])&0x7;
00239 }
00240 
00241 void L1MuDTTFParameters::set_soc_qcut_st2(int wh, int sc, const unsigned short int val) {
00242 
00243   if ( check(wh,sc) == -99 ) return;
00244   soc_qcut_st2[check(wh,sc)][sc] = val&0x7;
00245 }
00246 
00247 unsigned short int L1MuDTTFParameters::get_soc_qcut_st2(int wh, int sc) const{
00248 
00249   if ( check(wh,sc) == -99 ) return 0;
00250   return (soc_qcut_st2[check(wh,sc)][sc])&0x7;
00251 }
00252 
00253 void L1MuDTTFParameters::set_soc_qcut_st4(int wh, int sc, const unsigned short int val) {
00254 
00255   if ( check(wh,sc) == -99 ) return;
00256   soc_qcut_st4[check(wh,sc)][sc] = val&0x7;
00257 }
00258 
00259 unsigned short int L1MuDTTFParameters::get_soc_qcut_st4(int wh, int sc) const{
00260 
00261   if ( check(wh,sc) == -99 ) return 0;
00262   return (soc_qcut_st4[check(wh,sc)][sc])&0x7;
00263 }
00264 
00265 void L1MuDTTFParameters::set_soc_qual_csc(int wh, int sc, const unsigned short int val) {
00266 
00267   if ( check(wh,sc) == -99 ) return;
00268   soc_qual_csc[check(wh,sc)][sc] = val&0x7;
00269 }
00270 
00271 unsigned short int L1MuDTTFParameters::get_soc_qual_csc(int wh, int sc) const{
00272 
00273   if ( check(wh,sc) == -99 ) return 0;
00274   return (soc_qual_csc[check(wh,sc)][sc])&0x7;
00275 }
00276 
00277 void L1MuDTTFParameters::set_soc_run_21(int wh, int sc, const bool val) {
00278 
00279   if ( check(wh,sc) == -99 ) return;
00280   soc_run_21[check(wh,sc)][sc] = val;
00281 }
00282 
00283 bool L1MuDTTFParameters::get_soc_run_21(int wh, int sc) const{
00284 
00285   if ( check(wh,sc) == -99 ) return false;
00286   return soc_run_21[check(wh,sc)][sc];
00287 }
00288 
00289 void L1MuDTTFParameters::set_soc_nbx_del(int wh, int sc, const bool val) {
00290 
00291   if ( check(wh,sc) == -99 ) return;
00292   soc_nbx_del[check(wh,sc)][sc] = val;
00293 }
00294 
00295 bool L1MuDTTFParameters::get_soc_nbx_del(int wh, int sc) const{
00296 
00297   if ( check(wh,sc) == -99 ) return false;
00298   return soc_nbx_del[check(wh,sc)][sc];
00299 }
00300 
00301 void L1MuDTTFParameters::set_soc_csc_etacanc(int wh, int sc, const bool val) {
00302 
00303   if ( check(wh,sc) == -99 ) return;
00304   soc_csc_etacanc[check(wh,sc)][sc] = val;
00305 }
00306 
00307 bool L1MuDTTFParameters::get_soc_csc_etacanc(int wh, int sc) const{
00308 
00309   if ( check(wh,sc) == -99 ) return false;
00310   return soc_csc_etacanc[check(wh,sc)][sc];
00311 }
00312 
00313 void L1MuDTTFParameters::set_soc_openlut_extr(int wh, int sc, const bool val) {
00314 
00315   if ( check(wh,sc) == -99 ) return;
00316   soc_openlut_extr[check(wh,sc)][sc] = val;
00317 }
00318 
00319 bool L1MuDTTFParameters::get_soc_openlut_extr(int wh, int sc) const{
00320 
00321   if ( check(wh,sc) == -99 ) return false;
00322   return soc_openlut_extr[check(wh,sc)][sc];
00323 }
00324 
00325 int L1MuDTTFParameters::check(int wh, int sc) const {
00326 
00327   if ( sc<0 || sc>11 || wh==0 || wh>3 || wh<-3 ) return -99; 
00328 
00329   if ( wh < 0 ) return wh+3;
00330   else return wh+2;
00331 }

Generated on Tue Jun 9 17:26:39 2009 for CMSSW by  doxygen 1.5.4