]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/TRDVDRIFTda.cxx
Printout fixed.
[u/mrichter/AliRoot.git] / TRD / TRDVDRIFTda.cxx
index 18a8db0f9e09587ab85180676b15d7eceb083e38..7c3c6257cfbf3ae49ac90df1115f483f9d44999d 100644 (file)
@@ -100,12 +100,12 @@ int main(int argc, char **argv) {
 
 
   /* init some counters */
-  int nevents_physics=0;
-  int nevents_total=0;
+  int neventsphysics=0;
+  int neventstotal=0;
 
-  //Instance of AliCDBManager: needed by AliTRDRawStreamV2
+  //Instance of AliCDBManager: needed by AliTRDrawStream
   //AliCDBManager *man = AliCDBManager::Instance();
-  //man->SetDefaultStorage("local://$ALICE_ROOT");
+  //man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   //man->SetRun(0);
   //Instance of AliTRDCalibraFillHisto
   AliTRDCalibraFillHisto *calibra      = AliTRDCalibraFillHisto::Instance();
@@ -115,11 +115,13 @@ int main(int argc, char **argv) {
 
    // setting
   // AliTRDrawStream::SetNoDebug();
+  AliTRDrawStream::DisableSkipData();
   AliTRDrawStream::SetNoErrorWarning();
+  //AliTRDrawStream::SetSubtractBaseline(0); 
   //AliTRDrawStream::SetForceCleanDataOnly();
-  AliTRDrawStream::AllowCorruptedData();
-  AliTRDrawStream::DisableStackNumberChecker();
-  AliTRDrawStream::DisableStackLinkNumberChecker();
+  //AliTRDrawStream::AllowCorruptedData();
+  //AliTRDrawStream::DisableStackNumberChecker();
+  //AliTRDrawStream::DisableStackLinkNumberChecker();
   //AliTRDrawStream::SetSkipCDH();
   //AliTRDrawStream::SetExtraWordsFix();
   //AliTRDrawStream::EnableDebugStream();
@@ -153,7 +155,7 @@ int main(int argc, char **argv) {
       continue;
     }
 
-    if( ((Int_t)nevents_total)%1000 == 0 ) printf(" event number %d (physic event number %d) will be processed\n",(Int_t) nevents_total,(Int_t) nevents_physics);  
+    if( ((Int_t)neventstotal)%1000 == 0 ) printf(" event number %d (physic event number %d) will be processed\n",(Int_t) neventstotal,(Int_t) neventsphysics);  
 
 
     /* use event - here, just write event id to result file */
@@ -178,11 +180,11 @@ int main(int argc, char **argv) {
    
     if(eventT==PHYSICS_EVENT){
  
-      nevents_physics++;
+      neventsphysics++;
      
     }
     
-    nevents_total++;
+    neventstotal++;
 
 
     /* free resources */
@@ -197,7 +199,7 @@ int main(int argc, char **argv) {
 
 
   /* report progress */
-  printf("%d events processed and %d used\n",nevents_total,nbvdrift);
+  printf("%d events processed and %d used\n",neventstotal,nbvdrift);
   
   //
   // Write a local file and put it on the FX 
@@ -220,3 +222,4 @@ int main(int argc, char **argv) {
 
   return status;
 }
+