StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StMcEvent
StEventObject.h
1
#ifndef STAR_STEVENTOBJECT
2
#define STAR_STEVENTOBJECT
3
4
6
#include "StObject.h"
7
8
template
<
class
T>
9
class
StEventObject
:
public
StObject
{
10
protected
:
11
T fData;
12
13
public
:
14
int
operator==(
const
StEventObject
&h)
const
15
{
return
*h.fData == *fData; }
16
17
int
operator!=(
const
StEventObject
&h)
const
18
{
return
!(*
this
== h); }
19
20
StEventObject
() : fData() {};
21
StEventObject
(T
data
) : fData(data) {};
22
virtual
~
StEventObject
() {}
23
T Data() {
return
fData;}
24
const
T Data()
const
{
return
fData;}
25
void
SetData( T data) { fData = data; }
26
};
27
28
#endif
StObject
Definition:
StObject.h:54
StEventObject
base class for all StMcEvent objects
Definition:
StEventObject.h:9
data
Definition:
PMD_Reader.hh:62
Generated by
1.8.5