]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/testsim.C
A new (final?) geometry developed
[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
b1adf94b 13 nevent=10 ;
1975048f 14
15 gAlice->Init(config);
16 cerr<<" ___________________________________________________________________ "<<endl;
17 cerr<<" "<<endl;
b1adf94b 18 cerr<<" MESS ==> The simulation will last about 4 minutes."<<endl;
1975048f 19 cerr<<" ___________________________________________________________________ "<<endl;
20 gAlice->Run(nevent);
21 timer.Stop();
22 timer.Print();
23 cerr<<" ___________________________________________________________________ "<<endl;
24 cerr<<" "<<endl;
b1adf94b 25 cerr << " MESS ==> Simulation ended successfully. " << endl ;
1975048f 26 cerr<<" ___________________________________________________________________ "<<endl;
27}