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
G4RootScintillatorSlat.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4RootScintillatorSlat.cc
1
#include "
G4RootScintillatorSlat.h
"
2
3
#include <
g4detectors/PHG4ScintillatorSlat.h
>
4
5
#include <iostream>
6
7
using namespace
std;
8
9
G4RootScintillatorSlat::G4RootScintillatorSlat
()
10
: row(-1)
11
, column(-1)
12
, edep(0)
13
, eion(0)
14
, light_yield(0)
15
{
16
}
17
18
G4RootScintillatorSlat::G4RootScintillatorSlat
(
const
PHG4ScintillatorSlat
& slat)
19
: row(slat.
get_row
())
20
, column(slat.
get_column
())
21
, edep(slat.get_edep())
22
, eion(slat.get_eion())
23
, light_yield(slat.get_light_yield())
24
{
25
}
26
27
void
G4RootScintillatorSlat::Reset
()
28
{
29
row
= -1;
30
column
= -1;
31
eion
= 0;
32
edep
= 0;
33
light_yield
= 0;
34
}
35
36
int
G4RootScintillatorSlat::isValid
()
const
37
{
38
return
(
row
>= 0);
39
}
40
41
void
G4RootScintillatorSlat::identify
(std::ostream& os)
const
42
{
43
os <<
"G4RootScintillatorSlat: row: "
<<
row
<<
", column: "
<<
column
44
<<
" energy="
<<
edep
<< std::endl;
45
}
fun4all_coresoftware
blob
master
simulation
g4simulation
g4histos
G4RootScintillatorSlat.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:49
using
1.8.2 with
EIC GitHub integration