ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace InDet
13{
14
15//________________________________________________________________________
16InDetTrkAlignDBTool::InDetTrkAlignDBTool(const std::string & type, const std::string & name, const IInterface * parent)
17 : AthAlgTool(type,name,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//________________________________________________________________________
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
#define endmsg
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
MsgStream & msg() const
ToolHandle< Trk::ITrkAlignDBTool > m_trtDBtool
virtual ~InDetTrkAlignDBTool()
destructor
virtual StatusCode initialize()
initialize method
InDetTrkAlignDBTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
virtual StatusCode finalize()
finalize method
void writeAlignPar()
Writes alignment parameters.
ToolHandle< Trk::ITrkAlignDBTool > m_siDBtool
Primary Vertex Finder.