]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/testsim.C
Functions renamed to get a prefix PHOS
[u/mrichter/AliRoot.git] / PHOS / testsim.C
1 void 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
13   gAlice->Init(config); 
14   cerr<<" ___________________________________________________________________ "<<endl;
15   cerr<<" "<<endl;
16   cerr<<"             MESS ==> " << nevent << " : The simulation will last about 4 minutes."<<endl;
17    cerr<<" ___________________________________________________________________ "<<endl;
18   gAlice->Run(nevent);
19   timer.Stop();
20   timer.Print();
21    cerr<<" ___________________________________________________________________ "<<endl;
22   cerr<<" "<<endl;
23   cerr << "             MESS ==> Simulation ended successfully. " << endl ; 
24   cerr<<" ___________________________________________________________________ "<<endl;
25 }