ATLAS Offline Software
ExtrapolationMacros.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ExtrapolationMacros.h, (c) ATLAS Detector software
8 // output stream macros to facilitate screen output and consistent checking
9 
10 #ifndef EXSCREENOUTPUTDEFS
11 #define EXSCREENOUTPUTDEFS 1
12 #define EX_MSG_INFO(navstep, step, idx, x) ATH_MSG_INFO( m_sopPrefix << std::setw(4) << navstep << m_sopPostfix << std::setw(12) << step << m_sopPostfix << std::setw(4) << idx << m_sopPostfix << x)
13 #define EX_MSG_DEBUG(navstep, step, idx, x) ATH_MSG_DEBUG( m_sopPrefix << std::setw(4) << navstep << m_sopPostfix << std::setw(12) << step << m_sopPostfix << std::setw(4) << idx << m_sopPostfix << x)
14 #define EX_MSG_VERBOSE(navstep, step, idx, x) ATH_MSG_VERBOSE( m_sopPrefix << std::setw(4) << navstep << m_sopPostfix << std::setw(12) << step << m_sopPostfix << std::setw(4) << idx << m_sopPostfix << x)
15 #define EX_MSG_WARNING(navstep, step, idx, x) ATH_MSG_WARNING( m_sopPrefix << std::setw(4) << navstep << m_sopPostfix << std::setw(12) << step << m_sopPostfix << std::setw(4) << idx << m_sopPostfix << x)
16 #define EX_MSG_FATAL(navstep, step, idx, x) ATH_MSG_FATAL( m_sopPrefix << std::setw(4) << navstep << m_sopPostfix << std::setw(12) << step << m_sopPostfix << std::setw(4) << idx << m_sopPostfix << x)
17 #endif
18 
19 #ifndef TRKEXENINGE_OUTPUTHELPER
20 #define TRKEXENINGE_OUTPUTHELPER
21 #define OH_CHECKFOUND(object) ( object ? "found" : "not found")
22 #endif
23 
24 #ifndef TRKEXENGINE_EXCODECHECKS
25 #define TRKEXENGINE_EXCODECHECKS
26 #define CHECK_ECODE_CONTINUE(ecell, ecode) if (!ecode.inProgress()) { EX_MSG_VERBOSE(ecell.navigationStep, "continue", "", ecode.toString() << " triggers cotinue."); return ecode; }
27 #define CHECK_ECODE_SUCCESS_NODEST(ecell, ecode) if (ecode.isSuccessBeforeDestination()) { EX_MSG_VERBOSE(ecell.navigationStep, "return", "", ecode.toString() << " stops extrapolation sequence."); return ecode; }
28 #define CHECK_ECODE_SUCCESS(ecell, ecode) if (ecode.isSuccess()) { EX_MSG_VERBOSE(ecell.navigationStep, "return", "", ecode.toString() << " stops extrapolation sequence."); return ecode; }
29 
30 #endif
31