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
Reconstruction
Jet
JetRec
JetRec
LineFormatter.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
// Class to create a string of elements, n perline
5
// where n is settable.
6
7
#ifndef JETREC_LINEFORMATTER_H
8
#define JETREC_LINEFORMATTER_H
9
10
#include <sstream>
11
#include <ios>
12
#include <vector>
13
14
class
LineFormatter
{
15
public
:
16
LineFormatter
(std::size_t perline):
m_perline
(perline){
17
}
18
template
<
typename
T>
19
std::string
operator()
(
const
std::vector<T>&
v
){
20
std::size_t
count
{0};
21
std::size_t linecount{0};
22
std::ostringstream oss{
""
, std::ios::ate};
23
oss << linecount <<
'|'
<<
" "
;
24
for
(
const
auto
&
e
:
v
){
25
if
(
count
==
m_perline
){
26
count
= 0;
27
linecount +=
m_perline
;
28
oss <<
'\n'
<<linecount<<
'|'
<<
" "
;
29
}
30
oss <<
e
<<
" "
;
31
++
count
;
32
}
33
// if(count != 0){oss << '\n';}
34
return
oss.str();
35
}
36
37
private
:
38
std::size_t
m_perline
;
39
};
40
41
#endif
AllowedVariables::e
e
Definition:
AsgElectronSelectorTool.cxx:37
XMLtoHeader.count
count
Definition:
XMLtoHeader.py:85
LineFormatter::operator()
std::string operator()(const std::vector< T > &v)
Definition:
LineFormatter.h:19
LineFormatter
Definition:
LineFormatter.h:14
python.PyAthena.v
v
Definition:
PyAthena.py:154
LineFormatter::LineFormatter
LineFormatter(std::size_t perline)
Definition:
LineFormatter.h:16
LineFormatter::m_perline
std::size_t m_perline
Definition:
LineFormatter.h:38
Generated on Sat Mar 15 2025 21:14:11 for ATLAS Offline Software by
1.8.18