Skip to content
Snippets Groups Projects
Commit b57205f9 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'master' into 'master'

Fix problems with ART tests in master, r 22

See merge request !39326
parents b3ca28a6 6d2d38f6
No related branches found
No related tags found
6 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,!39326Fix problems with ART tests in master, r 22
......@@ -76,7 +76,7 @@ m_failureCount(0),
m_procPtr(0),
m_userHooksPtrs(),
m_doLHE3Weights(false),
m_athenaTool("IPythia8Custom")
m_athenaTool("")
{
declareProperty("Commands", m_commands);
declareProperty("CollisionEnergy", m_collisionEnergy = 14000.0);
......@@ -191,7 +191,7 @@ StatusCode Pythia8_i::genInitialize() {
m_pythia->settings.addWord(param.first, param.second);
}
if(m_athenaTool.typeAndName() != "IPythia8Custom"){
if( ! m_athenaTool.empty() ){
if(m_athenaTool.retrieve().isFailure()){
ATH_MSG_ERROR("Unable to retrieve Athena Tool for custom Pythia processing");
return StatusCode::FAILURE;
......@@ -202,7 +202,6 @@ StatusCode Pythia8_i::genInitialize() {
}
}
// Now apply the settings from the JO
for(const std::string &cmd : m_commands){
......@@ -386,7 +385,8 @@ StatusCode Pythia8_i::callGenerator(){
}
}
if(m_athenaTool.typeAndName() != "IPythia8Custom"){
ATH_MSG_DEBUG("Now checking with Tool.empty() second time");
if( ! m_athenaTool.empty() ){
StatusCode stat = m_athenaTool->ModifyPythiaEvent(*m_pythia);
if(stat != StatusCode::SUCCESS) returnCode = stat;
}
......@@ -570,7 +570,7 @@ StatusCode Pythia8_i::genFinalize(){
std::cout << "Using FxFx cross section recipe: xs = "<< m_sigmaTotal << " / " << 1e9*info.nTried() << std::endl;
}
if(m_athenaTool.typeAndName() != "IPythia8Custom"){
if( ! m_athenaTool.empty()){
double xsmod = m_athenaTool->CrossSectionScaleFactor();
ATH_MSG_DEBUG("Multiplying cross-section by Pythia Modifier tool factor " << xsmod );
xs *= xsmod;
......
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