]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/muondep/AccEffTemplates/sim.C
new sub-directory
[u/mrichter/AliRoot.git] / PWG / muondep / AccEffTemplates / sim.C
1 void sim(Int_t nev=100) 
2 {  
3   AliSimulation simulator;
4   simulator.SetTriggerConfig("MUON");
5   simulator.SetRunQA("MUON:ALL");
6   simulator.SetRunHLT("");
7
8   simulator.SetMakeSDigits("MUON");
9   simulator.SetMakeDigits("MUON");// ITS"); // ITS needed to propagate the simulated vertex
10 //  simulator.SetMakeDigitsFromHits("ITS"); // ITS needed to propagate the simulated vertex
11   
12   // raw OCDB
13 //  simulator.SetDefaultStorage("alien://folder=/alice/data/2011/OCDB?cacheFold=/local/cdb");
14   simulator.SetDefaultStorage(VAR_OCDB_PATH);
15   
16   if ( VAR_OCDB_SNAPSHOT )
17   {
18     simulator.SetCDBSnapshotMode("OCDB_sim.root");
19   }
20   // MUON Tracker
21   simulator.SetSpecificStorage("MUON/Align/Data","alien://folder=/alice/simulation/2008/v4-15-Release/Ideal");
22   
23   // Vertex and Mag.field from OCDB
24 //  simulator.UseVertexFromCDB();
25   simulator.UseMagFieldFromGRP();
26   
27   // The rest
28   TStopwatch timer;
29   timer.Start();
30   simulator.Run(nev);
31   timer.Stop();
32   timer.Print();
33 }