Skip to content

Commit 3e9d3ee

Browse files
committed
Made phi max pT configurable
1 parent 8912261 commit 3e9d3ee

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎MC/config/PWGLF/ini/GeneratorLF_phiphiInvMass.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[GeneratorExternal]
22
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/GeneratorLF_phiphi.C
3-
funcName=generatePhiResonanceGun(999999, 0.0, 50.0, -1.0, 1.0, "${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_136tev.cfg", 3)
3+
funcName=generatePhiResonanceGun(999999, 0.0, 50.0, 100.0, -1.0, 1.0, "${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_136tev.cfg", 3)
44

55
[GeneratorPythia8]
66
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_136tev.cfg

‎MC/config/PWGLF/pythia8/GeneratorLF_phiphi.C‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class GeneratorPhiResonance : public o2::eventgen::GeneratorPythia8
2525
{
2626
public:
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

Comments
 (0)