ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
AthExHive
CondDataObjY.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CONDALGS_CONDDATAOBJY_H
6
#define CONDALGS_CONDDATAOBJY_H
7
8
class
CondDataObjY
{
9
10
public
:
11
12
CondDataObjY
():
m_val
(0) {};
13
CondDataObjY
(
float
f):
m_val
(f) {};
14
virtual
~CondDataObjY
(){};
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
#include <iostream>
24
inline
std::ostream&
operator<<
(std::ostream& ost,
const
CondDataObjY
& rhs) {
25
ost << rhs.
val
();
26
return
ost;
27
}
28
29
30
//using the macros below we can assign an identifier (and a version)
31
//to the type CondDataObjY
32
//This is required and checked at compile time when you try to record/retrieve
33
#include "
AthenaKernel/CLASS_DEF.h
"
34
CLASS_DEF
(
CondDataObjY
, 6664392 , 1 )
35
CLASS_DEF
(
CondCont
<
CondDataObjY
> , 207255848 , 1 )
36
37
38
#endif
operator<<
std::ostream & operator<<(std::ostream &ost, const CondDataObjY &rhs)
Definition
CondDataObjY.h:24
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
CondDataObjY
Definition
CondDataObjY.h:8
CondDataObjY::CondDataObjY
CondDataObjY()
Definition
CondDataObjY.h:12
CondDataObjY::m_val
float m_val
Definition
CondDataObjY.h:20
CondDataObjY::val
void val(float f)
Definition
CondDataObjY.h:16
CondDataObjY::val
float val() const
Definition
CondDataObjY.h:17
CondDataObjY::~CondDataObjY
virtual ~CondDataObjY()
Definition
CondDataObjY.h:14
CondDataObjY::CondDataObjY
CondDataObjY(float f)
Definition
CondDataObjY.h:13
Generated on
for ATLAS Offline Software by
1.17.0