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
G4RootRawTower.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4RootRawTower.cc
1
#include "
G4RootRawTower.h
"
2
3
#include <cmath>
4
#include <iostream>
5
6
using namespace
std;
7
8
G4RootRawTower::G4RootRawTower
()
9
:
eta
(NAN)
10
,
phi
(NAN)
11
,
energy
(NAN)
12
{
13
}
14
15
G4RootRawTower::G4RootRawTower
(
const
float
ieta,
const
float
iphi,
const
float
e
)
16
:
eta
(ieta)
17
,
phi
(iphi)
18
,
energy
(e)
19
{
20
}
21
22
void
G4RootRawTower::Reset
()
23
{
24
eta
= NAN;
25
phi
= NAN;
26
energy
= NAN;
27
}
28
29
int
G4RootRawTower::isValid
()
const
30
{
31
return
isfinite(
get_energy
());
32
}
33
34
void
G4RootRawTower::identify
(std::ostream&
os
)
const
35
{
36
os <<
"G4RootRawTower: eta: "
<<
eta
<<
", phi: "
<<
phi
37
<<
" energy="
<<
get_energy
() << std::endl;
38
}
coresoftware
blob
master
simulation
g4simulation
g4histos
G4RootRawTower.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration