]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/TRDVDRIFTda.cxx
Pedestal suppression implemented
[u/mrichter/AliRoot.git] / TRD / TRDVDRIFTda.cxx
index d916eadd7f59d773aedc2d12d2547066ae2e89b3..b121c9f6c989761ebae5a89a5ffc0fab729571d5 100644 (file)
@@ -1,13 +1,13 @@
 /*
 
-- "Contact: r.bailhache@gsi.de"
-- "Link: http://www-linux.gsi.de/~bailhach/VDRIFT/raw.root.date"
-- "Run Type: nothing special in ECS, physics run" 
-- "DA Type: MON"
-- "Number of events needed: as many as possible"
-- "Input Files: no config files, no previous result files, RAW DATA file with all the TRD ([DDL = 1024 to DDL = 1041])" 
-- "Output Files: trdCalibrationv.root, trdCalibrationv.root, no persitent file over runs"
-- "Trigger types used: PHYSICS"
+Contact: r.bailhache@gsi.de
+Link: http://www-linux.gsi.de/~bailhach/VDRIFT/raw.root.date
+Run Type: nothing special in ECS, physics run
+DA Type: MON
+Number of events needed: as many as possible
+Input Files: no config files, no previous result files, RAW DATA file with all the TRD ([DDL = 1024 to DDL = 1041])
+Output Files: trdCalibrationv.root, trdCalibrationv.root, no persitent file over runs
+Trigger types used: PHYSICS
 
 */
 
@@ -39,7 +39,7 @@ extern "C" {
 //
 #include "AliRawReader.h"
 #include "AliRawReaderDate.h"
-#include "AliTRDRawStreamTB.h"
+#include "AliTRDrawStreamTB.h"
 #include "AliCDBManager.h"
 
 //
@@ -103,9 +103,16 @@ int main(int argc, char **argv) {
   Bool_t passvdrift  = kTRUE;    // if timebin okey
   Int_t  nbvdrift    = 0;     // number of events with entries for vdrift
 
-
-  /* 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);
 
   
   /* main loop (infinite) */
@@ -146,7 +153,7 @@ int main(int argc, char **argv) {
     if ((eventT==PHYSICS_EVENT) && (passvdrift)) {
       //if (eventT==PHYSICS_EVENT) {
       AliRawReader *rawReader = new AliRawReaderDate((void*)event);
-      AliTRDRawStreamTB *trdRawStream = new AliTRDRawStreamTB((AliRawReader *) rawReader);
+      AliTRDrawStreamTB *trdRawStream = new AliTRDrawStreamTB((AliRawReader *) rawReader);
       Int_t result = calibra->ProcessEventDAQ(trdRawStream,(Bool_t)nevents_physics);
       if(!result) passvdrift = kFALSE;
       else nbvdrift += (Int_t) result/2;