ATLAS Offline Software
Loading...
Searching...
No Matches
ITrkAlignDBTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRKALIGNINTERFACES_ALIGNDBTOOL_IH
6#define TRKALIGNINTERFACES_ALIGNDBTOOL_IH
7
8#include "GaudiKernel/IAlgTool.h"
9#include "GaudiKernel/ToolHandle.h"
10
11#include <fstream>
12
26
27class TFile;
28
29namespace Trk {
30
31 static const InterfaceID
33
34 class ITrkAlignDBTool: virtual public IAlgTool {
35
36 public:
37 static const InterfaceID& interfaceID();
38
39 virtual StatusCode initialize() = 0;
40 virtual StatusCode finalize() = 0;
41
43 virtual void writeAlignPar() {}
44
46 virtual void setNtuple(TFile*) {}
47
49 virtual void setLogStream(std::ostream * os) { m_logStream = os; }
50
52 virtual StatusCode preSolve() { return StatusCode::SUCCESS; }
53
54 protected:
55 std::ostream * m_logStream = nullptr;
56 };
57
58 inline const InterfaceID& ITrkAlignDBTool::interfaceID()
60
61} // end namespace
62
63#endif // TRKALIGNINTERFACES_ALIGNDBTOOL_IH
static const InterfaceID & interfaceID()
virtual StatusCode initialize()=0
virtual void writeAlignPar()
writes alignment parameters to output
std::ostream * m_logStream
logfile output stream
virtual StatusCode preSolve()
sets up initial alignment constants before solving
virtual void setNtuple(TFile *)
sets ntuple if needed
virtual void setLogStream(std::ostream *os)
sets the output stream for the logfile
virtual StatusCode finalize()=0
Ensure that the ATLAS eigen extensions are properly loaded.
static const InterfaceID IID_TRKALIGNINTERFACES_ITrkAlignDBTool("ITrkAlignDBTool", 1, 0)