File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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 );
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments