Skip to content

Commit 2e7eb8b

Browse files
committed
Modify O2DPG_ROOT to O2O2DPG_MC_CONFIG_ROOT
1 parent a29a0a4 commit 2e7eb8b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

MC/config/PWGDQ/external/generator/GeneratorHFToMu_EvtGenFwdY_gaptriggered_dq.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "Pythia8/Pythia.h"
44
#include "TRandom.h"
55

6-
R__ADD_INCLUDE_PATH($O2DPG_ROOT/MC/config/PWGDQ/EvtGen)
6+
R__ADD_INCLUDE_PATH($O2DPG_MC_CONFIG_ROOT/MC/config/PWGDQ/EvtGen)
77
#include "GeneratorEvtGen.C"
88

99
#include <string>
@@ -25,7 +25,7 @@ public:
2525
mInverseTriggerRatio = inputTriggerRatio;
2626
// define minimum bias event generator
2727
auto seed = (gRandom->TRandom::GetSeed() % 900000000);
28-
TString pathconfigMB = gSystem->ExpandPathName("$O2DPG_ROOT/MC/config/PWGDQ/pythia8/generator/pythia8_inel_triggerGap.cfg");
28+
TString pathconfigMB = gSystem->ExpandPathName("$O2DPG_MC_CONFIG_ROOT/MC/config/PWGDQ/pythia8/generator/pythia8_inel_triggerGap.cfg");
2929
pythiaMBgen.readFile(pathconfigMB.Data());
3030
pythiaMBgen.readString("Random:setSeed on");
3131
pythiaMBgen.readString("Random:seed " + std::to_string(seed));
@@ -171,7 +171,7 @@ FairGenerator*
171171

172172
gen->setRapidityHadron(rapidityMin,rapidityMax);
173173
gen->setHadronMultiplicity(1);
174-
TString pathO2table = gSystem->ExpandPathName("$O2DPG_ROOT/MC/config/PWGDQ/pythia8/decayer/switchOffChadrons.cfg");
174+
TString pathO2table = gSystem->ExpandPathName("$O2DPG_MC_CONFIG_ROOT/MC/config/PWGDQ/pythia8/decayer/switchOffChadrons.cfg");
175175
gen->readFile(pathO2table.Data());
176176
gen->setConfigMBdecays(pathO2table);
177177
gen->setVerbose(verbose);

MC/config/PWGDQ/ini/tests/GeneratorHF_ccbarToMuonsSemileptonic_fwdy_inel.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ int External()
6464
<< "#signal pairs: " << nSignalPairs << "\n"
6565
<< "#muon pairs: " << nLeptonPairs << "\n"
6666
<< "#muon pairs to be done: " << nLeptonPairsToBeDone << "\n";
67+
if (nSignalPairs < nEvents) {
68+
std::cerr << "Number of signal pairs should be at least equaled to the number of events\n";
69+
return 1;
70+
}
6771
if (nLeptonPairs != nLeptonPairsToBeDone) {
6872
std::cerr << "The number of muon pairs should be the same as the number of muon pairs which should be transported.\n";
6973
return 1;

0 commit comments

Comments
 (0)