]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/macros/TestEMCALSimulation.C
Several typos in TrackQA and HybridTrackEfficiency Changed the old name in errors...
[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, Bool_t raw = kFALSE) {
11
12   AliSimulation simulator;
13   simulator.SetConfigFile("Config.C");
14   simulator.SetMakeSDigits("EMCAL");
15   simulator.SetMakeDigits ("EMCAL");
16
17   //simulator.SetRunGeneration(kFALSE); // Generate or not particles
18   //simulator.SetRunSimulation(kFALSE); // Generate or not HITS (detector response) or not, start from SDigits
19
20   if(raw)  simulator.SetWriteRawData("EMCAL","raw.root",kTRUE);
21
22   //OCDB settings
23   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
24   simulator.SetSpecificStorage("GRP/GRP/Data",
25                                Form("local://%s",gSystem->pwd()));
26
27   // In case of anchoring MC, comment previous OCDB lines
28   // select the appropriate year
29   //simulator.SetDefaultStorage("alien://Folder=/alice/data/2011/OCDB");
30   //simulator.UseVertexFromCDB();
31   //simulator.UseMagFieldFromGRP();
32
33   //Avoid the HLT to run
34   simulator.SetRunHLT("");
35
36   //Avoid QA
37   simulator.SetRunQA(":");
38   
39   TStopwatch timer;
40   timer.Start();
41
42   simulator.SetRunNumber(159582); // LHC11d run
43   
44   simulator.Run(nev);
45
46   timer.Stop();
47   timer.Print();
48
49 }