#include "AliMpDetElement.h"
#include "AliMpPlaneType.h"
#include "AliRawDataHeaderSim.h"
+#include "AliLoader.h"
#include "AliRunLoader.h"
#include <TClonesArray.h>
#include <TMath.h>
#include <TRandom.h>
#include <TStopwatch.h>
#include <TSystem.h>
+#include <TTree.h>
+
+#include <cstdio>
//-----------------------------------------------------------------------------
/// \class AliMUONPedestalEventGenerator
}
AliRunLoader* runLoader = LoadRun("recreate");
-
- runLoader->SetNumberOfEventsPerFile(nevents);
-
if (!runLoader)
{
AliError("Could not create RunLoader");
return;
}
+ runLoader->SetNumberOfEventsPerFile(nevents);
+
// Initialize event headers.
runLoader->MakeTree("E");
char command[256];
// Note the option -s. It is used in order to avoid
// the generation of SOR/EOR events.
- sprintf(command, "dateStream -c -D -o %s.LDC%d -# %d -C",
+ snprintf(command, 256, "dateStream -c -D -o %s.LDC%d -# %d -C",
fDateFileName.Data(), iFile, runLoader->GetNumberOfEvents());
pipe[iFile] = gSystem->OpenPipe(command, "w");
}
ldc += AliDAQ::NumberOfLdcs(kIDet) / AliDAQ::NumberOfDdls(kIDet);
char rawFileName[256];
- sprintf(rawFileName, "raw%d/%s",
+ snprintf(rawFileName, 256, "raw%d/%s",
iEvent, AliDAQ::DdlFileName(kIDet,iDDL));
// check existence and size of raw data file
for (Int_t iEvent = 0; iEvent < runLoader->GetNumberOfEvents(); ++iEvent)
{
char command[256];
- sprintf(command, "rm -r raw%d", iEvent);
+ snprintf(command, 256, "rm -r raw%d", iEvent);
gSystem->Exec(command);
}
TString baseDir = gSystem->WorkingDirectory();
char dirName[256];
- sprintf(dirName, "raw%d", event);
+ snprintf(dirName, 256, "raw%d", event);
gSystem->MakeDirectory(dirName);
if (!gSystem->ChangeDirectory(dirName))
{