#include "AliSimulation.h"
#include "AliVertexGenFile.h"
+#include "AliDAQConfig.h"
+
ClassImp(AliSimulation)
fEventsPerFile(),
fBkgrdFileNames(NULL),
fUseBkgrdVertex(kTRUE),
- fRegionOfInterest(kTRUE)
+ fRegionOfInterest(kFALSE)
{
// create simulation object with default parameters
AliInfo(Form("initializing gAlice with config file %s",
fConfigFileName.Data()));
- gAlice->Init(fConfigFileName.Data());
+ StdoutToAliInfo(StderrToAliError(
+ gAlice->Init(fConfigFileName.Data());
+ ););
AliRunLoader* runLoader = gAlice->GetRunLoader();
if (!runLoader) {
AliError(Form("gAlice has no run loader object. "
}
AliInfo("running gAlice");
- gAlice->Run(nEvents);
+ StdoutToAliInfo(StderrToAliError(
+ gAlice->Run(nEvents);
+ ););
delete runLoader;
- AliInfo("execution time:");
- stopwatch.Print();
+ AliInfo(Form("Execution time: R:%.2fs C:%.2fs",
+ stopwatch.RealTime(),stopwatch.CpuTime()));
return kTRUE;
}
TStopwatch stopwatchDet;
stopwatchDet.Start();
det->Hits2SDigits();
- AliInfo(Form("execution time for %s:", det->GetName()));
- stopwatchDet.Print();
+ AliInfo(Form("Execution time for %s: R:%.2fs C:%.2fs",
+ det->GetName(),stopwatchDet.RealTime(),stopwatchDet.CpuTime()));
}
}
delete runLoader;
- AliInfo("execution time:");
- stopwatch.Print();
+ AliInfo(Form("Execution time: R:%.2fs C:%.2fs",
+ stopwatch.RealTime(),stopwatch.CpuTime()));
return kTRUE;
}
delete manager;
- AliInfo("execution time:");
- stopwatch.Print();
-
+ AliInfo(Form("Execution time: R:%.2fs C:%.2fs",
+ stopwatch.RealTime(),stopwatch.CpuTime()));
+
return kTRUE;
}
TStopwatch stopwatch;
stopwatch.Start();
- AliRunLoader* runLoader = LoadRun();
+ AliRunLoader* runLoader = LoadRun("READ");
if (!runLoader) return kFALSE;
TString detStr = detectors;
}
delete runLoader;
+ //PH Temporary fix to avoid interference with the PHOS loder/getter
+ //PH The problem has to be solved in more general way 09/06/05
- AliInfo("execution time:");
- stopwatch.Print();
+ AliInfo(Form("Execution time: R:%.2fs C:%.2fs",
+ stopwatch.RealTime(),stopwatch.CpuTime()));
return kTRUE;
}
}
}
- AliInfo("execution time:");
- stopwatch.Print();
+ AliInfo(Form("Execution time: R:%.2fs C:%.2fs",
+ stopwatch.RealTime(),stopwatch.CpuTime()));
return kTRUE;
}
{
// convert raw data DDL files to a DATE file with the program "dateStream"
- // DATE setup
- const Int_t kNDetectors = 17;
- const char* kDetectors[kNDetectors] = {"TPC", "ITSSPD", "ITSSDD", "ITSSSD",
- "TRD", "TOF", "PHOS", "RICH",
- "EMCAL", "MUON", "MUTR", "ZDC",
- "PMD", "START", "VZERO", "CRT",
- "FMD"};
- const Int_t kDetectorDDLs[kNDetectors] = {216, 20, 12, 16,
- 18, 72, 20, 20,
- 22, 20, 2, 1,
- 6, 1, 1, 1,
- 1};
- const Float_t kDetectorLDCs[kNDetectors] = {46, 2, 2, 1,
- 4, 2, 1, 2,
- 1, 2, 1, 1,
- 1, 0.5, 0.5, 1,
- 1};
-
char* path = gSystem->Which(gSystem->Getenv("PATH"), "dateStream");
if (!path) {
AliError("the program dateStream was not found");
if (!file) continue;
fseek(file, 0, SEEK_END);
unsigned long size = ftell(file);
- fseek(file, 0, SEEK_SET);
- if (!size) {
- fclose(file);
- continue;
- }
+ fclose(file);
+ if (!size) continue;
if (ldcID != prevLDC) {
fprintf(pipe, " LDC Id %d\n", ldcID);
// ALIMDC setup
const Int_t kDBSize = 1000000000;
+ const Int_t kTagDBSize = 1000000000;
const Bool_t kFilter = kFALSE;
const Int_t kCompression = 1;
gSystem->Exec("rm -rf /tmp/mdc1");
gSystem->Exec("rm -rf /tmp/mdc2");
+
+ gSystem->Exec("mkdir /tmp/mdc1");
+ gSystem->Exec("mkdir /tmp/mdc2");
+
char command[256];
- sprintf(command, "alimdc %d %d %d %s",
- kDBSize, kFilter, kCompression, dateFileName);
+ sprintf(command, "alimdc %d %d %d %d %s",
+ kDBSize, kTagDBSize, kFilter, kCompression, dateFileName);
Int_t result = gSystem->Exec(command);
sprintf(command, "mv /tmp/mdc1/*.root %s", rootFileName);
gSystem->Exec(command);