12 #include <ThePEG/Utilities/DynamicLoader.h> 13 #include <ThePEG/Utilities/Debug.h> 14 #include <ThePEG/Repository/Repository.h> 15 #include <ThePEG/Handlers/SamplerBase.h> 21 edm::LogError(
"Herwig7Interface") <<
"An error occured, interface quits now.";
27 edm::LogInfo(
"Herwig7Interface") <<
"Quitting HerwigUIProvider after ThePEG repository cleanup.";
45 edm::LogError(
"Herwig7Interface") <<
"Invalid run mode: RunMode::ERROR was passed to Herwig.\n";
82 ThePEG::Debug::unmaskFpuErrors();
86 ThePEG::Repository::exitOnError() = 1;
109 std::vector<std::string> aReadDirectories = pset.
getUntrackedParameter<std::vector<std::string> >(
"appendReadDirectories", std::vector<std::string>() );
110 std::vector<std::string> pReadDirectories = pset.
getUntrackedParameter<std::vector<std::string> >(
"prependReadDirectories", std::vector<std::string>() );
115 std::vector<std::string> aPath = pset.
getUntrackedParameter<std::vector<std::string> >(
"appendPath", std::vector<std::string>() );
116 std::vector<std::string> pPath = pset.
getUntrackedParameter<std::vector<std::string> >(
"prependPath", std::vector<std::string>() );
117 for (
size_t i = 0;
i < aPath.size(); ++
i )
118 ThePEG::DynamicLoader::appendPath( aPath[
i] );
119 for (
size_t i = 0; i < pPath.size(); ++
i )
120 ThePEG::DynamicLoader::prependPath( pPath[i] );
134 ThePEG::SamplerBase::setIntegratePerJob(
jobsize_);
142 ThePEG::SamplerBase::setIntegrationJobs(
maxjobs_);
161 if( !inputFile.empty())
171 ThePEG::SamplerBase::setIntegratePerJob(
jobsize_);
177 ThePEG::SamplerBase::setIntegrationJobs(
maxjobs_);
181 ThePEG::SamplerBase::setIntegratePerJob(
jobsize_);
183 ThePEG::SamplerBase::setIntegrationJobs(
maxjobs_);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > appendReadDirectories_
static std::string resolve(const std::string &line)
static void cleanup(const Factory::MakerMap::value_type &v)
HerwigUIProvider(const edm::ParameterSet &pset, std::string inputFileName, RunMode::Mode)
Constructor from the arguments provided by CMSSW.
void quit() const override
void setRunMode(RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="")
~HerwigUIProvider() override
Destructor to leave a clean ThePEG::Repository behind.
std::vector< std::string > prependReadDirectories_
void quitWithHelp() const override
std::string integrationList_
RunMode::Mode runMode() const override
Requested Herwig run mode.