ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
SampleHandler
SampleComposite.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef SAMPLE_HANDLER_SAMPLE_COMPOSITE_HH
8
#define SAMPLE_HANDLER_SAMPLE_COMPOSITE_HH
9
10
#include <
SampleHandler/Global.h
>
11
12
#include <memory>
13
#include <string>
14
#include <vector>
15
#include <
SampleHandler/Sample.h
>
16
17
namespace
SH
18
{
23
class
SampleComposite
final :
public
Sample
24
{
25
//
26
// public interface
27
//
28
33
public
:
34
void
testInvariant
()
const
;
35
36
44
public
:
45
SampleComposite
();
46
47
55
public
:
56
SampleComposite
(
const
std::string&
name
);
57
58
67
public
:
68
void
add
(std::shared_ptr<Sample> sample);
69
70
71
72
//
73
// inherited interface
74
//
75
77
protected
:
78
virtual
std::size_t
getNumFiles
()
const override
;
79
81
protected
:
82
virtual
std::string
getFileName
(std::size_t
index
)
const override
;
83
85
protected
:
86
virtual
std::unique_ptr<SampleLocal>
doMakeLocal
()
const override
;
87
89
protected
:
90
virtual
std::vector<std::string>
doMakeFileList
()
const override
;
91
93
protected
:
94
virtual
void
95
doUpdateLocation
(
const
std::string& from,
const
std::string& to)
override
;
96
98
protected
:
99
virtual
bool
getContains
(
const
std::string&
name
)
const override
;
100
102
protected
:
103
virtual
void
doAddSamples
(
SampleHandler
& result,
104
const
std::shared_ptr<Sample>& self)
override
;
105
106
107
108
//
109
// private interface
110
//
111
113
private
:
114
std::vector<std::shared_ptr<Sample>>
m_samples
;
115
117
private
:
118
typedef
std::vector<std::shared_ptr<Sample>>
::const_iterator
SamplesIter
;
119
120
ClassDefOverride
(
SampleComposite
, 1);
121
};
122
}
123
124
#endif
Global.h
Sample.h
const_iterator
SH::SampleComposite::add
void add(std::shared_ptr< Sample > sample)
add a sample to the list
SH::SampleComposite::doMakeLocal
virtual std::unique_ptr< SampleLocal > doMakeLocal() const override
Make this a local sample, i.e.
SH::SampleComposite::doUpdateLocation
virtual void doUpdateLocation(const std::string &from, const std::string &to) override
update all file references starting with from to to
SH::SampleComposite::testInvariant
void testInvariant() const
test the invariant of this object
SH::SampleComposite::doAddSamples
virtual void doAddSamples(SampleHandler &result, const std::shared_ptr< Sample > &self) override
add all samples this sample corresponds to to the given sample handler
SH::SampleComposite::ClassDefOverride
ClassDefOverride(SampleComposite, 1)
SH::SampleComposite::getNumFiles
virtual std::size_t getNumFiles() const override
the number of files in the sample
SH::SampleComposite::getContains
virtual bool getContains(const std::string &name) const override
whether this sample contains a sample of the given name
SH::SampleComposite::SampleComposite
SampleComposite(const std::string &name)
standard constructor
SH::SampleComposite::doMakeFileList
virtual std::vector< std::string > doMakeFileList() const override
make a list of all files, prestaging them if necessary
SH::SampleComposite::SamplesIter
std::vector< std::shared_ptr< Sample > >::const_iterator SamplesIter
the iterator for m_samples
Definition
SampleComposite.h:118
SH::SampleComposite::SampleComposite
SampleComposite()
standard constructor
SH::SampleComposite::m_samples
std::vector< std::shared_ptr< Sample > > m_samples
the list of samples we use
Definition
SampleComposite.h:114
SH::SampleComposite::getFileName
virtual std::string getFileName(std::size_t index) const override
the name of the file with the given index
SH::SampleHandler
A class that manages a list of Sample objects.
Definition
SampleHandler.h:53
SH::Sample::Sample
Sample(const std::string &name)
standard constructor
SH::Sample::name
const std::string & name() const
the name of the sample we are using
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition
PrunDriver.h:15
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0