//
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
-#include "AliTRDrawFastStream.h"
-#include "AliTRDrawStreamBase.h"
+//#include "AliTRDrawFastStream.h"
+//#include "AliTRDrawStreamBase.h"
#include "AliLog.h"
//#include "AliCDBManager.h"
// AliTRDCalibPadStatus object
AliTRDCalibChamberStatus calipad = AliTRDCalibChamberStatus();
calipad.Init();
+
unsigned long32 runNb=0; //run number
// setting
- AliTRDrawFastStream::DisableSkipData();
+ //AliTRDrawFastStream::DisableSkipData();
AliLog::SetGlobalLogLevel(AliLog::kFatal);
/* read the file until EOF */
AliRawReader *rawReader = new AliRawReaderDate((void*)event);
rawReader->Select("TRD");
- calipad.ProcessEvent((AliRawReader *) rawReader,nevents);
+ calipad.ProcessEvent3((AliRawReader *) rawReader,nevents);
nevents++;
delete rawReader;
}
}
-
+ Int_t neventused = calipad.GetNumberEventNotEmpty();
+
/* report progress */
- printf("%d events processed and %d used\n",nevents_total,nevents);
+ printf("%d events processed and %d used\n",nevents_total,neventused);
/* write file in any case to see what happens in case of problems*/
TFile *fileTRD = new TFile(RESULT_FILE,"recreate");
calipad.AnalyseHisto();
calipad.Write("calibchamberstatus");
fileTRD->Close();
+
/* Send to amore */
SendToAmoreDB(&calipad,runNb);
printf("Failed to export file : %d\n",status);
return -1;
}
-
return status;