The Gaudi Framework
v26r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Event.h
Go to the documentation of this file.
1
// $Id: Event.h,v 1.5 2006/11/30 14:51:54 mato Exp $
2
#ifndef GAUDIEXAMPLES_EVENT_H
3
#define GAUDIEXAMPLES_EVENT_H 1
4
5
// Include files
6
#include "GaudiKernel/Kernel.h"
7
#include "GaudiKernel/Time.h"
8
#include "GaudiKernel/StreamBuffer.h"
9
#include "GaudiKernel/DataObject.h"
10
#include <iostream>
11
#include <iomanip>
12
22
static
const
CLID
CLID_Event = 110;
23
24
class
Event
:
public
DataObject
{
25
26
public
:
28
Event
():
DataObject
(),
m_event
(0),
m_run
(0) { }
30
virtual
~Event
() { }
31
33
virtual
const
CLID
&
clID
()
const
{
return
classID
(); }
34
static
const
CLID
&
classID
() {
return
CLID_Event; }
35
37
long
event
()
const
{
return
m_event
; }
39
void
setEvent
(
long
value
) {
m_event
=
value
; }
40
42
long
run
()
const
{
return
m_run
; }
44
void
setRun
(
long
value
) {
m_run
=
value
; }
45
47
const
Gaudi::Time&
time
()
const
{
return
m_time
; }
49
void
setTime
(
const
Gaudi::Time&
value
) {
m_time
=
value
; }
50
52
friend
std::ostream&
operator<<
( std::ostream&
s
,
const
Event
& obj ) {
53
return
obj.
fillStream
(s);
54
}
56
virtual
inline
std::ostream&
fillStream
( std::ostream&
s
)
const
;
57
58
private
:
60
long
m_event
;
62
long
m_run
;
64
Gaudi::Time
m_time
;
65
};
66
68
inline
std::ostream&
Event::fillStream
( std::ostream&
s
)
const
{
69
return
s
70
<<
"class Event :"
71
<<
"\n Event number = "
72
<< std::setw(12)
73
<<
m_event
74
<<
"\n Run number = "
75
<< std::setw(12)
76
<<
m_run
77
<<
"\n Time = "
<<
m_time
;
78
}
79
80
81
#endif // GAUDIEXAMPLES_EVENT_H
GaudiPython
src
Test
Event.h
Generated on Mon Feb 16 2015 11:56:57 for The Gaudi Framework by
1.8.2