ECCE @ EIC Software
Reference for
ECCE @ 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
PHG4ScintillatorSlatv1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatv1.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4SCINTILLATORSLATV1_H
4
#define G4DETECTORS_PHG4SCINTILLATORSLATV1_H
5
6
#include "
PHG4ScintillatorSlat.h
"
7
8
#include "
PHG4ScintillatorSlatDefs.h
"
// for keytype
9
10
#include <
g4main/PHG4HitDefs.h
>
11
12
#include <iostream>
// for cout, ostream
13
#include <set>
14
#include <utility>
// for make_pair, pair
15
16
class
PHG4ScintillatorSlatv1
:
public
PHG4ScintillatorSlat
17
{
18
public
:
19
20
PHG4ScintillatorSlatv1
();
21
~PHG4ScintillatorSlatv1
()
override
{}
22
23
void
identify
(std::ostream& os = std::cout)
const override
;
24
25
void
add_edep
(
const
double
f
,
const
double
e
,
const
double
ly)
override
{
edep
+=
f
;
eion
+=
e
;
light_yield
+=ly;}
26
void
add_hit_key
(
PHG4HitDefs::keytype
key
)
override
{
hit_id
.insert(key);}
27
28
void
set_key
(
PHG4ScintillatorSlatDefs::keytype
i)
override
{
key
= i;}
29
void
set_light_yield
(
const
double
lightYield) {
light_yield
= lightYield;}
30
31
short
get_row
()
const override
;
32
short
get_column
()
const override
;
33
PHG4ScintillatorSlatDefs::keytype
get_key
()
const override
{
return
key
;}
34
double
get_edep
()
const override
{
return
edep
;}
35
double
get_eion
()
const override
{
return
eion
;}
36
double
get_light_yield
()
const override
{
return
light_yield
;}
37
std::pair<std::set<PHG4HitDefs::keytype>::const_iterator, std::set<PHG4HitDefs::keytype>::const_iterator>
get_hit_ids
()
const override
{
return
std::make_pair(
hit_id
.begin(),
hit_id
.end());}
38
39
40
protected
:
41
PHG4ScintillatorSlatDefs::keytype
key
;
42
double
edep
;
43
double
eion
;
44
double
light_yield
;
45
std::set<PHG4HitDefs::keytype>
hit_id
;
46
47
48
ClassDefOverride(
PHG4ScintillatorSlatv1
,1)
49
};
50
51
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4ScintillatorSlatv1.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:41
using
1.8.2 with
ECCE GitHub integration