]>
Commit | Line | Data |
---|---|---|
b8ebdef6 | 1 | void sim(Int_t nev=VAR_EVENTS_PER_JOB) |
eb5de7ee | 2 | { |
3 | if ( VAR_PURELY_LOCAL) { | |
4 | TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG)); | |
5 | } | |
6 | ||
b7a421b8 | 7 | AliSimulation simulator; |
b7a421b8 | 8 | simulator.SetRunQA("MUON:ALL"); |
9 | simulator.SetRunHLT(""); | |
10 | ||
3e7b6e7b | 11 | if ( VAR_USE_ITS_RECO ) |
12 | { | |
13 | simulator.SetMakeSDigits("MUON T0 VZERO FMD"); // T0 and VZERO for trigger efficiencies, FMD for diffractive studies | |
14 | simulator.SetMakeDigitsFromHits("ITS"); // ITS needed to propagate the simulated vertex | |
15 | simulator.SetMakeDigits("MUON T0 VZERO FMD");// ITS"); // ITS needed to propagate the simulated vertex | |
16 | } | |
17 | else | |
18 | { | |
19 | simulator.SetTriggerConfig("MUON"); | |
20 | simulator.SetMakeSDigits("MUON"); | |
21 | simulator.SetMakeDigits("MUON");// ITS"); // ITS needed to propagate the simulated vertex | |
22 | } | |
23 | ||
eb5de7ee | 24 | |
b7a421b8 | 25 | simulator.SetDefaultStorage(VAR_OCDB_PATH); |
26 | ||
27 | if ( VAR_OCDB_SNAPSHOT ) | |
28 | { | |
29 | simulator.SetCDBSnapshotMode("OCDB_sim.root"); | |
30 | } | |
b7a421b8 | 31 | |
eb5de7ee | 32 | if ( ! VAR_PURELY_LOCAL ) { |
33 | ||
34 | // MUON Tracker | |
8907673b | 35 | simulator.SetSpecificStorage("MUON/Align/Data",VAR_SIM_ALIGNDATA); |
30138a88 | 36 | |
37 | simulator.SetSpecificStorage("ITS/Align/Data", "alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal"); | |
eb5de7ee | 38 | // Mag.field from OCDB |
39 | simulator.UseMagFieldFromGRP(); | |
40 | ||
3e7b6e7b | 41 | if ( VAR_USE_ITS_RECO ) |
42 | { | |
43 | simulator.UseVertexFromCDB(); | |
44 | } | |
eb5de7ee | 45 | } |
b7a421b8 | 46 | |
3e7b6e7b | 47 | // The rest |
b7a421b8 | 48 | TStopwatch timer; |
49 | timer.Start(); | |
50 | simulator.Run(nev); | |
51 | timer.Stop(); | |
52 | timer.Print(); | |
53 | } |