Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Trigger
TrigValidation
TrigValTools
src
TMultiFileLooper.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
13
#include "
TrigValTools/TMultiFileLooper.h
"
14
#include "TString.h"
15
16
#include <iostream>
17
18
using namespace
std;
19
20
Int_t
TMultiFileLooper::run
(
const
char
* fileListName,
const
char
*
/*rootDir*/
)
21
{
22
m_errorCode = 0;
23
24
if
(fileListName==0) {
25
cout <<
"Invalid file list (0)"
<< endl;
26
m_errorCode = 1;
27
return
m_errorCode;
28
}
29
30
ifstream ifs;
31
ifs.open(fileListName);
32
if
(!ifs) {
33
cout <<
"Cannot open file "
<< fileListName << endl;
34
m_errorCode = 1;
35
return
m_errorCode;
36
}
37
38
while
(!ifs.eof()) {
39
string
filename
;
40
ifs >>
filename
;
41
if
(
filename
!=
""
) addFile(
filename
.c_str());
42
}
43
44
return
run
();
45
}
46
47
48
Int_t
TMultiFileLooper::run
()
49
{
50
m_errorCode = 0;
51
beginJob();
52
53
vector<TString>::iterator
iter;
54
for
(iter=m_fileList.begin(); iter!=m_fileList.end(); ++iter) {
55
processFile
(*iter);
56
}
57
58
endJob();
59
return
m_errorCode;
60
}
61
62
void
TMultiFileLooper::addFile
(
const
char
*
filename
)
63
{
64
if
(
filename
) m_fileList.push_back(TString(
filename
));
65
}
xAOD::iterator
JetConstituentVector::iterator iterator
Definition:
JetConstituentVector.cxx:68
PrintTrkAnaSummary.processFile
def processFile(inFileName, dirName, label, data, index, updateIndex=True)
Definition:
PrintTrkAnaSummary.py:26
TMultiFileLooper.h
TMultiFileLooper class.
run
int run(int argc, char *argv[])
Definition:
ttree2hdf5.cxx:28
TMultiFileLooper::addFile
void addFile(const char *filename)
Definition:
TMultiFileLooper.cxx:62
TMultiFileLooper::run
Int_t run()
Definition:
TMultiFileLooper.cxx:48
CaloCellTimeCorrFiller.filename
filename
Definition:
CaloCellTimeCorrFiller.py:24
Generated on Sun Mar 30 2025 21:20:40 for ATLAS Offline Software by
1.8.18