Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenExternal/EvtExternalGenList.cpp
Show All 35 Lines | EvtExternalGenList::EvtExternalGenList( bool convertPythiaCodes, | ||||
// Define the external generator "engines" here | // Define the external generator "engines" here | ||||
extFactory->definePhotosGenerator( photonType, useEvtGenRandom ); | extFactory->definePhotosGenerator( photonType, useEvtGenRandom ); | ||||
if ( pythiaXmlDir.size() < 1 ) { | if ( pythiaXmlDir.size() < 1 ) { | ||||
// If we have no string defined, check the value of the | // If we have no string defined, check the value of the | ||||
// PYTHIA8DATA environment variable which should be set to the | // PYTHIA8DATA environment variable which should be set to the | ||||
// xmldoc Pythia directory | // xmldoc Pythia directory | ||||
char* pythiaDataDir = getenv( "PYTHIA8DATA" ); | char* pythiaDataDir = getenv( "PYTHIA8DATA" ); | ||||
if ( pythiaDataDir != 0 ) { | if ( pythiaDataDir != nullptr ) { | ||||
pythiaXmlDir = pythiaDataDir; | pythiaXmlDir = pythiaDataDir; | ||||
} | } | ||||
} | } | ||||
extFactory->definePythiaGenerator( pythiaXmlDir, convertPythiaCodes, | extFactory->definePythiaGenerator( pythiaXmlDir, convertPythiaCodes, | ||||
useEvtGenRandom ); | useEvtGenRandom ); | ||||
extFactory->defineTauolaGenerator( useEvtGenRandom ); | extFactory->defineTauolaGenerator( useEvtGenRandom ); | ||||
Show All 26 Lines |