Bug fix in the constructor (thanks to A.Marin)
[u/mrichter/AliRoot.git] / EMCAL / macros / TestEMCALSimulation.C
CommitLineData
90cf79b3 1/*
2
3Simple macro to test EMCAL Simulation
4
5J.L. Klay
6LLNL
7
8*/
9
c2ef87c2 10void TestEMCALSimulation(Int_t nev =10, Bool_t raw = kFALSE) {
90cf79b3 11
12 AliSimulation simulator;
90cf79b3 13 simulator.SetConfigFile("Config.C");
14 simulator.SetMakeSDigits("EMCAL");
15 simulator.SetMakeDigits("EMCAL");
c2ef87c2 16 if(raw) simulator.SetWriteRawData("EMCAL","raw.root",kTRUE);
aaa3cb7c 17
2994ff3b 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("");
aaa3cb7c 25
26 TStopwatch timer;
27 timer.Start();
28
c2ef87c2 29// simulator.SetRunNumber(140234);
30
90cf79b3 31 simulator.Run(nev);
aaa3cb7c 32
90cf79b3 33 timer.Stop();
34 timer.Print();
35
36}