ATLAS Offline Software
Loading...
Searching...
No Matches
CondDataObjZ.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_CONDDATAOBJZ_H
6#define CONDALGS_CONDDATAOBJZ_H
7
9
10public:
11
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
19private:
20 float m_val;
21};
22
23#include <iostream>
24inline std::ostream& operator<<(std::ostream& ost, const CondDataObjZ& 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 CondDataObjZ
32//This is required and checked at compile time when you try to record/retrieve
34CLASS_DEF( CondDataObjZ , 6664395 , 1 )
35CLASS_DEF( CondCont<CondDataObjZ> , 210255841 , 1 )
36
37
38#endif
std::ostream & operator<<(std::ostream &ost, const CondDataObjZ &rhs)
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
float val() const
CondDataObjZ(float f)
virtual ~CondDataObjZ()
void val(float f)