]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/TRDVDRIFTda.cxx
Pedestal suppression implemented
[u/mrichter/AliRoot.git] / TRD / TRDVDRIFTda.cxx
index b6c60d585fa0e38d9210aa4e01f09098862e9985..b121c9f6c989761ebae5a89a5ffc0fab729571d5 100644 (file)
@@ -1,23 +1,13 @@
 /*
 
-
-TRDda.cxx - calibration algorithm to be run on monitoring server
-DAcase2.c
-
-AliTRDCalibraFillHisto - average pulse height/ vdrift calibration
-AliTRDCalibPadStatus - pad status calibration
-
-
-This program connects to the DAQ data source passed as argument
-and populates local "./result.txt" file with the ids of events received
-during the run.
-
-The program exits when being asked to shut down (daqDA_checkshutdown)
-or End of Run event.
-
-Messages on stdout are exported to DAQ log system.
-
-contact: alice-datesupport@cern.ch
+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
 
 */
 
@@ -49,7 +39,7 @@ extern "C" {
 //
 #include "AliRawReader.h"
 #include "AliRawReaderDate.h"
-#include "AliTRDRawStreamV2.h"
+#include "AliTRDrawStreamTB.h"
 #include "AliCDBManager.h"
 
 //
@@ -113,6 +103,17 @@ int main(int argc, char **argv) {
   Bool_t passvdrift  = kTRUE;    // if timebin okey
   Int_t  nbvdrift    = 0;     // number of events with entries for vdrift
 
+   // setting
+  // AliTRDrawStreamTB::SetNoDebug();
+  AliTRDrawStreamTB::SetNoErrorWarning();
+  AliTRDrawStreamTB::SetForceCleanDataOnly();
+  AliTRDrawStreamTB::AllowCorruptedData();
+  //AliTRDrawStreamTB::SetSkipCDH();
+  //AliTRDrawStreamTB::SetExtraWordsFix();
+  //AliTRDrawStreamTB::EnableDebugStream();
+  //AliTRDrawStreamTB::SetDumpHead(320);
+  //AliTRDrawStreamTB::SetDumpHead(80);
+
   
   /* main loop (infinite) */
   for(;;) {
@@ -152,7 +153,7 @@ int main(int argc, char **argv) {
     if ((eventT==PHYSICS_EVENT) && (passvdrift)) {
       //if (eventT==PHYSICS_EVENT) {
       AliRawReader *rawReader = new AliRawReaderDate((void*)event);
-      AliTRDRawStreamV2 *trdRawStream = new AliTRDRawStreamV2((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;