ATLAS Offline Software
Control
AthenaExamples
AthExStoreGateExample
src
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
11
class
MyContObj
{
12
13
public
:
14
MyContObj
(
float
t
,
int
i
){
set
(
t
,
i
);}
15
MyContObj
(){
set
(0,0);}
16
~MyContObj
(){}
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
;
25
int
m_channelID
;
26
27
};
28
29
#endif
MyContObj::m_channelID
int m_channelID
Definition:
MyContObj.h:25
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
MyContObj::set
void set(float t, int i)
Definition:
MyContObj.h:18
MyContObj
Definition:
MyContObj.h:11
lumiFormat.i
int i
Definition:
lumiFormat.py:85
MyContObj::MyContObj
MyContObj()
Definition:
MyContObj.h:15
MyContObj::time
float time() const
Definition:
MyContObj.h:20
MyContObj::~MyContObj
~MyContObj()
Definition:
MyContObj.h:16
MyContObj::m_time
float m_time
Definition:
MyContObj.h:24
MyContObj::MyContObj
MyContObj(float t, int i)
Definition:
MyContObj.h:14
MyContObj::id
int id() const
Definition:
MyContObj.h:21
Generated on Mon Sep 29 2025 21:15:56 for ATLAS Offline Software by
1.8.18