]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/TestEMCALSimulation.C
added comment for loading geometry and included a check on gGeoManager to avoid seg...
[u/mrichter/AliRoot.git] / EMCAL / macros / TestEMCALSimulation.C
1 /* 
2
3 Simple macro to test EMCAL Simulation
4
5 J.L. Klay
6 LLNL
7  
8 */
9
10 void TestEMCALSimulation(Int_t nev =10) {
11
12   AliSimulation simulator;
13   simulator.SetConfigFile("Config.C");
14   simulator.SetMakeSDigits("EMCAL");
15   simulator.SetMakeDigits("EMCAL");
16   simulator.SetWriteRawData("EMCAL","raw.root",kTRUE);
17
18
19   TStopwatch timer;
20   timer.Start();
21
22   simulator.Run(nev);
23
24   timer.Stop();
25   timer.Print();
26
27 }