trigger mask mapping corrected when reading OCDB object
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 15:16:22 +0000 (15:16 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 15:16:22 +0000 (15:16 +0000)
TOF/AliTOFTrigger.cxx

index 6496c9a..05a60f8 100644 (file)
@@ -886,12 +886,16 @@ void AliTOFTrigger::CreateCTTMMatrix() {
   //
   // Create CTTM bit map
   //
+    Int_t fromTriggertoDCS[72] = {0,1,4,5,8,9,12,13,16,17,20,21,24,25,28,29,32,33,36,37,40,41,44,45,48,49,52,53,56,57,60,61,64,65,68,69,3,
+                                 2,7,6,11,10,15,14,19,18,23,22,27,26,31,30,35,34,39,38,43,42,47,46,51,50,55,54,59,58,63,62,67,66,71,70};
+
+
     fNMaxipadOnAll=0;
     fNMaxipadOn=0;
 
     for(Int_t i = 0; i<kNLTM;i++){
        UInt_t currentMask = fPowerMask[kNCTTMchannels]-1;
-       if(fTOFTrigMask) currentMask=fTOFTrigMask->GetTriggerMask(i);
+       if(fTOFTrigMask) currentMask=fTOFTrigMask->GetTriggerMask(fromTriggertoDCS[i]);
        if(i<kNCTTM){
            for(Int_t j = 0; j<kNCTTMchannels;j++){
                fCTTMmatrixFront[i][j]=fLTMmatrix[i][2*j]||fLTMmatrix[i][2*j+1];