EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4RootScintillatorTower.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4RootScintillatorTower.cc
1
#include "
G4RootScintillatorTower.h
"
2
3
#include <calobase/RawTower.h>
4
5
#include <iostream>
6
7
using namespace
std;
8
9
G4RootScintillatorTower::G4RootScintillatorTower
()
10
: row(-1)
11
, column(-1)
12
, energy(0)
13
{
14
}
15
16
G4RootScintillatorTower::G4RootScintillatorTower
(
const
RawTower
& tower)
17
: row(tower.get_binphi())
18
, column(tower.get_bineta())
19
, energy(tower.get_energy())
20
{
21
}
22
23
void
G4RootScintillatorTower::Reset
()
24
{
25
row
= -1;
26
column
= -1;
27
energy
= 0;
28
}
29
30
int
G4RootScintillatorTower::isValid
()
const
31
{
32
return
(
row
>= 0);
33
}
34
35
void
G4RootScintillatorTower::identify
(std::ostream& os)
const
36
{
37
os <<
"G4RootScintillatorTower: row: "
<<
row
<<
", column: "
<<
column
38
<<
" energy="
<<
energy
<< std::endl;
39
}
fun4all_coresoftware
blob
master
simulation
g4simulation
g4histos
G4RootScintillatorTower.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:49
using
1.8.2 with
EIC GitHub integration