Update master to aliroot
[u/mrichter/AliRoot.git] / PHOS / macros / Embed / Sim.C
CommitLineData
70895cc0 1void Sim(const Int_t nevents=10,
2 const Int_t debLevel=0)
3{
4 //make simulation of MC events and merging
5 //with previouly reconstructed Digits from
6 //raw event. We assume they are in dir "Bg"
7
53bd4056 8 AliPHOSSimParam * phosSimParam = AliPHOSSimParam::GetInstance() ;
9
70895cc0 10 AliLog::SetGlobalDebugLevel(debLevel);
11 AliSimulation sim;
12 sim.SetMakeSDigits("PHOS") ;
13 sim.SetMakeDigits("PHOS") ;
14// sim.SetMakeDigitsFromHits("ITS TPC");
15// sim.SetMakeTrigger("PHOS");
16 //Set path to reconstricted raw digits
17 //and set number of simulated events per one raw
18 sim.MergeWith("Bg/galice.root",1) ;
53bd4056 19 phosSimParam->SetStreamDigits(1) ; //Mark this stream as digits and not SDigits
20
70895cc0 21 sim.Run(nevents);
22
23
24}