ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
Root
DiskOutput.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/DiskOutput.h
>
13
14
#include <
RootCoreUtils/Assert.h
>
15
#include <
SampleHandler/DiskWriter.h
>
16
17
//
18
// method implementations
19
//
20
21
ClassImp
(
SH::DiskOutput
)
22
23
namespace
SH
24
{
25
void
DiskOutput ::
26
testInvariant ()
const
27
{
28
}
29
30
31
32
DiskOutput ::
33
DiskOutput ()
34
{
35
RCU_NEW_INVARIANT
(
this
);
36
}
37
38
39
40
std::unique_ptr<DiskWriter> DiskOutput ::
41
makeWriter (
const
std::string& sampleName,
42
const
std::string& segmentName,
43
const
std::string& suffix)
const
44
{
45
RCU_READ_INVARIANT
(
this
);
46
RCU_REQUIRE
(!sampleName.empty());
47
std::unique_ptr<DiskWriter> result
48
= doMakeWriter (sampleName, segmentName, suffix);
49
RCU_PROVIDE
(result !=
nullptr
);
50
return
result;
51
}
52
53
54
55
std::string DiskOutput ::
56
targetURL (
const
std::string& sampleName,
57
const
std::string& segmentName,
58
const
std::string& suffix)
const
59
{
60
RCU_READ_INVARIANT
(
this
);
61
RCU_REQUIRE
(!sampleName.empty());
62
std::string result = getTargetURL (sampleName, segmentName, suffix);
63
RCU_PROVIDE
(!result.empty());
64
return
result;
65
}
66
}
Assert.h
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition
Assert.h:221
RCU_PROVIDE
#define RCU_PROVIDE(x)
Definition
Assert.h:203
RCU_REQUIRE
#define RCU_REQUIRE(x)
Definition
Assert.h:196
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition
Assert.h:217
ClassImp
ClassImp(SH::DiskOutput) namespace SH
Definition
DiskOutput.cxx:21
DiskOutput.h
DiskWriter.h
SH::DiskOutput
a class/interface representing an output location for files
Definition
DiskOutput.h:46
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