ATLAS Offline Software
Loading...
Searching...
No Matches
ITrackCollectionProvider.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_TRACKCOLLECTIONPROVIDER_IH
6#define TRKALIGNINTERFACES_TRACKCOLLECTIONPROVIDER_IH
7
8#include "GaudiKernel/IAlgTool.h"
9
11
12#include <fstream>
13
23
24
25class TFile;
26
27
28namespace Trk {
29
30 static const InterfaceID
31 IID_TRK_ITrackCollectionProvider("ITrackCollectionProvider",1,0);
32
33 class ITrackCollectionProvider: virtual public IAlgTool {
34 public:
35 static const InterfaceID& interfaceID();
36
37 virtual StatusCode trackCollection(const TrackCollection*& tracks) = 0;
38
40 virtual void setLogStream(std::ostream * os) { m_logStream = os; }
41
43 virtual void setNtuple(TFile*) {}
44
46 virtual StatusCode fillNtuple() { return StatusCode::SUCCESS; }
47
48
50 virtual void printSummary() {}
51
52 protected:
53 std::ostream * m_logStream = nullptr;
54
55 }; // end of class definition
56
57 inline const InterfaceID& ITrackCollectionProvider::interfaceID() {
59 }
60
61} // end of namespace
62
63
64#endif // TRKALIGNINTERFACES_TRACKCOLLECTIONPROVIDER_IH
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
virtual StatusCode fillNtuple()
writes tree to ntuple
static const InterfaceID & interfaceID()
virtual void setNtuple(TFile *)
sets ntuple
std::ostream * m_logStream
logfile output stream
virtual void setLogStream(std::ostream *os)
sets the output stream for the logfile
virtual void printSummary()
Print statistical summary to logfile.
virtual StatusCode trackCollection(const TrackCollection *&tracks)=0
Ensure that the ATLAS eigen extensions are properly loaded.
static const InterfaceID IID_TRK_ITrackCollectionProvider("ITrackCollectionProvider", 1, 0)