Bug fix in filling BB and BG flags in the ESD friend.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Oct 2010 09:14:31 +0000 (09:14 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Oct 2010 09:14:31 +0000 (09:14 +0000)
VZERO/AliVZEROReconstructor.cxx

index 0d5f98c..1d91562 100644 (file)
@@ -194,7 +194,10 @@ void AliVZEROReconstructor::ConvertDigits(AliRawReader* rawReader, TTree* digits
        fESDVZEROfriend->SetBBMBFlag(offlineCh,iBunch,rawStream.GetBBMBFlag(iChannel,iBunch));
        fESDVZEROfriend->SetBGMBFlag(offlineCh,iBunch,rawStream.GetBGMBFlag(iChannel,iBunch));
       }
-
+      for (Int_t iEv = 0; iEv < AliESDVZEROfriend::kNEvOfInt; iEv++) {
+         fESDVZEROfriend->SetBBFlag(offlineCh,iEv,rawStream.GetBBFlag(iChannel,iEv));
+         fESDVZEROfriend->SetBGFlag(offlineCh,iEv,rawStream.GetBGFlag(iChannel,iEv));
+      }
     }  
 
     // Filling the global part of esd friend object that is available only for raw data
@@ -353,8 +356,6 @@ void AliVZEROReconstructor::FillESD(TTree* digitsTree, TTree* /*clustersTree*/,
        for (Int_t iEv = 0; iEv < AliESDVZEROfriend::kNEvOfInt; iEv++) {
          fESDVZEROfriend->SetPedestal(pmNumber,iEv,(Float_t)digit->ChargeADC(iEv));
          fESDVZEROfriend->SetIntegratorFlag(pmNumber,iEv,(iEv%2 == 0) ? integrator : !integrator);
-         fESDVZEROfriend->SetBBFlag(pmNumber,iEv,aBBflag[pmNumber]);
-         fESDVZEROfriend->SetBGFlag(pmNumber,iEv,aBGflag[pmNumber]);
        }
        fESDVZEROfriend->SetTime(pmNumber,digit->Time());
        fESDVZEROfriend->SetWidth(pmNumber,digit->Width());