//
#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 */
}
}
-
+ 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;
printf("TRDQAda: Waring: Failed to write one of the calib objects to the AMORE database\n");
// reset env var
if (amoreDANameorig) gSystem->Setenv("AMORE_DA_NAME",amoreDANameorig);
-}
\ No newline at end of file
+}
+
+