ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysisUser
Analysis
src
label.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
12
#ifndef LABEL_H
13
#define LABEL_H
14
15
#include <cstdio>
16
#include <iostream>
17
18
19
inline
std::string
label
(
const
std::string&
format
,
int
i
) {
20
char
c
[256];
21
std::sprintf(
c
,
format
.c_str(),
i
);
22
return
c
;
23
}
24
25
inline
std::string
label
(
const
std::string&
format
,
unsigned
i
) {
26
char
c
[256];
27
std::sprintf(
c
,
format
.c_str(),
i
);
28
return
c
;
29
}
30
31
inline
std::string
label
(
const
std::string&
format
,
int
i
,
int
j ) {
32
char
c
[256];
33
std::sprintf(
c
,
format
.c_str(),
i
, j );
34
return
c
;
35
}
36
37
inline
std::string
label
(
const
std::string&
format
,
double
d
) {
38
char
c
[256];
39
std::sprintf(
c
,
format
.c_str(),
d
);
40
return
c
;
41
}
42
43
inline
std::string
label
(
const
std::string&
format
,
double
d
,
double
e
) {
44
char
c
[256];
45
std::sprintf(
c
,
format
.c_str(),
d
,
e
);
46
return
c
;
47
}
48
49
inline
std::string
label
(
const
std::string&
format
,
double
d
,
double
e
,
int
i
) {
50
char
c
[256];
51
std::sprintf(
c
,
format
.c_str(),
d
,
e
,
i
);
52
return
c
;
53
}
54
55
56
57
inline
std::string
label
(
const
std::string&
format
,
const
std::string&
s
) {
58
char
c
[256];
59
std::sprintf(
c
,
format
.c_str(),
s
.c_str());
60
return
c
;
61
}
62
63
#endif // LABEL_H
64
65
66
67
68
69
70
71
72
73
AllowedVariables::e
e
Definition:
AsgElectronSelectorTool.cxx:37
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
vtune_athena.format
format
Definition:
vtune_athena.py:14
hist_file_dump.d
d
Definition:
hist_file_dump.py:137
label
std::string label(const std::string &format, int i)
Definition:
label.h:19
lumiFormat.i
int i
Definition:
lumiFormat.py:85
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Thu Nov 7 2024 21:19:11 for ATLAS Offline Software by
1.8.18