]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/testsim.C
La Navale continue ses frappes
[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   nevent=10 ; 
14  
15   gAlice->Init(config);
16    cerr<<" ___________________________________________________________________ "<<endl;
17   cerr<<" "<<endl;
18   cerr<<"             MESS ==> The simulation will last about 4 minutes."<<endl;
19    cerr<<" ___________________________________________________________________ "<<endl;
20   gAlice->Run(nevent);
21   timer.Stop();
22   timer.Print();
23    cerr<<" ___________________________________________________________________ "<<endl;
24   cerr<<" "<<endl;
25   cerr << "             MESS ==> Simulation ended successfully. " << endl ; 
26   cerr<<" ___________________________________________________________________ "<<endl;
27 }