ATLAS Offline Software
InDetTrkAlignDBTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 
8 #include "TFile.h"
9 
10 #include <vector>
11 
12 namespace InDet
13 {
14 
15 //________________________________________________________________________
16 InDetTrkAlignDBTool::InDetTrkAlignDBTool(const std::string & type, const std::string & name, const IInterface * parent)
18  , m_siDBtool("InDet::SiTrkAlignDBTool/SiTrkAlignDBTool")
19  , m_trtDBtool("InDet::TRTTrkAlignDBTool/TRTTrkAlignDBTool")
20 {
21  declareInterface<ITrkAlignDBTool>(this);
22 
23  declareProperty("SiTrkAlignDBTool", m_siDBtool, "Tool for handling the Silicon DB I/O");
24  declareProperty("TRTTrkAlignDBTool", m_trtDBtool, "Tool for handling the TRT DB I/O");
25 }
26 
27 //________________________________________________________________________
29 {}
30 
31 //________________________________________________________________________
33 
34  ATH_MSG_DEBUG("initialize() of InDetTrkAlignDBTool");
35 
36  // get SiTrkAlignDBTool
37  if( m_siDBtool.retrieve().isFailure() ) {
38  msg(MSG::FATAL) << " Could not retrieve " << m_siDBtool << endmsg;
39  return StatusCode::FAILURE;
40  }
41  ATH_MSG_INFO("retrieved " << m_siDBtool);
42 
43  // get TRTTrkAlignDBTool
44  if( m_trtDBtool.retrieve().isFailure() ) {
45  msg(MSG::FATAL) << " Could not retrieve " << m_trtDBtool << endmsg;
46  return StatusCode::FAILURE;
47  }
48  ATH_MSG_INFO("retrieved " << m_trtDBtool);
49 
50  return StatusCode::SUCCESS;
51 }
52 
53 //________________________________________________________________________
55 {
56  ATH_MSG_DEBUG("finalize() of InDetTrkAlignDBTool");
57 
58  return StatusCode::SUCCESS;
59 }
60 
61 //________________________________________________________________________
63 {
64  ATH_MSG_DEBUG("in InDetTrkAlignDBTool::writeAlignPar()");
65 
66  m_siDBtool->writeAlignPar();
67  m_trtDBtool->writeAlignPar();
68 
69  return;
70 }
71 //_________________________________________________________________________________________
72 
73 } // end namespace
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetTrkAlignDBTool::finalize
virtual StatusCode finalize()
finalize method
Definition: InDetTrkAlignDBTool.cxx:54
InDet::InDetTrkAlignDBTool::initialize
virtual StatusCode initialize()
initialize method
Definition: InDetTrkAlignDBTool.cxx:32
InDet::InDetTrkAlignDBTool::m_trtDBtool
ToolHandle< Trk::ITrkAlignDBTool > m_trtDBtool
Definition: InDetTrkAlignDBTool.h:51
InDet::InDetTrkAlignDBTool::~InDetTrkAlignDBTool
virtual ~InDetTrkAlignDBTool()
destructor
Definition: InDetTrkAlignDBTool.cxx:28
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::InDetTrkAlignDBTool::InDetTrkAlignDBTool
InDetTrkAlignDBTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition: InDetTrkAlignDBTool.cxx:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
InDetTrkAlignDBTool.h
InDet::InDetTrkAlignDBTool::m_siDBtool
ToolHandle< Trk::ITrkAlignDBTool > m_siDBtool
Definition: InDetTrkAlignDBTool.h:50
AthAlgTool
Definition: AthAlgTool.h:26
InDet::InDetTrkAlignDBTool::writeAlignPar
void writeAlignPar()
Writes alignment parameters.
Definition: InDetTrkAlignDBTool.cxx:62