]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/TRDPEDESTALda.cxx
not much improvement in the logic but works 10 times faster
[u/mrichter/AliRoot.git] / TRD / TRDPEDESTALda.cxx
index 68a4723b9aa8173f3730e9cc719adbce9015a6a4..5891bc5729fda678b750869b61e386a0b0b05e0e 100644 (file)
@@ -1,13 +1,13 @@
 /*
 
-- "Contact: r.bailhache@gsi.de"
-- "Link: http://www-linux.gsi.de/~bailhach/PEDESTAL/raw.root.date" 
-- "Run Type: dedicated pedestals run"
-- "DA Type: LDC"
-- "Number of events needed: 100"
-- "Input Files: no config files, no previous result files, RAW DATA files from DDL = 1024 to DDL = 1041 included"
-- "Output Files: trdCalibration.root, trdCalibration.root, no persitent file over runs"
-- "Trigger types used: PEDESTAL_RUN"
+Contact: r.bailhache@gsi.de
+Link: http://www-linux.gsi.de/~bailhach/PEDESTAL/raw.root.date
+Run Type: dedicated pedestals run
+DA Type: LDC
+Number of events needed: 100
+Input Files: no config files, no previous result files, RAW DATA files from DDL = 1024 to DDL = 1041 included
+Output Files: trdCalibration.root, trdCalibration.root, no persitent file over runs
+Trigger types used: PEDESTAL_RUN
 
 */
 
@@ -33,7 +33,7 @@ extern "C" {
 //
 #include "AliRawReader.h"
 #include "AliRawReaderDate.h"
-#include "AliTRDRawStreamTB.h"
+#include "AliTRDrawStreamTB.h"
 #include "AliCDBManager.h"
 //
 // AliRoot TRD calib classes
@@ -74,9 +74,9 @@ int main(int argc, char **argv) {
   int nevents      =0;
  
   //Instance of AliCDBManager: needed by AliTRDRawStream
-  AliCDBManager *man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT");
-  man->SetRun(0);
+  //AliCDBManager *man = AliCDBManager::Instance();
+  //man->SetDefaultStorage("local://$ALICE_ROOT");
+  //man->SetRun(0);
   // AliTRDCalibPadStatus object
   AliTRDCalibPadStatus calipad = AliTRDCalibPadStatus();
   Bool_t passpadstatus = kTRUE;
@@ -86,8 +86,16 @@ int main(int argc, char **argv) {
   TStopwatch timer;
   timer.Start();
   
-  /* some warning less */
-  AliTRDRawStreamTB::SupressWarnings(kTRUE); 
+  // setting
+  // AliTRDrawStreamTB::SetNoDebug();
+  AliTRDrawStreamTB::SetNoErrorWarning();
+  AliTRDrawStreamTB::SetForceCleanDataOnly();
+  AliTRDrawStreamTB::AllowCorruptedData();
+  //AliTRDrawStreamTB::SetSkipCDH();
+  //AliTRDrawStreamTB::SetExtraWordsFix();
+  //AliTRDrawStreamTB::EnableDebugStream();
+  //AliTRDrawStreamTB::SetDumpHead(320);
+  //AliTRDrawStreamTB::SetDumpHead(80);
 
   /* read the data files */
   int n;
@@ -125,7 +133,7 @@ int main(int argc, char **argv) {
 
        AliRawReader *rawReader = new AliRawReaderDate((void*)event);
        rawReader->Select("TRD");
-       AliTRDRawStreamTB *trdRawStream = new AliTRDRawStreamTB((AliRawReader *)rawReader);
+       AliTRDrawStreamTB *trdRawStream = new AliTRDrawStreamTB((AliRawReader *)rawReader);
        //trdRawStream->Init();
        if(!calipad.ProcessEvent(trdRawStream,(Bool_t)nevents_total)) passpadstatus = kFALSE;
        nevents++;