#define RESULT_FILE "EMCALCalibSignal.root"
#define FILE_ID "EMCALCalibSignal"
#define AliDebugLevel() -1
-#define ClassName "emcCalibSignal"
+#define FILE_ClassName "emcCalibSignal"
extern "C" {
#include <daqDA.h>
// EMC calibration-helper algorithm includes
//
#include "AliCaloCalibSignal.h"
+#include <TFile.h> // ROOT
/*
Main routine, EMC signal detector algorithm to be run on EMC LDC
nevents++;
// Signal calibration
- calibSignal->ProcessEvent(in);
+ calibSignal->ProcessEvent(in, aliHeader);
}
} // loop over all events in file
/* cleanup the reading handles */
TFile f(RESULT_FILE, "recreate");
if (!f.IsZombie()) {
f.cd();
- calibSignal->Write(ClassName);
+ calibSignal->Write(FILE_ClassName);
f.Close();
- printf("Object saved to file \"%s\" as \"%s\".\n", RESULT_FILE, ClassName);
+ printf("Object saved to file \"%s\" as \"%s\".\n", RESULT_FILE, FILE_ClassName);
}
else {
printf("Could not save the object to file \"%s\".\n", RESULT_FILE);
#define RESULT_FILE "EMCALCalibPedestal.root"
#define FILE_ID "EMCALCalibPedestal"
#define AliDebugLevel() -1
-#define ClassName "emcCalibPedestal"
+#define FILE_ClassName "emcCalibPedestal"
extern "C" {
#include <daqDA.h>
// EMC calibration-helper algorithm includes
//
#include "AliCaloCalibPedestal.h"
+#include <TFile.h> // ROOT
/*
Main routine, EMC pedestal detector algorithm to be run on EMC LDC
TFile f(RESULT_FILE, "recreate");
if (!f.IsZombie()) {
f.cd();
- calibPedestal->Write(ClassName);
+ calibPedestal->Write(FILE_ClassName);
f.Close();
- printf("Object saved to file \"%s\" as \"%s\".\n", RESULT_FILE, ClassName);
+ printf("Object saved to file \"%s\" as \"%s\".\n", RESULT_FILE, FILE_ClassName);
}
else {
printf("Could not save the object to file \"%s\".\n", RESULT_FILE);