ATLAS Offline Software
Loading...
Searching...
No Matches
MyContObj.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHEXSTOREGATEEXAMPLE_MYCONTOBJ_H
6#define ATHEXSTOREGATEEXAMPLE_MYCONTOBJ_H
7
8//sample data class for the Read/Write example
9//Notice that is does not inherit from Gaudi ContainedObject
10
11class MyContObj {
12
13public:
14 MyContObj(float t, int i){set(t,i);}
15 MyContObj(){set(0,0);}
17
18 void set(float t, int i) { m_time = t; m_channelID = i; }
19
20 float time() const { return m_time; }
21 int id() const { return m_channelID; }
22
23 private:
24 float m_time;
26
27};
28
29#endif
float m_time
Definition MyContObj.h:24
int m_channelID
Definition MyContObj.h:25
void set(float t, int i)
Definition MyContObj.h:18
float time() const
Definition MyContObj.h:20
MyContObj(float t, int i)
Definition MyContObj.h:14
int id() const
Definition MyContObj.h:21