/*
-
-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
*/
//
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
-#include "AliTRDRawStreamV2.h"
+#include "AliTRDrawStreamTB.h"
#include "AliCDBManager.h"
//
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(;;) {
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;