Go to the documentation of this file.00001 #if !defined(_CINT_)
00002
00003 Int_t triggerSector(Int_t station, Int_t ring, Int_t chamber) const
00004 {
00005
00006
00007
00008 Int_t result;
00009
00010 if(station > 1 && ring > 1 ) {
00011 result = ((static_cast<unsigned>(chamber-3) & 0x7f) / 6) + 1;
00012 }
00013 else {
00014 result = (station != 1) ? ((static_cast<unsigned>(chamber-2) & 0x1f) / 3) + 1 :
00015 ((static_cast<unsigned>(chamber-3) & 0x7f) / 6) + 1;
00016 }
00017
00018 return (result <= 6) ? result : 6;
00019 }
00020
00021 Int_t triggerCscId(Int_t station, Int_t ring, Int_t chamber) const
00022 {
00023
00024
00025
00026 Int_t result;
00027
00028 if( station == 1 ) {
00029 result = (chamber) % 3 + 1;
00030 switch (ring) {
00031 case 1:
00032 break;
00033 case 2:
00034 result += 3;
00035 break;
00036 case 3:
00037 result += 6;
00038 break;
00039 }
00040 }
00041 else {
00042 if( ring == 1 ) {
00043 result = (chamber+1) % 3 + 1;
00044 }
00045 else {
00046 result = (chamber+3) % 6 + 4;
00047 }
00048 }
00049 return result;
00050 }
00051
00052 #endif