ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
Root
SampleMeta.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
//
8
// includes
9
//
10
11
#include <
SampleHandler/SampleMeta.h
>
12
13
#include <stdexcept>
14
#include <
RootCoreUtils/Assert.h
>
15
#include <
SampleHandler/SampleLocal.h
>
16
17
//
18
// method implementations
19
//
20
21
ClassImp
(
SH::SampleMeta
)
22
23
namespace
SH
24
{
25
void
SampleMeta ::
26
testInvariant ()
const
27
{
28
}
29
30
31
32
SampleMeta ::
33
SampleMeta ()
34
: Sample (
"unnamed"
)
35
{
36
RCU_NEW_INVARIANT
(
this
);
37
}
38
39
40
41
SampleMeta ::
42
SampleMeta (
const
std::string& name)
43
: Sample (name)
44
{
45
RCU_NEW_INVARIANT
(
this
);
46
}
47
48
49
50
std::size_t SampleMeta ::
51
getNumFiles ()
const
52
{
53
RCU_READ_INVARIANT
(
this
);
54
// rationale: this is just so that print() will work
55
return
0;
56
}
57
58
59
60
std::string SampleMeta ::
61
getFileName (std::size_t
/*index*/
)
const
62
{
63
RCU_READ_INVARIANT
(
this
);
64
throw
std::runtime_error (
"fileName() should not be called on SampleMeta"
);
65
}
66
67
68
69
std::unique_ptr<SampleLocal> SampleMeta ::
70
doMakeLocal ()
const
71
{
72
RCU_READ_INVARIANT
(
this
);
73
throw
std::runtime_error (
"makeLocal() should not be called on SampleMeta"
);
74
}
75
76
77
78
std::vector<std::string> SampleMeta ::
79
doMakeFileList ()
const
80
{
81
RCU_READ_INVARIANT
(
this
);
82
83
std::vector<std::string> result;
84
return
result;
85
}
86
}
Assert.h
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition
Assert.h:221
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition
Assert.h:217
SampleLocal.h
ClassImp
ClassImp(SH::SampleMeta) namespace SH
Definition
SampleMeta.cxx:21
SampleMeta.h
SH::SampleMeta
A Sample that consists only of Meta-Information.
Definition
SampleMeta.h:23
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