Skip to content

Commit

Permalink
SIM: Unconditionally take modules from list
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Schlepper <[email protected]>
  • Loading branch information
f3sch authored and sawenzel committed Jun 25, 2024
1 parent 6d0c752 commit 60cc87b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Common/SimConfig/src/SimConfig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void SimConfig::initOptions(boost::program_options::options_description& options
"\nALICE2.1: The future configuration for Run 4"
"\nALICE3 : The far-future configuration for Run 5-6"
"\nAdditionally one can provide their own custom list of modules which should be included in the geometry."
"\nBy specifiying LIST:JSONFILE where LIST is a list present in JSONFILE."
"\nOne limitation is that LIST cannot have ':' in their name!")(
"\nBy specifiying LIST:JSONFILE where LIST is a list present in JSONFILE.")(
"nEvents,n", bpo::value<unsigned int>()->default_value(0), "number of events")(
"startEvent", bpo::value<unsigned int>()->default_value(0), "index of first event to be used (when applicable)")(
"extKinFile", bpo::value<std::string>()->default_value("Kinematics.root"),
Expand Down Expand Up @@ -274,14 +273,9 @@ bool SimConfig::resetFromParsedMap(boost::program_options::variables_map const&
mConfigData.mReadoutDetectors.clear();
mConfigData.mActiveModules.clear();

if (vm["detectorList"].defaulted()) {
// get final set of active Modules
determineActiveModules(vm["modules"].as<std::vector<std::string>>(), vm["skipModules"].as<std::vector<std::string>>(), mConfigData.mActiveModules, mConfigData.mIsUpgrade);
} else {
// Check for a specific detector version
if (!determineActiveModulesList(vm["detectorList"].as<std::string>(), vm["modules"].as<std::vector<std::string>>(), vm["skipModules"].as<std::vector<std::string>>(), mConfigData.mActiveModules)) {
return false;
}
// Get final set of active Modules
if (!determineActiveModulesList(vm["detectorList"].as<std::string>(), vm["modules"].as<std::vector<std::string>>(), vm["skipModules"].as<std::vector<std::string>>(), mConfigData.mActiveModules)) {
return false;
}

if (mConfigData.mNoGeant) {
Expand Down

0 comments on commit 60cc87b

Please sign in to comment.