File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ class GeneratorPythia8LFRapidity : public o2::eventgen::GeneratorPythia8
104104 pythiaObjectMinimumBias .readString ("Random:setSeed = on" );
105105 pythiaObjectMinimumBias .readString ("Random:seed =" + std ::to_string (gRandom -> Integer (900000000 - 2 ) + 1 ));
106106
107+ // FIX: Init signal pythia object
108+ if (!pythiaObjectSignal .readFile (pythiaCfgSignal )) {
109+ LOG (fatal ) << "Could not pythiaObjectSignal.readFile(\"" << pythiaCfgSignal << "\")" ;
110+ }
111+ pythiaObjectSignal .readString ("Random:setSeed = on" );
112+ pythiaObjectSignal .readString ("Random:seed =" + std ::to_string (gRandom -> Integer (900000000 - 2 ) + 1 ));
113+
107114 if (!pythiaObjectMinimumBias .init ()) {
108115 LOG (fatal ) << "Could not pythiaObjectMinimumBias.init() from " << pythiaCfgMb ;
109116 }
@@ -118,6 +125,10 @@ class GeneratorPythia8LFRapidity : public o2::eventgen::GeneratorPythia8
118125 LOG (info ) << param ;
119126 pythiaCfgMb = param .config ;
120127 }
128+ // FIX: Fallback if still empty to default minbias
129+ if (pythiaCfgMb == "" ) {
130+ pythiaCfgMb = "${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/pythia8_inel_minbias.cfg" ;
131+ }
121132 pythiaCfgMb = gSystem -> ExpandPathName (pythiaCfgMb .c_str ());
122133 if (!pythiaObjectMinimumBias .readFile (pythiaCfgMb )) {
123134 LOG (fatal ) << "Could not pythiaObjectMinimumBias.readFile(\"" << pythiaCfgMb << "\")" ;
You can’t perform that action at this time.
0 commit comments