Reset rawReader in MakeRaws (Yves)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jul 2008 08:32:30 +0000 (08:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jul 2008 08:32:30 +0000 (08:32 +0000)
EMCAL/AliEMCALQADataMakerRec.cxx
FMD/AliFMDQADataMakerRec.cxx
HMPID/AliHMPIDQADataMakerRec.cxx
PMD/AliPMDQADataMakerRec.cxx
T0/AliT0QADataMakerRec.cxx
TPC/AliTPCQADataMakerRec.cxx
TRD/AliTRDQADataMakerRec.cxx
VZERO/AliVZEROQADataMakerRec.cxx
ZDC/AliZDCQADataMakerRec.cxx

index 58c4031..537cf94 100644 (file)
@@ -40,6 +40,7 @@ Authors:  J.Klay (Cal Poly) May 2008
 #include "AliEMCALRawUtils.h"
 #include "AliEMCALReconstructor.h"
 #include "AliEMCALRecParam.h"
+#include "AliRawReader.h"
 
 ClassImp(AliEMCALQADataMakerRec)
            
@@ -186,7 +187,7 @@ void AliEMCALQADataMakerRec::MakeESDs(AliESDEvent * esd)
 }
 
 //____________________________________________________________________________
-void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* /* rawReader */)
+void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* rawReader)
 {
   //Fill prepared histograms with Raw digit properties
 
@@ -198,6 +199,7 @@ void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* /* rawReader */)
   //emcal raw data method, but this doesn't seem to be allowed in
   //AliQADataMakerRec.h
 
+       rawReader->Reset() ;
 }
 
 //____________________________________________________________________________
index 7d8226d..64d379c 100644 (file)
@@ -211,18 +211,14 @@ void AliFMDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   TClonesArray* digitsAddress = &fDigitsArray;
   
   rawReader->Reset();
-  
-  while(rawReader->NextEvent()) {
-    
-    digitsAddress->Clear();
-    fmdReader.ReadAdcs(digitsAddress);
-    for(Int_t i=0;i<digitsAddress->GetEntriesFast();i++) {
-      //Raw ADC counts
-      AliFMDDigit* digit = static_cast<AliFMDDigit*>(digitsAddress->At(i));
-      GetRawsData(0)->Fill(digit->Counts());
-    }
-  }
-  
+               
+       digitsAddress->Clear();
+       fmdReader.ReadAdcs(digitsAddress);
+       for(Int_t i=0;i<digitsAddress->GetEntriesFast();i++) {
+               //Raw ADC counts
+               AliFMDDigit* digit = static_cast<AliFMDDigit*>(digitsAddress->At(i));
+               GetRawsData(0)->Fill(digit->Counts());
+       }
 }
 
 //_____________________________________________________________________
index a2b26c2..45189a2 100644 (file)
@@ -171,7 +171,8 @@ void AliHMPIDQADataMakerRec::MakeRaws(AliRawReader *rawReader)
 //
 // Filling Raws QA histos
 //
-    AliHMPIDRawStream stream(rawReader);
+         rawReader->Reset() ; 
+               AliHMPIDRawStream stream(rawReader);
 
     fEvtRaw++;
 
index 61422e7..4f2300c 100644 (file)
@@ -40,6 +40,9 @@
 #include "AliPMDddldata.h"
 #include "AliPMDUtility.h"
 #include "AliESDPmdTrack.h"
+#include "AliRawReader.h"
+
+//#include "AliPMDRecoParam.h"
 
 ClassImp(AliPMDQADataMakerRec)
            
@@ -372,7 +375,8 @@ void AliPMDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
 {
     //Fill prepared histograms with Raw digit properties
 
-    TObjArray *pmdddlcont = 0x0;
+         rawReader->Reset() ;
+         TObjArray *pmdddlcont = 0x0;
     pmdddlcont = new TObjArray();
     AliPMDRawStream stream(rawReader);
     
index 42b9b32..f3f8d55 100644 (file)
@@ -237,6 +237,7 @@ void AliT0QADataMakerRec::InitESDs()
 //____________________________________________________________________________
 void AliT0QADataMakerRec::MakeRaws( AliRawReader* rawReader)
 {
+       rawReader->Reset() ; 
   //fills QA histos for RAW
   Int_t shift=0;
   AliT0RawReader *start = new AliT0RawReader(rawReader);
index 14ea465..55b3134 100644 (file)
@@ -393,6 +393,7 @@ void AliTPCQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   // To make QA for the RAW data we use the TPC Calibration framework 
   // to handle the data and then in the end extract the data
   //
+       rawReader->Reset() ; 
   fTPCdataQA->ProcessEvent(rawReader);  
 }
 
index d49a257..0030c89 100644 (file)
@@ -38,6 +38,7 @@
 // --- AliRoot header files ---
 #include "AliESDEvent.h"
 #include "AliLog.h"
+#include "AliRawReader.h"
 #include "AliTRDcluster.h"
 #include "AliTRDQADataMakerRec.h"
 #include "AliTRDgeometry.h"
@@ -659,6 +660,7 @@ void AliTRDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   const Int_t kMCM = 16;
   //  const Int_t kADC = 22;
 
+       rawReader->Reset() ; 
   //AliTRDrawStreamBase::SetRawStreamVersion("TB");
   AliTRDrawStreamBase *raw = AliTRDrawStreamBase::GetRawStream(rawReader);
   AliDebug(2,Form("Stream version: %s", raw->IsA()->GetName()));
index ac5e4a7..819dd34 100644 (file)
@@ -237,7 +237,8 @@ void AliVZEROQADataMakerRec::MakeESDs(AliESDEvent * esd)
  {
   //Fill histograms with Raws, computes average ADC values dynamically (pedestal subtracted)
                   
-  AliVZERORawStream* rawStream  = new AliVZERORawStream(rawReader); 
+       rawReader->Reset() ; 
+       AliVZERORawStream* rawStream  = new AliVZERORawStream(rawReader); 
   rawStream->Next();
   
   Float_t ChargeEoI, Threshold;  // for pedestal subtraction 
index 73cdf3d..d7af206 100644 (file)
@@ -33,6 +33,7 @@
 // --- AliRoot header files ---
 #include "AliLog.h"
 #include "AliQAChecker.h"
+#include "AliRawReader.h"
 #include "AliZDCQADataMakerRec.h"
 #include "AliZDCRawStream.h"
 #include "AliESDZDC.h"
@@ -201,6 +202,7 @@ void AliZDCQADataMakerRec::MakeRaws(AliRawReader *rawReader)
 {
   // Filling Raws QA histos
   //
+       rawReader->Reset() ; 
   Float_t sum_ZNC=0., sum_ZNA=0., sum_ZPC=0., sum_ZPA=0.;
   Float_t sumQ_ZNC=0., sumQ_ZNA=0., sumQ_ZPC=0., sumQ_ZPA=0.;
   //Float_t sum_ZNC_lg=0., sum_ZNA_lg=0., sum_ZPC_lg=0., sum_ZPA_lg=0.;