ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
SampleHandler
SampleHandler
SampleLocal.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_LOCAL_HH
8
#define SAMPLE_HANDLER_SAMPLE_LOCAL_HH
9
10
#include <
SampleHandler/Global.h
>
11
12
#include <string>
13
#include <vector>
14
#include <
SampleHandler/Sample.h
>
15
16
namespace
SH
17
{
29
class
SampleLocal
final :
public
Sample
30
{
31
//
32
// public interface
33
//
34
39
public
:
40
void
testInvariant
()
const
;
41
42
50
public
:
51
SampleLocal
();
52
53
60
public
:
61
SampleLocal
(
const
std::string&
name
);
62
63
71
public
:
72
void
add
(
const
std::string&
file
);
73
74
75
76
//
77
// inherited interface
78
//
79
81
protected
:
82
virtual
std::size_t
getNumFiles
()
const override
;
83
85
protected
:
86
virtual
std::string
getFileName
(std::size_t
index
)
const override
;
87
89
protected
:
90
virtual
std::unique_ptr<SampleLocal>
doMakeLocal
()
const override
;
91
93
protected
:
94
virtual
std::vector<std::string>
doMakeFileList
()
const override
;
95
97
protected
:
98
virtual
void
99
doUpdateLocation
(
const
std::string& from,
const
std::string& to)
override
;
100
101
102
103
//
104
// private interface
105
//
106
108
private
:
109
std::vector<std::string>
m_files
;
110
112
private
:
113
using
FilesIter
= std::vector<std::string>::const_iterator;
114
116
private
:
117
using
FilesMIter
= std::vector<std::string>::iterator;
118
119
ClassDefOverride
(
SampleLocal
, 1);
120
};
121
}
122
123
#endif
Global.h
Sample.h
SH::SampleLocal::add
void add(const std::string &file)
add a file to the list
SH::SampleLocal::doUpdateLocation
virtual void doUpdateLocation(const std::string &from, const std::string &to) override
update all file references starting with from to to
SH::SampleLocal::FilesIter
std::vector< std::string >::const_iterator FilesIter
the iterator for m_files
Definition
SampleLocal.h:113
SH::SampleLocal::doMakeLocal
virtual std::unique_ptr< SampleLocal > doMakeLocal() const override
Make this a local sample, i.e.
SH::SampleLocal::m_files
std::vector< std::string > m_files
the list of files we use
Definition
SampleLocal.h:109
SH::SampleLocal::getFileName
virtual std::string getFileName(std::size_t index) const override
the name of the file with the given index
SH::SampleLocal::FilesMIter
std::vector< std::string >::iterator FilesMIter
the mutable iterator for m_files
Definition
SampleLocal.h:117
SH::SampleLocal::ClassDefOverride
ClassDefOverride(SampleLocal, 1)
SH::SampleLocal::SampleLocal
SampleLocal(const std::string &name)
standard constructor
SH::SampleLocal::testInvariant
void testInvariant() const
test the invariant of this object
SH::SampleLocal::doMakeFileList
virtual std::vector< std::string > doMakeFileList() const override
make a list of all files, prestaging them if necessary
SH::SampleLocal::SampleLocal
SampleLocal()
standard constructor
SH::SampleLocal::getNumFiles
virtual std::size_t getNumFiles() const override
the number of files in the sample
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
file
TFile * file
Definition
tile_monitor.h:29
Generated on
for ATLAS Offline Software by
1.17.0