Commit fbbbdc60 authored by jmaurer's avatar jmaurer
Browse files

fix faulty TEnv initialization when wdir=~

parent 91e7ee34
......@@ -197,7 +197,8 @@ StatusCode AsgElectronIsEMSelector::initialize()
return sc;
}
ATH_MSG_DEBUG("Configfile to use " << m_configFile );
TEnv env(filename.c_str());
TEnv env;
env.ReadFile(filename.c_str(), kEnvLocal);
///------- Read in the TEnv config ------///
......
......@@ -159,7 +159,8 @@ StatusCode AsgElectronLikelihoodTool::initialize()
}
ATH_MSG_DEBUG("Configfile to use " << m_configFile );
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
// Get the input PDFs in the tool.
ATH_MSG_DEBUG("Get the input PDFs in the tool ");
......
......@@ -101,8 +101,8 @@ StatusCode AsgElectronSelectorTool::initialize()
ATH_MSG_DEBUG("Configfile to use: " << m_configFile);
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
std::string modelFilename("");
std::string quantileFilename("");
......
......@@ -103,7 +103,8 @@ StatusCode AsgForwardElectronIsEMSelector::initialize()
return sc;
}
ATH_MSG_DEBUG("Configfile to use " << m_configFile );
TEnv env(filename.c_str());
TEnv env;
env.ReadFile(filename.c_str(), kEnvLocal);
///------- Read in the TEnv config ------///
......
......@@ -96,7 +96,8 @@ StatusCode AsgForwardElectronLikelihoodTool::initialize()
}
ATH_MSG_DEBUG("Get the input PDFs in the tool ");
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
// Get the input PDFs in the tool.
ATH_MSG_DEBUG("Get the input PDFs in the tool ");
......
......@@ -246,7 +246,9 @@ StatusCode AsgPhotonIsEMSelector::initialize()
return sc;
}
ATH_MSG_DEBUG("Configfile to use " << m_configFile );
TEnv env(filename.c_str());
TEnv env;
env.ReadFile(filename.c_str(), kEnvLocal);
///------- Read in the TEnv config ------///
ATH_MSG_DEBUG("Read in the TEnv config ");
//Override the mask via the config only if it is not set
......
......@@ -66,7 +66,8 @@ StatusCode ElectronPhotonShowerShapeFudgeTool::initialize()
return StatusCode::FAILURE ;
}
std::string configFile = PathResolverFindCalibFile(m_configFile);
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
m_el_rootTool->Shifts[ElePIDNames::Var::DeltaPoverP] = GetFloatVector("shift_DeltaPoverP", env);
m_el_rootTool->Shifts[ElePIDNames::Var::TRTHighTOutliersRatio] = GetFloatVector("shift_TRTHighTOutliersRatio", env);
......
......@@ -64,7 +64,8 @@ StatusCode ElectronPhotonVariableCorrectionBase::initialize()
}
// retrieve properties from configuration file, using TEnv class
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
// Send warning if duplicates found in conf file
env.IgnoreDuplicates(false);
......
......@@ -46,7 +46,8 @@ StatusCode ElectronPhotonVariableCorrectionTool::initialize()
}
// Retreive properties from configuration file, using TEnv class
TEnv env(configFile.c_str());
TEnv env;
env.ReadFile(configFile.c_str(), kEnvLocal);
// Send warning if duplicates found in conf file
env.IgnoreDuplicates(false);
......@@ -238,7 +239,8 @@ const CP::CorrectionCode ElectronPhotonVariableCorrectionTool::correctedCopy( co
const StatusCode ElectronPhotonVariableCorrectionTool::getCorrectionVariableName( std::string &variableName, const std::string& confFile ) const
{
// Retreive properties from configuration file, using TEnv class
TEnv env(confFile.c_str());
TEnv env;
env.ReadFile(confFile.c_str(), kEnvLocal);
// Send warning if duplicates found in conf file
env.IgnoreDuplicates(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment