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

TrkExtrapolation: Reduce verbosity of intersectors during initialize/finalize

parent 8f02fba5
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ RungeKuttaIntersector::RungeKuttaIntersector (const std::string& type,
StatusCode
RungeKuttaIntersector::initialize(){
// print name and package version
ATH_MSG_DEBUG( "RungeKuttaIntersector::initialize()" << " - package version " << PACKAGE_VERSION );
ATH_MSG_DEBUG( "RungeKuttaIntersector::initialize()" );
// initialize base class
if (StatusCode::SUCCESS != AlgTool::initialize()) return StatusCode::FAILURE;
......@@ -107,9 +107,9 @@ RungeKuttaIntersector::initialize(){
StatusCode
RungeKuttaIntersector::finalize()
{
msg(MSG::INFO) << "finalized after " << m_countExtrapolations << " extrapolations,";
if (m_countExtrapolations)
{
msg(MSG::INFO) << "finalized after " << m_countExtrapolations << " extrapolations,";
double norm = 1./static_cast<double>(m_countExtrapolations);
msg(MSG::INFO) << std::setiosflags(std::ios::fixed)
<< " taking an average" << std::setw(7) << std::setprecision(1)
......
......@@ -53,8 +53,6 @@ SolenoidalIntersector::SolenoidalIntersector (const std::string& type,
StatusCode
SolenoidalIntersector::initialize()
{
// print name and package version
ATH_MSG_INFO( "SolenoidalIntersector::initialize() - package version " << PACKAGE_VERSION );
ATH_CHECK( m_solenoidParametrizationKey.initialize() );
ATH_CHECK(m_rungeKuttaIntersector.retrieve());
return StatusCode::SUCCESS;
......@@ -63,7 +61,7 @@ SolenoidalIntersector::initialize()
StatusCode
SolenoidalIntersector::finalize()
{
ATH_MSG_INFO( "finalized after " << m_countExtrapolations << " extrapolations with "
ATH_MSG_DEBUG( "finalized after " << m_countExtrapolations << " extrapolations with "
<< m_countRKSwitches << " switches to RK integration");
return StatusCode::SUCCESS;
......
/*
Copyright (C) 2002-2017, 2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2017, 2019, 2020 CERN for the benefit of the ATLAS collaboration
*/
//////////////////////////////////////////////////////////////////////
......@@ -26,9 +26,7 @@ public:
StraightLineIntersector (const std::string& type,
const std::string& name,
const IInterface* parent);
virtual ~StraightLineIntersector (void); // destructor
virtual StatusCode initialize() override;
virtual StatusCode finalize() override;
/**IIntersector interface method for general Surface type */
......
/*
Copyright (C) 2002-2017, 2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2017, 2019, 2020 CERN for the benefit of the ATLAS collaboration
*/
//////////////////////////////////////////////////////////////////////
......@@ -32,26 +32,10 @@ StraightLineIntersector::StraightLineIntersector (const std::string& type,
{
}
StraightLineIntersector::~StraightLineIntersector (void)
{}
StatusCode
StraightLineIntersector::initialize()
{
// print name and package version
ATH_MSG_INFO( "StraightLineIntersector::initialize()"
<< " - package version " << PACKAGE_VERSION );
// initialize base class
if (StatusCode::SUCCESS != AlgTool::initialize()) return StatusCode::FAILURE;
return StatusCode::SUCCESS;
}
StatusCode
StraightLineIntersector::finalize()
{
ATH_MSG_INFO( "finalized after " << m_countExtrapolations << " extrapolations" );
ATH_MSG_DEBUG( "finalized after " << m_countExtrapolations << " extrapolations" );
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