*/
-#define RESULT_FILE "trdCalibrationv.root"
+#define RESULT_FILE "trdVdrift.root"
+#define FILE_ID "VDRIFT"
extern "C" {
//
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
-#include "AliTRDrawStreamTB.h"
+#include "AliTRDrawStream.h"
+#include "AliTRDrawStreamBase.h"
//
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);
+ // AliTRDrawStream::SetNoDebug();
+ AliTRDrawStream::SetNoErrorWarning();
+ //AliTRDrawStream::SetForceCleanDataOnly();
+ AliTRDrawStream::AllowCorruptedData();
+ AliTRDrawStream::DisableStackNumberChecker();
+ AliTRDrawStream::DisableStackLinkNumberChecker();
+ //AliTRDrawStream::SetSkipCDH();
+ //AliTRDrawStream::SetExtraWordsFix();
+ //AliTRDrawStream::EnableDebugStream();
+ //AliTRDrawStream::SetDumpHead(320);
+ //AliTRDrawStream::SetDumpHead(80);
/* main loop (infinite) */
if ((eventT==PHYSICS_EVENT) && (passvdrift)) {
//if (eventT==PHYSICS_EVENT) {
AliRawReader *rawReader = new AliRawReaderDate((void*)event);
- AliTRDrawStreamTB *trdRawStream = new AliTRDrawStreamTB((AliRawReader *) rawReader);
- Int_t result = calibra->ProcessEventDAQ(trdRawStream,(Bool_t)nevents_physics);
+ rawReader->Select("TRD");
+ AliTRDrawStream *trdRawStream = new AliTRDrawStream((AliRawReader *) rawReader);
+ Int_t result = calibra->ProcessEventDAQ((AliTRDrawStreamBase *) trdRawStream,(Bool_t)nbvdrift);
if(!result) passvdrift = kFALSE;
else nbvdrift += (Int_t) result/2;
-
delete trdRawStream;
delete rawReader;
+
}
if(eventT==PHYSICS_EVENT){
fileTRD->Close();
status=0;
// Export the file in any case to see if problems
- if(daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE)) status = -2;
+ if(daqDA_FES_storeFile(RESULT_FILE,FILE_ID)) status = -2;
delete fileTRD;