Transition to NewIO
[u/mrichter/AliRoot.git] / PHOS / testsim.C
CommitLineData
88cb7938 1void testsim (Int_t nevent=1, const char *config="testconfig.C")
1975048f 2{
3 //
4 // Simple macro to run aliroot in a batch mode
5 //
6 cerr<<" ___________________________________________________________________ "<<endl;
7 cerr<<" "<<endl;
8 cerr<<" MESS ==> Beginning of the PHOS simulation."<<endl;
9 cerr<<" ___________________________________________________________________ "<<endl;
10 TStopwatch timer;
11 timer.Start();
12
493ef90d 13 gAlice->Init(config);
14 cerr<<" ___________________________________________________________________ "<<endl;
1975048f 15 cerr<<" "<<endl;
493ef90d 16 cerr<<" MESS ==> " << nevent << " : The simulation will last about 4 minutes."<<endl;
1975048f 17 cerr<<" ___________________________________________________________________ "<<endl;
18 gAlice->Run(nevent);
19 timer.Stop();
20 timer.Print();
88cb7938 21 cerr<<" ___________________________________________________________________ "<<endl;
1975048f 22 cerr<<" "<<endl;
b1adf94b 23 cerr << " MESS ==> Simulation ended successfully. " << endl ;
1975048f 24 cerr<<" ___________________________________________________________________ "<<endl;
88cb7938 25
26 //delete AliRunLoader::GetRunLoader(AliConfig::fgkDefaultEventFolderName);
27
1975048f 28}