Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
DerivationFramework::BTrackVertexMapLogger Class Reference

#include <BTrackVertexMapLogger.h>

Inheritance diagram for DerivationFramework::BTrackVertexMapLogger:
Collaboration diagram for DerivationFramework::BTrackVertexMapLogger:

Public Member Functions

 BTrackVertexMapLogger (const std::string &t, const std::string &n, const IInterface *p)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual StatusCode addBranches () const
 

Private Attributes

ToolHandleArray< xAOD::IBPhysTrackVertexMapToolm_ttvmTools
 
bool m_enable
 

Detailed Description

Definition at line 30 of file BTrackVertexMapLogger.h.

Constructor & Destructor Documentation

◆ BTrackVertexMapLogger()

DerivationFramework::BTrackVertexMapLogger::BTrackVertexMapLogger ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 46 of file BTrackVertexMapLogger.cxx.

49  : base_class(t,n,p) {
50 
51  // Declare BPhysTrackVertexMapTool handles
52  declareProperty("TrackVertexMapTools", m_ttvmTools);
53 
54  // Enable log output?
55  declareProperty("Enable", m_enable = true);
56  }

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::BTrackVertexMapLogger::addBranches ( ) const
virtual

Definition at line 84 of file BTrackVertexMapLogger.cxx.

84  {
85 
86  ATH_MSG_DEBUG("BTrackVertexMapLogger::addBranches()");
87 
88  // call the BPhysTrackVertexMapTools
89  if ( m_enable ) {
90  for (auto ttvmTool : m_ttvmTools) {
91  if ( ttvmTool->doLog() ) {
92  ATH_MSG_INFO("addBranches: dump for " << ttvmTool.name() << ":");
93  ATH_CHECK( ttvmTool->logEvent() );
94  } // if doLog()
95  } // for
96  } // if m_enable
97 
98  // still everything is ok
99  return StatusCode::SUCCESS;
100  }

◆ finalize()

StatusCode DerivationFramework::BTrackVertexMapLogger::finalize ( )
virtual

Definition at line 76 of file BTrackVertexMapLogger.cxx.

76  {
77 
78  ATH_MSG_DEBUG("BTrackVertexMapLogger::finalize()");
79 
80  // everything all right
81  return StatusCode::SUCCESS;
82  }

◆ initialize()

StatusCode DerivationFramework::BTrackVertexMapLogger::initialize ( )
virtual

Definition at line 58 of file BTrackVertexMapLogger.cxx.

58  {
59 
60  ATH_MSG_DEBUG("BTrackVertexMapLogger::initialize() -- begin");
61 
62  // get the BPhysTrackVertexMapTools
63  if ( m_enable ) {
64  for (auto ttvmTool : m_ttvmTools) {
65  ATH_CHECK( ttvmTool.retrieve() );
66  ATH_MSG_INFO("initialize: Successfully retrieved "
67  << ttvmTool.name() << " ....");
68  }
69  } // if m_enable
70 
71  ATH_MSG_DEBUG("BTrackVertexMapLogger::initialize() -- end");
72 
73  return StatusCode::SUCCESS;
74  }

Member Data Documentation

◆ m_enable

bool DerivationFramework::BTrackVertexMapLogger::m_enable
private

Definition at line 43 of file BTrackVertexMapLogger.h.

◆ m_ttvmTools

ToolHandleArray<xAOD::IBPhysTrackVertexMapTool> DerivationFramework::BTrackVertexMapLogger::m_ttvmTools
private

Definition at line 42 of file BTrackVertexMapLogger.h.


The documentation for this class was generated from the following files:
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework::BTrackVertexMapLogger::m_ttvmTools
ToolHandleArray< xAOD::IBPhysTrackVertexMapTool > m_ttvmTools
Definition: BTrackVertexMapLogger.h:42
DerivationFramework::BTrackVertexMapLogger::m_enable
bool m_enable
Definition: BTrackVertexMapLogger.h:43