Skip to content
Snippets Groups Projects
Commit 418023b5 authored by Dag Gillberg's avatar Dag Gillberg
Browse files

Chaning debug message to debut stream. Proper tool handle name for athena.

parent b054bb31
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,!45419WIP: GNNC tool,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles
......@@ -13,7 +13,7 @@ namespace xAOD {
}
StatusCode TruthWeightTool::initialize() {
ATH_MSG_WARNING( "Initialising... " );
ATH_MSG_DEBUG( "Initialising... " );
return StatusCode::SUCCESS;
}
......@@ -44,6 +44,7 @@ namespace xAOD {
ATH_MSG_DEBUG( "Retrieving truth meta data from a new file" );
m_metaDataContainer = nullptr;
ATH_CHECK( inputMetaStore()->retrieve( m_metaDataContainer, m_metaName ) );
if (m_metaDataContainer==nullptr) std::runtime_error("Cannot access metadata: "+m_metaName);
return StatusCode::SUCCESS;
}
......
......@@ -48,7 +48,10 @@ int main( int argc, char* argv[] ) {
// Create the truth weight tool:
xAOD::TruthWeightTool weightTool( "TruthWeightTool" );
weightTool.setProperty( "OutputLevel", MSG::INFO ).ignore();
ToolHandle< xAOD::ITruthWeightTool > handle( "TruthWeightTool" );
// The preferred way to create and configure tools is with a ToolHandle:
// constructor argument is: Type/Name
ToolHandle< xAOD::ITruthWeightTool > handle( "xAOD::TruthWeightTool/TruthWeightTool" );
if ( handle.retrieve().isFailure() ) {
::Error( APP_NAME, "Could not retrieve TruthWeightTool");
return 1;
......
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