Fixes for bug #52499: Field polarities inconsistiency
[u/mrichter/AliRoot.git] / PHOS / macros / Embed / Sim.C
... / ...
CommitLineData
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
8 AliPHOSSimParam * phosSimParam = AliPHOSSimParam::GetInstance() ;
9
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) ;
19 phosSimParam->SetStreamDigits(1) ; //Mark this stream as digits and not SDigits
20
21 sim.Run(nevents);
22
23
24}