]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/muondep/AccEffTemplates/sim.C
modified ranges for Phi exclusion cuts in order to be able to go accross 2Pi
[u/mrichter/AliRoot.git] / PWG / muondep / AccEffTemplates / sim.C
1 void sim(Int_t nev=100) 
2 {
3   if ( VAR_PURELY_LOCAL) {
4     TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG));
5   }
6
7   AliSimulation simulator;
8   simulator.SetRunQA("MUON:ALL");
9   simulator.SetRunHLT("");
10
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   
24
25   simulator.SetDefaultStorage(VAR_OCDB_PATH);
26   
27   if ( VAR_OCDB_SNAPSHOT )
28   {
29     simulator.SetCDBSnapshotMode("OCDB_sim.root");
30   }
31   
32   if ( ! VAR_PURELY_LOCAL ) {
33     
34     // MUON Tracker
35     simulator.SetSpecificStorage("MUON/Align/Data",VAR_SIM_ALIGNDATA);
36
37     simulator.SetSpecificStorage("ITS/Align/Data",  "alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal");
38     // Mag.field from OCDB
39     simulator.UseMagFieldFromGRP();
40
41     if ( VAR_USE_ITS_RECO )
42     {
43       simulator.UseVertexFromCDB();
44     }
45   }
46   
47    // The rest
48   TStopwatch timer;
49   timer.Start();
50   simulator.Run(nev);
51   timer.Stop();
52   timer.Print();
53 }