In vmctest/production:
[u/mrichter/AliRoot.git] / test / vmctest / production / sim.C
CommitLineData
fd03ab3d 1// $Id$
2
3void sim(Int_t nev=20) {
4
5 AliSimulation simulator;
6 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
7 simulator.SetMakeDigitsFromHits("ITS TPC");
8
9//
10// Ideal OCDB
11
12 simulator.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");
13
14//
15// Mean verrtex from RAW OCDB
16
17 simulator.SetSpecificStorage("GRP/Calib/MeanVertexSPD", "alien://folder=/alice/data/2010/OCDB");
18
19//
20// SDD from RAW OCDB
21
22 simulator.SetSpecificStorage("ITS/Calib/CalibSDD","alien://Folder=/alice/data/2010/OCDB");
23
24//
25// EMCAL from RAW OCDB
26
27 simulator.SetSpecificStorage("EMCAL/Calib/Data","alien://Folder=/alice/data/2010/OCDB");
28
29//
30// TRD from RAW OCDB
31
32 simulator.SetSpecificStorage("TRD/Calib/ChamberStatus","alien://folder=/alice/data/2010/OCDB");
33 simulator.SetSpecificStorage("TRD/Calib/PadStatus","alien://folder=/alice/data/2010/OCDB");
34
35//
36// V0 from RAW OCDB
37
38 simulator.SetSpecificStorage("VZERO/Trigger/Data","alien://folder=/alice/data/2010/OCDB");
39 simulator.SetSpecificStorage("VZERO/Calib/RecoParam","alien://folder=/alice/data/2010/OCDB");
40 simulator.SetSpecificStorage("VZERO/Calib/Data","alien://folder=/alice/data/2010/OCDB");
41 simulator.SetSpecificStorage("VZERO/Calib/TimeSlewing","alien://folder=/alice/data/2010/OCDB");
42 simulator.SetSpecificStorage("VZERO/Calib/TimeDelays","alien://folder=/alice/data/2010/OCDB");
43
44//
45// TOF from RAW OCDB
46
47// simulator.SetSpecificStorage("TOF/Calib/Status","alien://folder=/alice/data/2010/OCDB");
48
49//
50// Read GRP Data from RAW
51
52 simulator.SetSpecificStorage("GRP/GRP/Data", "alien://Folder=/alice/data/2010/OCDB");
53
54//
55// Vertex and Mag.field from OCDB
56
57 simulator.UseVertexFromCDB();
58 simulator.UseMagFieldFromGRP();
59
60//
61// The rest
62
63 TStopwatch timer;
64 timer.Start();
65 simulator.Run(nev);
66 timer.Stop();
67 timer.Print();
68}