Skip to content

Commit 2936af4

Browse files
committed
fix bugs in fwd configuration
1 parent 1361b36 commit 2936af4

5 files changed

Lines changed: 18 additions & 4 deletions

‎MC/config/PWGDQ/external/generator/generator_pythia8_StarlightTriggered_withGap.C‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,20 @@ FairGenerator*
193193
gen->addSignalPDGs(11); // e
194194
// auto seed = (gRandom->TRandom::GetSeed() % 900000000);
195195
// gen->readString("Random:setSeed on");
196+
// gen->readString("Random:seed " + std::to_string(seed));
197+
return gen;
198+
}
199+
200+
FairGenerator*
201+
GeneratorPhotoproductionFwd(int triggerGap, int gentype = 0, double rapidityMin = -1.5, double rapidityMax = 1.5)
202+
{
203+
auto gen = new o2::eventgen::GeneratorPythia8StarlightTriggeredWithGap(triggerGap, gentype);
204+
gen->setRapidityRange(rapidityMin, rapidityMax);
205+
gen->addSignalPDGs(443); // J/Psi
206+
gen->addSignalPDGs(100443); // Psi(2S)
207+
gen->addSignalPDGs(13); // mu
208+
// auto seed = (gRandom->TRandom::GetSeed() % 900000000);
209+
// gen->readString("Random:setSeed on");
196210
// gen->readString("Random:seed " + std::to_string(seed));
197211
return gen;
198212
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[GeneratorExternal]
22
fileName = ${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/external/generator/generator_pythia8_StarlightTriggered_withGap.C
3-
funcName = GeneratorPhotoproduction(2, 3, 2.0, 4.5)
3+
funcName = GeneratorPhotoproduction(2, 3, -2.0, -4.5)
44
[GeneratorPythia8]
55
config = ${O2DPG_MC_CONFIG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_PbPb_536tev.cfg
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[GeneratorExternal]
22
fileName = ${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/external/generator/generator_pythia8_StarlightTriggered_withGap.C
3-
funcName = GeneratorPhotoproduction(2, 4, 2.0, 4.5)
3+
funcName = GeneratorPhotoproduction(2, 4, -2.0, -4.5)
44
[GeneratorPythia8]
55
config = ${O2DPG_MC_CONFIG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_PbPb_536tev.cfg

‎MC/config/PWGDQ/ini/tests/Generator_InjectedCoherentCharmoniaFwdy_PbPb5TeV.C‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int External() {
1616

1717
int checkPdgSignal[2] = {443, 100443};
1818
int checkPdgDecay = 13;
19-
double rapiditymin = 2.0; double rapiditymax = 4.5;
19+
double rapiditymin = -2.0; double rapiditymax = -4.5;
2020

2121
int nLeptons{};
2222
int nAntileptons{};

‎MC/config/PWGDQ/ini/tests/Generator_InjectedIncoherentCharmoniaFwdy_PbPb5TeV.C‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int External() {
1616

1717
int checkPdgSignal[2] = {443, 100443};
1818
int checkPdgDecay = 13;
19-
double rapiditymin = 2.0; double rapiditymax = 4.5;
19+
double rapiditymin = -2.0; double rapiditymax = -4.5;
2020

2121
int nLeptons{};
2222
int nAntileptons{};

0 commit comments

Comments
 (0)