ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
SampleHandler
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
12
#include <
SampleHandler/Global.h
>
13
14
#include <
SampleHandler/DiskWriter.h
>
15
16
#include <memory>
17
18
namespace
SH
19
{
22
class
DiskWriterLocal
:
public
DiskWriter
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
46
DiskWriterLocal
(
const
DiskWriterLocal
&) =
delete
;
47
DiskWriterLocal
&
operator=
(
const
DiskWriterLocal
&) =
delete
;
48
49
54
public
:
55
~DiskWriterLocal
();
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
Global.h
DiskWriter.h
SH::DiskWriterLocal::testInvariant
void testInvariant() const
test the invariant of this object
Definition
DiskWriterLocal.cxx:28
SH::DiskWriterLocal::doClose
virtual void doClose() override
closes the file we are writing to
Definition
DiskWriterLocal.cxx:100
SH::DiskWriterLocal::DiskWriterLocal
DiskWriterLocal(const std::string &val_path)
standard constructor
Definition
DiskWriterLocal.cxx:35
SH::DiskWriterLocal::m_file
std::unique_ptr< TFile > m_file
the actual file object
Definition
DiskWriterLocal.h:89
SH::DiskWriterLocal::~DiskWriterLocal
~DiskWriterLocal()
standard destructor
Definition
DiskWriterLocal.cxx:57
SH::DiskWriterLocal::operator=
DiskWriterLocal & operator=(const DiskWriterLocal &)=delete
SH::DiskWriterLocal::DiskWriterLocal
DiskWriterLocal(const DiskWriterLocal &)=delete
SH::DiskWriterLocal::getFile
virtual TFile * getFile() override
the file we are writing to
Definition
DiskWriterLocal.cxx:90
SH::DiskWriterLocal::getPath
virtual std::string getPath() const override
the path where this file can be accessed or the empty string if it is not known (yet).
Definition
DiskWriterLocal.cxx:81
SH::DiskWriterLocal::m_path
std::string m_path
the path being used
Definition
DiskWriterLocal.h:85
SH::DiskWriter::DiskWriter
DiskWriter()
standard constructor
Definition
DiskWriter.cxx:30
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition
DiskList.cxx:21
Generated on
for ATLAS Offline Software by
1.17.0