Adding a protection on TDC index
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Oct 2011 13:56:49 +0000 (13:56 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Oct 2011 13:56:49 +0000 (13:56 +0000)
ZDC/AliZDCReconstructor.cxx

index a62c925..ea4f2a0 100644 (file)
@@ -574,7 +574,7 @@ void AliZDCReconstructor::Reconstruct(AliRawReader* rawReader, TTree* clustersTr
        if(itdc==iprevtdc) ihittdc++;
        else ihittdc=0;
        iprevtdc=itdc;
-       tdcData[itdc][ihittdc] = rawData.GetZDCTDCDatum();
+       if(ihittdc<4) tdcData[itdc][ihittdc] = rawData.GetZDCTDCDatum();
        // Ch. debug
        //if(ihittdc==0) printf("   TDC%d %d  ",itdc, tdcData[itdc][ihittdc]);
    }// ZDC TDC DATA