]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/macros/embedding/simmerge.C
updated for e-h analysis
[u/mrichter/AliRoot.git] / EMCAL / macros / embedding / simmerge.C
CommitLineData
6cc75819 1// Simulate events and merge with other events (simulated or real)
2// at the level of sdigits.
3// Input: sdigits of background file
4
5// Full exercise can be done automatically with other alice systems
6// in the examples in $ALICE_ROOT/test/merge
7
8// Author: GCB (from example in $ALICE_ROOT/test/merge)
9
10void simmerge()
11{
12
13 AliSimulation sim;
14 sim.SetRunSimulation(kTRUE);
15 sim.SetMakeSDigits("EMCAL");
16 sim.SetMakeDigits("EMCAL");
17 sim.MergeWith("bkg/galice.root",1);
18
19 sim.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20 sim.SetSpecificStorage("GRP/GRP/Data",
21 Form("local://%s",gSystem->pwd()));
22 sim.SetRunQA(":") ;
23 AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;
24
25 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
26 sim.SetQACycles(det, 1) ;
27 }
28
29 sim.Run(10);
30}