ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigInDetAnalysisUser
Readcards
src
IReadCards.cxx
Go to the documentation of this file.
1
19
20
21
22
#include "
ReadCards.h
"
23
#include "
IReadCards.h
"
24
25
26
ReadCards
*
rp
= NULL;
27
28
29
void
initcards_
(
const
char
* s) {
30
rp
=
new
ReadCards
(s);
31
}
32
33
void
deletecards_
(
void
) {
34
if
(
rp
)
delete
rp
;
35
}
36
37
38
39
void
getstring_
(
const
char
* tag,
char
* s) {
40
string
val =
rp
->GetString(tag);
41
const
char
*
sp
= val.c_str();
42
while
( ( (*s++) = (*
sp
++) ) );
43
(*(s-1)) =
' '
;
44
return
;
45
}
46
47
48
49
void
isdefined_
(
const
char
* tag,
int
& i) {
50
i = (
rp
->isTagDefined(tag) ? 1 : 0 );
51
}
52
53
54
void
getdvalue_
(
const
char
* tag,
double
& d) {
55
d =
rp
->GetValue(tag);
56
}
57
58
void
getfvalue_
(
const
char
* tag,
float
& f) {
59
f =
rp
->GetValue(tag);
60
}
61
62
63
void
getivalue_
(
const
char
* tag,
int
& i) {
64
i = int(
rp
->GetValue(tag));
65
}
66
67
void
getbvalue_
(
const
char
* tag,
bool
& b) {
68
b = bool(
rp
->GetValue(tag));
69
}
70
71
72
void
getdvector_
(
const
char
* tag,
double
* d) {
73
vector<double> dv =
rp
->GetVector(tag);
74
for
(
unsigned
i=0 ; i<dv.size() ; i++ ) d[i] = dv[i];
75
}
76
77
void
getivector_
(
const
char
* tag,
int
* d) {
78
vector<double> dv =
rp
->GetVector(tag);
79
for
(
unsigned
i=0 ; i<dv.size() ; i++ ) d[i] =
int
(dv[i]);
80
}
81
82
void
printcards_
() {
rp
->print(); }
83
84
85
86
rp
ReadCards * rp
Definition
IReadCards.cxx:26
printcards_
void printcards_()
Definition
IReadCards.cxx:82
getbvalue_
void getbvalue_(const char *tag, bool &b)
Definition
IReadCards.cxx:67
isdefined_
void isdefined_(const char *tag, int &i)
Definition
IReadCards.cxx:49
getfvalue_
void getfvalue_(const char *tag, float &f)
Definition
IReadCards.cxx:58
getdvector_
void getdvector_(const char *tag, double *d)
Definition
IReadCards.cxx:72
getivalue_
void getivalue_(const char *tag, int &i)
Definition
IReadCards.cxx:63
getdvalue_
void getdvalue_(const char *tag, double &d)
Definition
IReadCards.cxx:54
initcards_
void initcards_(const char *s)
Definition
IReadCards.cxx:29
getstring_
void getstring_(const char *tag, char *s)
Definition
IReadCards.cxx:39
deletecards_
void deletecards_(void)
Definition
IReadCards.cxx:33
getivector_
void getivector_(const char *tag, int *d)
Definition
IReadCards.cxx:77
IReadCards.h
sp
static Double_t sp
Definition
LArPhysWaveHECTool.cxx:37
ReadCards.h
ReadCards
Get tag-value pairs from a file.
Definition
ReadCards.h:50
Generated on
for ATLAS Offline Software by
1.17.0