Skip to content
Snippets Groups Projects
Commit d5daf9ba authored by Miha Muskinja's avatar Miha Muskinja
Browse files

Makes the Random Engine of AthRNGSvc configurable via SimFlags and adds a...

Makes the Random Engine of AthRNGSvc configurable via SimFlags and adds a prinout of the used engine.
parent da980c76
No related branches found
No related tags found
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20700Makes the Random Engine of AthRNGSvc configurable via SimFlag.
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr
def getAthRNGSvc(name='AthRNGSvc', **kwargs):
return CfgMgr.AthRNGSvc(name, **kwargs)
def getAthMixMaxRNGSvc(name='AthMixMaxRNGSvc', **kwargs):
kwargs.setdefault('EngineType', 'MixMax')
return CfgMgr.AthRNGSvc(name, **kwargs)
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.CfgGetter import addService
addService("RngComps.RngCompsConfig.getAthRNGSvc", "AthRNGSvc")
addService("RngComps.RngCompsConfig.getAthMixMaxRNGSvc", "AthMixMaxRNGSvc")
......@@ -42,6 +42,8 @@ StatusCode AthRNGSvc::initialize()
ATH_MSG_FATAL("Generator type \"" << m_rngType << "\" is not known. Check Joboptions");
return StatusCode::FAILURE;
}
ATH_MSG_INFO("Selected random engine: \"" << m_rngType << "\"");
return StatusCode::SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment