]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/testsim.C
Number of maxima in parent cluster added
[u/mrichter/AliRoot.git] / PHOS / testsim.C
CommitLineData
1975048f 1void testsim (Int_t nevent=1, const char *config="testconfig.C")
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();
21 cerr<<" ___________________________________________________________________ "<<endl;
22 cerr<<" "<<endl;
b1adf94b 23 cerr << " MESS ==> Simulation ended successfully. " << endl ;
1975048f 24 cerr<<" ___________________________________________________________________ "<<endl;
25}