@@ -25,11 +25,11 @@ class GeneratorPhiResonance : public o2::eventgen::GeneratorPythia8
2525{
2626public :
2727 GeneratorPhiResonance (int resoPDG = 999999 ,
28- float ptMin = 0.0 , float ptMax = 50.0 ,
28+ float ptMin = 0.0 , float ptMax = 50.0 , float ptMaxPhi = 100.0 ,
2929 float yMin = -1.0 , float yMax = 1.0 ,
3030 std ::string pythiaCfgMb = "${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_136tev.cfg" ,
3131 int signalInterval = 3 )
32- : GeneratorPythia8 (), mResoPDG (resoPDG ), mPtMin (ptMin ), mPtMaxPhiPhi (ptMax ), mYMin (yMin ), mYMax (yMax ), mSignalInterval (signalInterval )
32+ : GeneratorPythia8 (), mResoPDG (resoPDG ), mPtMin (ptMin ), mPtMaxPhiPhi (ptMax ), mPtMaxPhi ( ptMaxPhi ), mYMin (yMin ), mYMax (yMax ), mSignalInterval (signalInterval )
3333 {
3434
3535 // 1. Define Custom Signal Resonance (PDG: 999999) decay into standard Phis (333 333)
@@ -178,7 +178,7 @@ private:
178178 }
179179 else
180180 {
181- pt = gRandom -> Uniform (mPtMin , 100.0 );
181+ pt = gRandom -> Uniform (mPtMin , mPtMaxPhi );
182182 }
183183
184184 const double px = pt * std ::cos (phi );
@@ -207,14 +207,14 @@ private:
207207 int mEventCounter = 0 ;
208208 int mResoPDG ;
209209 int mSignalInterval ;
210- float mPtMin , mPtMaxPhiPhi , mYMin , mYMax ;
210+ float mPtMin , mPtMaxPhiPhi , mPtMaxPhi , mYMin , mYMax ;
211211
212212 Pythia8 ::Pythia mPythiaGun ;
213213 Pythia8 ::Pythia pythiaObjectMinimumBias ;
214214};
215215
216216/// Entry point for o2-sim
217- FairGenerator * generatePhiResonanceGun (int resoPDG = 999999 , float ptMin = 0.0 , float ptMax = 50.0 , float yMin = -1.0 , float yMax = 1.0 , std ::string pythiaCfgMb = "" , int signalInterval = 3 )
217+ FairGenerator * generatePhiResonanceGun (int resoPDG = 999999 , float ptMin = 0.0 , float ptMax = 50.0 , float ptMaxPhi = 100.0 , float yMin = -1.0 , float yMax = 1.0 , std ::string pythiaCfgMb = "" , int signalInterval = 3 )
218218{
219- return new GeneratorPhiResonance (resoPDG , ptMin , ptMax , yMin , yMax , pythiaCfgMb , signalInterval );
219+ return new GeneratorPhiResonance (resoPDG , ptMin , ptMax , ptMaxPhi , yMin , yMax , pythiaCfgMb , signalInterval );
220220}
0 commit comments