]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Do not make second event loop in the QA
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2008 11:25:32 +0000 (11:25 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2008 11:25:32 +0000 (11:25 +0000)
T0/AliT0QADataMaker.cxx
T0/AliT0QADataMakerRec.cxx

index f30fb913a9f3e5f1f33e7eb64a77f0f931bd267b..4cc90e976d15ae2c881285312c0dd4a4709a202a 100644 (file)
@@ -346,9 +346,8 @@ void AliT0QADataMaker::MakeRaws( AliRawReader* rawReader)
       for (Int_t j0=0; j0<5; j0++) allData[i0][j0]=0;
     }
   //fills QA histos for RAW
-  AliT0RawReader *start = new AliT0RawReader(rawReader);
-  
-  while (rawReader->NextEvent()) {
+
+    AliT0RawReader *start = new AliT0RawReader(rawReader);  
     start->Next();
     for (Int_t i=0; i<105; i++) 
       for (Int_t iHit=0; iHit<5; iHit++)
@@ -380,9 +379,7 @@ void AliT0QADataMaker::MakeRaws( AliRawReader* rawReader)
        }
       }
     }
-    
-  }
-  
+    delete start;
 }
 
 //____________________________________________________________________________
index 3213f9e4778fa9fafcf8c560ee9e0023fc5bd63d..28a59148971b41599480a982d3aec101f62dfbf8 100644 (file)
@@ -196,9 +196,8 @@ void AliT0QADataMakerRec::MakeRaws( AliRawReader* rawReader)
       for (Int_t j0=0; j0<5; j0++) allData[i0][j0]=0;
     }
   //fills QA histos for RAW
-AliT0RawReader *start = new AliT0RawReader(rawReader);
- while (rawReader->NextEvent()) {
+
+   AliT0RawReader *start = new AliT0RawReader(rawReader);
    start->Next();
    for (Int_t i=0; i<105; i++) 
      for (Int_t iHit=0; iHit<5; iHit++)
@@ -230,8 +229,7 @@ AliT0RawReader *start = new AliT0RawReader(rawReader);
        }
      }
    }
-   
- }
+   delete start;
 
 }