Test suite for event-embedding (Adam).
[u/mrichter/AliRoot.git] / test / embedding / sim.C
CommitLineData
2858736f 1void sim(Int_t embrun)
2{
3 AliSimulation sim;
4 if (embrun == 2) {
5 sim.SetRunGeneration(kFALSE);
6 sim.SetMakeSDigits("");
7 }
8 else {
9 sim.SetRunGeneration(kTRUE);
10 sim.SetMakeSDigits("ITS TPC TRD TOF");
11 }
12 sim.SetRunSimulation(kTRUE);
13 sim.SetMakeDigits("ITS TPC TRD TOF");
14 sim.SetWriteRawData("ITS TPC TRD TOF","raw.root",kTRUE);
15 if (embrun == 1)
16 sim.MergeWith("../Background/galice.root",1);
17 sim.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-12-Release/Full/");
18 sim.SetRunHLT("");
19 sim.SetQA(kFALSE);
20
21 sim.Run(1);
22}