]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/TestEMCALSimulation.C
pdf figures to compile with pdflatex
[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 =1, Bool_t raw = kFALSE) {
11
12   AliSimulation simulator;
13   simulator.SetConfigFile("Config.C");
14   simulator.SetMakeSDigits("EMCAL");
15   simulator.SetMakeDigits("EMCAL");
16   if(raw)  simulator.SetWriteRawData("EMCAL","raw.root",kTRUE);
17
18   //OCDB settings
19   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20   simulator.SetSpecificStorage("GRP/GRP/Data",
21                                Form("local://%s",gSystem->pwd()));
22
23   //Avoid the HLT to run
24   simulator.SetRunHLT("");
25
26   TStopwatch timer;
27   timer.Start();
28
29 //  simulator.SetRunNumber(140234);
30   
31   simulator.Run(nev);
32
33   timer.Stop();
34   timer.Print();
35
36 }