changes in the MagF constructor
[u/mrichter/AliRoot.git] / test / embedding / sim.C
CommitLineData
2858736f 1void sim(Int_t embrun)
2{
3 AliSimulation sim;
ae8c1d56 4 if (embrun == 4) {
5 AliCDBManager *cdbm = AliCDBManager::Instance();
6 cdbm->SetRun(atoi(gSystem->Getenv("DC_RUN")));
7 cdbm->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
8 cdbm->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
9 sim.SetMakeSDigits("ITS TPC TRD TOF");
10
11 sim.ConvertRaw2SDigits("raw.root","AliESDs.root");
12 return;
13 }
14
2858736f 15 if (embrun == 2) {
16 sim.SetRunGeneration(kFALSE);
17 sim.SetMakeSDigits("");
8217c4eb 18 sim.SetMakeDigitsFromHits("");
2858736f 19 }
20 else {
21 sim.SetRunGeneration(kTRUE);
22 sim.SetMakeSDigits("ITS TPC TRD TOF");
23 }
24 sim.SetRunSimulation(kTRUE);
25 sim.SetMakeDigits("ITS TPC TRD TOF");
26 sim.SetWriteRawData("ITS TPC TRD TOF","raw.root",kTRUE);
27 if (embrun == 1)
ae8c1d56 28 sim.MergeWith("../BackgroundSDigits/galice.root",1);
29
30 sim.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
31 sim.SetSpecificStorage("GRP/GRP/Data",
32 Form("local://%s",gSystem->pwd()));
33 sim.SetRunQA(":") ;
34 AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;
35
36 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
37 sim.SetQACycles(det, 1) ;
38 }
39
40// sim.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Full/");
41// sim.SetRunHLT("");
42// sim.SetQA(kFALSE);
2858736f 43
44 sim.Run(1);
45}