Change in AliACORDEReconstructor: now the labels go from 0 - 59
authormrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 May 2010 23:41:22 +0000 (23:41 +0000)
committermrodrigu <mrodrigu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 May 2010 23:41:22 +0000 (23:41 +0000)
ACORDE/AliACORDEReconstructor.cxx

index 9c71c75..66fc00d 100644 (file)
@@ -98,7 +98,7 @@ void AliACORDEReconstructor::ConvertDigits(AliRawReader* rawReader, TTree* digit
       Int_t  index = iChannel / 30;\r
       Int_t  bit   = iChannel % 30;\r
       if (rawStream.GetWord(index) & (1 << bit))\r
-        new ((*fDigitsArray)[fDigitsArray->GetEntriesFast()]) AliACORDEdigit(iChannel+1,0);\r
+        new ((*fDigitsArray)[fDigitsArray->GetEntriesFast()]) AliACORDEdigit(iChannel,0);\r
     }\r
   }\r
 \r
@@ -136,8 +136,8 @@ void AliACORDEReconstructor::FillESD(TTree* digitsTree, TTree* /*clustersTree*/,
     AliACORDEdigit* digit = (AliACORDEdigit*) fDigitsArray->At(d);\r
     Int_t module = digit->GetModule();\r
 \r
-    AcoHitSingle[module-1] = kTRUE;\r
-    AcoHitMulti[module-1] = kTRUE;\r
+    AcoHitSingle[module] = kTRUE;\r
+    AcoHitMulti[module] = kTRUE;\r
   }  \r
   TString ActiveTriggerDetector = esd->GetFiredTriggerClasses();\r
   if (ActiveTriggerDetector.Contains("ASL")) fESDACORDE->SetACORDEBitPattern(AcoHitSingle);\r