]>
Commit | Line | Data |
---|---|---|
90cf79b3 | 1 | /* |
2 | ||
3 | Simple macro to test EMCAL Simulation | |
4 | ||
5 | J.L. Klay | |
6 | LLNL | |
7 | ||
8 | */ | |
9 | ||
24f680c7 | 10 | void TestEMCALSimulation(Int_t nev =10, Bool_t raw = kFALSE) { |
90cf79b3 | 11 | |
12 | AliSimulation simulator; | |
90cf79b3 | 13 | simulator.SetConfigFile("Config.C"); |
14 | simulator.SetMakeSDigits("EMCAL"); | |
c8f9ea05 | 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 | ||
c2ef87c2 | 20 | if(raw) simulator.SetWriteRawData("EMCAL","raw.root",kTRUE); |
aaa3cb7c | 21 | |
2994ff3b | 22 | //OCDB settings |
23 | simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | |
24 | simulator.SetSpecificStorage("GRP/GRP/Data", | |
25 | Form("local://%s",gSystem->pwd())); | |
26 | ||
c8f9ea05 | 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 | ||
2994ff3b | 33 | //Avoid the HLT to run |
34 | simulator.SetRunHLT(""); | |
aaa3cb7c | 35 | |
c8f9ea05 | 36 | //Avoid QA |
37 | simulator.SetRunQA(":"); | |
38 | ||
aaa3cb7c | 39 | TStopwatch timer; |
40 | timer.Start(); | |
41 | ||
c8f9ea05 | 42 | simulator.SetRunNumber(159582); // LHC11d run |
c2ef87c2 | 43 | |
90cf79b3 | 44 | simulator.Run(nev); |
aaa3cb7c | 45 | |
90cf79b3 | 46 | timer.Stop(); |
47 | timer.Print(); | |
48 | ||
49 | } |