ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthContainersInterfaces
AthContainersInterfaces
AuxDataOption.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
14
15
16
#ifndef ATHCONTAINERSINTERFACES_AUXDATAOPTION_H
17
#define ATHCONTAINERSINTERFACES_AUXDATAOPTION_H
18
19
20
#include <string>
21
22
23
namespace
SG
{
24
25
36
class
AuxDataOption
37
{
38
public
:
44
AuxDataOption
(
const
std::string&
name
,
int
val);
45
46
52
AuxDataOption
(
const
std::string&
name
,
float
val);
53
54
60
AuxDataOption
(
const
std::string&
name
,
double
val);
61
62
66
const
std::string&
name
()
const
;
67
68
72
int
intVal
()
const
;
73
74
78
float
floatVal
()
const
;
79
80
81
private
:
83
std::string
m_name
;
84
86
bool
m_isInt
;
87
89
union
{
90
float
f
;
91
int
i
;
92
}
m_val
;
93
};
94
95
96
}
// namespace SG
97
98
99
#include "
AthContainersInterfaces/AuxDataOption.icc
"
100
101
102
#endif
// not ATHCONTAINERSINTERFACES_AUXDATAOPTION_H
AuxDataOption.icc
SG::AuxDataOption::AuxDataOption
AuxDataOption(const std::string &name, float val)
Constructor, with a float value.
SG::AuxDataOption::name
const std::string & name() const
The name of the option.
SG::AuxDataOption::AuxDataOption
AuxDataOption(const std::string &name, int val)
Constructor, with an integer value.
SG::AuxDataOption::AuxDataOption
AuxDataOption(const std::string &name, double val)
Constructor, with a double value.
SG::AuxDataOption::floatVal
float floatVal() const
Return the option value as a float.
SG::AuxDataOption::m_name
std::string m_name
The option name.
Definition
AuxDataOption.h:83
SG::AuxDataOption::f
float f
Definition
AuxDataOption.h:90
SG::AuxDataOption::intVal
int intVal() const
Return the option value as an integer.
SG::AuxDataOption::m_val
union SG::AuxDataOption::@012046073170141375101144331163376072171307065176 m_val
The stored value.
SG::AuxDataOption::i
int i
Definition
AuxDataOption.h:91
SG::AuxDataOption::m_isInt
bool m_isInt
Are we holding an int or a float?
Definition
AuxDataOption.h:86
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0