///
/// \author L. Aphecetche
+using std::ifstream;
/// \cond CLASSIMP
ClassImp(AliMUONTriggerSubprocessor)
/// \endcond
}
//_____________________________________________________________________________
-void
+Bool_t
AliMUONTriggerSubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
{
/// When starting a new run, reads in the trigger online files.
{
Master()->Log("FATAL ERROR : DA does not seem to have been run !!!");
Master()->Invalidate();
- return;
+ return kFALSE;
}
// OK. We have an exportedFiles.dat file at hand.
WhichFilesToRead(GetFileName("EXPORTED").Data(),
globalFile,regionalFile,localFile,lutFile);
+ if ((globalFile+regionalFile+localFile+lutFile) == 0) {
+ Master()->Log("No file(s) to be processed for this run. Exiting.");
+ return kTRUE;
+ }
+
delete fRegionalConfig; fRegionalConfig = 0x0;
delete fLocalMasks; fLocalMasks = 0x0;
delete fGlobalConfig; fGlobalConfig = 0x0;
delete fLUT; fLUT = 0x0;
- Master()->Log(Form("Reading trigger masks for Run %d startTime %ld endTime %ld",
+ Master()->Log(Form("Reading trigger masks for Run %d startTime %u endTime %u",
run,startTime,endTime));
Int_t check =
if ( check )
{
- Master()->Log("Could not read some input file(s). Aborting");
+ Master()->Log("Could not read some input file(s). Exiting");
Master()->Invalidate();
- return;
+ return kFALSE;
}
+ if ( regionalFile ) globalFile = kTRUE;
+
if ( regionalFile ) fRegionalConfig = new AliMUONRegionalTriggerConfig();
if ( localFile ) fLocalMasks = new AliMUON1DArray(AliMpConstants::TotalNofLocalBoards()+1);
if ( globalFile ) fGlobalConfig = new AliMUONGlobalCrateConfig();
{
fLUT = new AliMUONTriggerLut;
- Master()->Log(Form("Reading trigger LUT for Run %d startTime %ld endTime %ld",
+ Master()->Log(Form("Reading trigger LUT for Run %d startTime %u endTime %u",
run,startTime,endTime));
ok = tio.ReadLUT(GetFileName("LUT").Data(),*fLUT);
fLUT = 0x0;
}
}
+ return kTRUE;
}
//_____________________________________________________________________________