Class Reference for E1039 Core & Analysis Software
PHG4EventHeader.h
Go to the documentation of this file.
1
#ifndef PHG4EVENTHEADER_H
2
#define PHG4EVENTHEADER_H
3
4
#include <
phool/PHObject.h
>
5
#include <
phool/phool.h
>
6
7
#include <cmath>
8
#include <iostream>
9
11
class
PHG4EventHeader
:
public
PHObject
12
{
13
public
:
14
16
virtual
~PHG4EventHeader
() {}
17
19
virtual
void
Reset
()
20
{
21
std::cout <<
PHWHERE
<<
"ERROR Reset() not implemented by daughter class"
<< std::endl;
22
return
;
23
}
24
28
virtual
void
identify
(std::ostream& os = std::cout)
const
29
{
30
os <<
"identify yourself: virtual PHG4EventHeader Object"
<< std::endl;
31
return
;
32
}
33
35
virtual
int
isValid
()
const
36
{
37
std::cout <<
PHWHERE
<<
"isValid not implemented by daughter class"
<< std::endl;
38
return
0;
39
}
40
42
virtual
int
get_EvtSequence
()
const
{
return
-9999;}
44
virtual
void
set_EvtSequence
(
const
int
/*ival*/
) {
return
;}
45
46
virtual
float
get_ImpactParameter
()
const
{
return
NAN;}
47
virtual
void
set_ImpactParameter
(
const
float
) {
return
;}
48
49
virtual
float
get_EventPlaneAngle
()
const
{
return
NAN;}
50
virtual
void
set_EventPlaneAngle
(
const
float
) {
return
;}
51
52
53
private
:
// prevent doc++ from showing ClassDef
54
ClassDef(
PHG4EventHeader
,1)
55
56
};
57
58
#endif
59
60
61
PHObject.h
PHG4EventHeader
Definition:
PHG4EventHeader.h:12
PHG4EventHeader::set_ImpactParameter
virtual void set_ImpactParameter(const float)
Definition:
PHG4EventHeader.h:47
PHG4EventHeader::set_EvtSequence
virtual void set_EvtSequence(const int)
set Event Number
Definition:
PHG4EventHeader.h:44
PHG4EventHeader::identify
virtual void identify(std::ostream &os=std::cout) const
Definition:
PHG4EventHeader.h:28
PHG4EventHeader::get_EventPlaneAngle
virtual float get_EventPlaneAngle() const
Definition:
PHG4EventHeader.h:49
PHG4EventHeader::get_ImpactParameter
virtual float get_ImpactParameter() const
Definition:
PHG4EventHeader.h:46
PHG4EventHeader::isValid
virtual int isValid() const
isValid returns non zero if object contains valid data
Definition:
PHG4EventHeader.h:35
PHG4EventHeader::Reset
virtual void Reset()
Clear Event.
Definition:
PHG4EventHeader.h:19
PHG4EventHeader::get_EvtSequence
virtual int get_EvtSequence() const
get Event Number
Definition:
PHG4EventHeader.h:42
PHG4EventHeader::~PHG4EventHeader
virtual ~PHG4EventHeader()
dtor
Definition:
PHG4EventHeader.h:16
PHG4EventHeader::set_EventPlaneAngle
virtual void set_EventPlaneAngle(const float)
Definition:
PHG4EventHeader.h:50
PHObject
Definition:
PHObject.h:13
phool.h
PHWHERE
#define PHWHERE
Definition:
phool.h:23
e1039-core
simulation
g4main
PHG4EventHeader.h
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:16
using
1.9.1 with
SeaQuest GitHub integration