Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4EventHeaderv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4EventHeaderv1.cc
1
#include "
PHG4EventHeaderv1.h
"
2
3
#include <cmath>
4
5
using namespace
std;
6
7
PHG4EventHeaderv1::PHG4EventHeaderv1
():
8
evtseq(-9999),
9
bimp(NAN),
10
rplane(NAN)
11
{}
12
13
int
14
PHG4EventHeaderv1::isValid
()
const
15
{
16
if
(
evtseq
> 0)
17
{
18
return
1;
19
}
20
return
0;
21
}
22
23
void
24
PHG4EventHeaderv1::Reset
()
25
{
26
evtseq
= -9999;
27
bimp
= NAN;
28
rplane
=NAN;
29
}
30
31
void
32
PHG4EventHeaderv1::identify
(std::ostream&
os
)
const
33
{
34
os <<
"identify yourself: PHG4EventHeaderv1: evtseq: "
35
<<
evtseq
<<
", bimp: "
<<
bimp
<<
", rplane angle: "
<<
rplane
36
<< endl;
37
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4EventHeaderv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration