#include "AliRawReader.h"
#include "AliRawReaderDate.h"
#include "AliTPCmapper.h"
-#include "AliTPCRawStream.h"
#include "AliTPCROC.h"
#include "AliTPCCalROC.h"
#include "AliTPCCalPad.h"
return -1;
}
- AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
AliLog::SetModuleDebugLevel("RAW",-5);
TString monitoringType("YES");
TString cdb("local:///local/cdb");
Int_t forceTriggerId=-1;
+ Bool_t skipAmore=kFALSE;
if ( config.GetConfigurationMap()->GetValue("LaserTriggerName") ) {
laserTriggerName=config.GetConfigurationMap()->GetValue("LaserTriggerName")->GetName();
forceTriggerId=TMath::Nint(config.GetValue("ForceLaserTriggerId"));
printf("TPCCEnewda: Only processing triggers with Id: %d.\n",forceTriggerId);
}
-
+
+ if ( config.GetConfigurationMap()->GetValue("SkipAmore") ) {
+ skipAmore=((TObjString*)config.GetConfigurationMap()->GetValue("SkipAmore"))->GetString().Atoi();
+ printf("TPCCENEWda: Skip Amore set in config\n");
+ }
+
//subsribe to laser triggers only in physics partition
//if the trigger class is not available the return value is -1
//in this case we are most probably running as a standalone
// send the data to AMOREdb
if (stopWatch.RealTime()>updateInterval){
calibCE.Analyse();
- SendToAmoreDB(calibCE,runNb);
+ if (!skipAmore) SendToAmoreDB(calibCE,runNb);
stopWatch.Start();
} else {
stopWatch.Continue();
// calibCE.Write("tpcCalibCE");
// delete fileTPC;
- calibCE.DumpToFile(RESULT_FILE,"name=tpcCalibCE,type=3");
+ calibCE.DumpToFile(RESULT_FILE,"name=tpcCalibCE,type=4");
printf("TPCCEnewda: Wrote %s\n",RESULT_FILE);
/* store the result file on FES */
if (status) {
status = -2;
}
-
- printf("TPCCEnewda: Amore part %s\n",RESULT_FILE);
- SendToAmoreDB(calibCE,runNb);
+
+ if (!skipAmore) {
+ printf("TPCCEnewda: Amore part %s\n",RESULT_FILE);
+ SendToAmoreDB(calibCE,runNb);
+ }
return status;
}