ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
Root
DiskWriter.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
//
9
// includes
10
//
11
12
#include <
SampleHandler/DiskWriter.h
>
13
14
#include <
RootCoreUtils/Assert.h
>
15
16
//
17
// method implementations
18
//
19
20
namespace
SH
21
{
22
void
DiskWriter ::
23
testInvariant ()
const
24
{
25
}
26
27
28
29
DiskWriter ::
30
DiskWriter ()
31
{
32
RCU_NEW_INVARIANT
(
this
);
33
}
34
35
36
37
DiskWriter ::
38
~DiskWriter ()
39
{
40
RCU_DESTROY_INVARIANT
(
this
);
41
}
42
43
44
45
std::string DiskWriter ::
46
path ()
const
47
{
48
RCU_READ_INVARIANT
(
this
);
49
return
getPath
();
50
}
51
52
53
54
TFile *DiskWriter ::
55
file ()
56
{
57
RCU_CHANGE_INVARIANT
(
this
);
58
59
TFile *result =
getFile
();
60
RCU_REQUIRE
(result != 0);
61
return
result;
62
}
63
64
65
66
void
DiskWriter ::
67
close ()
68
{
69
RCU_CHANGE_INVARIANT
(
this
);
70
71
doClose
();
72
}
73
}
Assert.h
RCU_DESTROY_INVARIANT
#define RCU_DESTROY_INVARIANT(x)
Definition
Assert.h:223
RCU_CHANGE_INVARIANT
#define RCU_CHANGE_INVARIANT(x)
Definition
Assert.h:219
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition
Assert.h:221
RCU_REQUIRE
#define RCU_REQUIRE(x)
Definition
Assert.h:196
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition
Assert.h:217
DiskWriter.h
SH::DiskWriter::getFile
virtual TFile * getFile()=0
the file we are writing to
SH::DiskWriter::doClose
virtual void doClose()=0
closes the file we are writing to
SH::DiskWriter::getPath
virtual std::string getPath() const =0
the path where this file can be accessed or the empty string if it is not known (yet).
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition
PrunDriver.h:15
Generated on
for ATLAS Offline Software by
1.17.0