ATLAS Offline Software
IAlignTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRKALIGNINTERFACES_ALIGNTOOL_IH
6 #define TRKALIGNINTERFACES_ALIGNTOOL_IH
7 
8 #include "GaudiKernel/IAlgTool.h"
9 #include <fstream>
10 
22 class TFile;
23 
24 
25 namespace Trk {
26 
27  class AlignTrack;
28 
29  static const InterfaceID
30  IID_TRK_IAlignTool("IAlignTool",1,0);
31 
32  class IAlignTool: virtual public IAlgTool {
33  public:
34  static const InterfaceID& interfaceID();
35 
37 
38  virtual bool accumulate(AlignTrack* alignTrack) = 0;
39 
40  virtual bool accumulateFromFiles() = 0;
41 
42  virtual StatusCode solve() = 0;
43 
45  virtual void setLogStream(std::ostream * os) { m_logStream = os; }
46 
48  virtual void setNtuple(TFile*) {}
49 
51  virtual StatusCode fillNtuple() { return StatusCode::SUCCESS; }
52 
53  protected:
54  std::ostream * m_logStream;
55 
56  }; // end of class definition
57 
58  inline const InterfaceID& IAlignTool::interfaceID() {
59  return IID_TRK_IAlignTool;
60  }
61 
62 } // end of namespace
63 
64 
65 #endif // TRKALIGNINTERFACES_ALIGNTOOL_IH
Trk::IAlignTool::m_logStream
std::ostream * m_logStream
logfile output stream
Definition: IAlignTool.h:54
Trk::IAlignTool
Definition: IAlignTool.h:32
Trk::IAlignTool::firstEventInitialize
virtual StatusCode firstEventInitialize()=0
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::IAlignTool::setNtuple
virtual void setNtuple(TFile *)
sets ntuple
Definition: IAlignTool.h:48
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
Trk::IAlignTool::interfaceID
static const InterfaceID & interfaceID()
Definition: IAlignTool.h:58
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::AlignTrack
Definition: AlignTrack.h:41
Trk::IAlignTool::accumulate
virtual bool accumulate(AlignTrack *alignTrack)=0
Trk::IAlignTool::setLogStream
virtual void setLogStream(std::ostream *os)
sets the output stream for the logfile
Definition: IAlignTool.h:45
Trk::IAlignTool::accumulateFromFiles
virtual bool accumulateFromFiles()=0
Trk::IAlignTool::fillNtuple
virtual StatusCode fillNtuple()
writes tree to ntuple
Definition: IAlignTool.h:51
AlignTrack
AlignTrack is a generalization of a Trk::Track, used as the basic object to contain track information...
Trk::IAlignTool::solve
virtual StatusCode solve()=0