ATLAS Offline Software
CondDataObj.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_CONDDATAOBJ_H
6 #define CONDALGS_CONDDATAOBJ_H
7 
8 class CondDataObj {
9 
10 public:
11 
12  CondDataObj():m_val(0) {};
13  CondDataObj(int i): m_val(i) {};
14  virtual ~CondDataObj(){};
15 
16  void val(int i) { m_val = i; }
17  int val() const { return m_val; }
18 
19 private:
20  int m_val;
21 };
22 
23 #include <iostream>
24 inline std::ostream& operator<<(std::ostream& ost, const CondDataObj& 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 CondDataObj
32 //This is required and checked at compile time when you try to record/retrieve
33 #include "AthenaKernel/CLASS_DEF.h"
34 CLASS_DEF( CondDataObj , 232539028 , 1 )
35 CLASS_DEF( CondCont<CondDataObj> , 261788530 , 1 )
36 
37 
38 #endif
python.trigbs_prescaleL1.ost
ost
Definition: trigbs_prescaleL1.py:104
CondDataObj::CondDataObj
CondDataObj(int i)
Definition: CondDataObj.h:13
CondDataObj::CondDataObj
CondDataObj()
Definition: CondDataObj.h:12
CondDataObj::val
int val() const
Definition: CondDataObj.h:17
CondDataObj::m_val
int m_val
Definition: CondDataObj.h:20
CondDataObj::~CondDataObj
virtual ~CondDataObj()
Definition: CondDataObj.h:14
lumiFormat.i
int i
Definition: lumiFormat.py:92
CondDataObj
Definition: CondDataObj.h:8
CondCont
Hold mapping of ranges to condition objects.
Definition: CondCont.h:811
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:64
CondDataObj::val
void val(int i)
Definition: CondDataObj.h:16
operator<<
std::ostream & operator<<(std::ostream &ost, const CondDataObj &rhs)
Definition: CondDataObj.h:24
CLASS_DEF.h
macros to associate a CLID to a type