Root6-enabled version
[u/mrichter/AliRoot.git] / test / rawmerge / merge.C
1 void merge(Int_t run=117048)
2 {
3   AliCDBManager *cdbm = AliCDBManager::Instance();
4   cdbm->SetRun(run);
5   cdbm->SetDefaultStorage("local://$ALICE_ROOT/OCDB");     
6   cdbm->SetSpecificStorage("GRP/GRP/Data",Form("local://%s","$ALICE_ROOT/test/rawmerge"));  
7   //cdbm->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));  
8
9   AliGeomManager::LoadGeometry("geometry.root");
10   TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1., AliMagF::k5kG));
11
12   AliSimulation sim;
13   sim.SetSeed(12345);
14   sim.SetRunGeneration(0);
15   sim.SetRunSimulation(0);
16   sim.SetRunHLT("");
17   sim.SetNumberOfEvents(1);
18   sim.SetMakeSDigits("");
19   sim.SetMakeDigits("ITS TPC");
20   sim.SetMakeDigitsFromHits("");
21   sim.SetGAliceFile("galice.root");
22   sim.SetGeometryFile("geometry.root");
23   sim.MergeWith("$ALICE_ROOT/test/rawmerge/bkg/galice.root",1);
24   sim.Run();
25   return;
26 }