ATLAS Offline Software
Loading...
Searching...
No Matches
DiskWriterLocal.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef SAMPLE_HANDLER__DISK_WRITER_LOCAL_H
9#define SAMPLE_HANDLER__DISK_WRITER_LOCAL_H
10
11
13
15
16#include <memory>
17
18namespace SH
19{
23 {
24 //
25 // public interface
26 //
27
32 public:
33 void testInvariant () const;
34
35
43 public:
44 DiskWriterLocal (const std::string& val_path);
45
48
49
54 public:
56
57
58
59 //
60 // inherited interface
61 //
62
64 private:
65 virtual std::string getPath () const override;
66
67
69 private:
70 virtual TFile *getFile () override;
71
72
74 private:
75 virtual void doClose () override;
76
77
78
79 //
80 // private interface
81 //
82
84 private:
85 std::string m_path;
86
88 private:
89 std::unique_ptr<TFile> m_file;
90 };
91}
92
93#endif
void testInvariant() const
test the invariant of this object
virtual void doClose() override
closes the file we are writing to
DiskWriterLocal(const std::string &val_path)
standard constructor
std::unique_ptr< TFile > m_file
the actual file object
~DiskWriterLocal()
standard destructor
DiskWriterLocal & operator=(const DiskWriterLocal &)=delete
DiskWriterLocal(const DiskWriterLocal &)=delete
virtual TFile * getFile() override
the file we are writing to
virtual std::string getPath() const override
the path where this file can be accessed or the empty string if it is not known (yet).
std::string m_path
the path being used
DiskWriter()
standard constructor
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition DiskList.cxx:21