ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
AthExHive
CondDataObjZ.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CONDALGS_CONDDATAOBJZ_H
6
#define CONDALGS_CONDDATAOBJZ_H
7
8
class
CondDataObjZ
{
9
10
public
:
11
12
CondDataObjZ
():
m_val
(0) {};
13
CondDataObjZ
(
float
f):
m_val
(f) {};
14
virtual
~CondDataObjZ
(){};
15
16
void
val
(
float
f) {
m_val
= f; }
17
float
val
()
const
{
return
m_val
; }
18
19
private
:
20
float
m_val
;
21
};
22
23
24
#include <format>
25
namespace
std
{
26
27
template
<>
28
struct
formatter<
CondDataObjZ
>
29
:
public
formatter<string_view>
30
{
31
template
<
class
FmtContext>
32
FmtContext::iterator
format
(
const
CondDataObjZ
& io, FmtContext& ctx)
const
33
{
34
return
std::format_to (ctx.out(),
"{}"
, io.val());
35
}
36
};
37
38
}
// namespace std
39
40
41
//using the macros below we can assign an identifier (and a version)
42
//to the type CondDataObjZ
43
//This is required and checked at compile time when you try to record/retrieve
44
#include "
AthenaKernel/CLASS_DEF.h
"
45
CLASS_DEF
(
CondDataObjZ
, 6664395 , 1 )
46
CLASS_DEF
(
CondCont
<
CondDataObjZ
> , 210255841 , 1 )
47
48
49
#endif
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
CondCont
Hold mapping of ranges to condition objects.
Definition
CondCont.h:889
CondDataObjZ
Definition
CondDataObjZ.h:8
CondDataObjZ::m_val
float m_val
Definition
CondDataObjZ.h:20
CondDataObjZ::CondDataObjZ
CondDataObjZ()
Definition
CondDataObjZ.h:12
CondDataObjZ::val
float val() const
Definition
CondDataObjZ.h:17
CondDataObjZ::CondDataObjZ
CondDataObjZ(float f)
Definition
CondDataObjZ.h:13
CondDataObjZ::~CondDataObjZ
virtual ~CondDataObjZ()
Definition
CondDataObjZ.h:14
CondDataObjZ::val
void val(float f)
Definition
CondDataObjZ.h:16
std
STL namespace.
std::formatter< CondDataObjZ >::format
FmtContext::iterator format(const CondDataObjZ &io, FmtContext &ctx) const
Definition
CondDataObjZ.h:32
Generated on
for ATLAS Offline Software by
1.17.0