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
RawTowerBuilder.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RawTowerBuilder.h
1
#ifndef G4CALO_RAWTOWERBUILDER_H
2
#define G4CALO_RAWTOWERBUILDER_H
3
4
#include <
fun4all/SubsysReco.h
>
5
6
#include <string>
7
8
class
PHCompositeNode
;
9
class
RawTowerContainer
;
10
class
RawTowerGeomContainer
;
11
12
class
RawTowerBuilder
:
public
SubsysReco
13
{
14
public
:
15
RawTowerBuilder
(
const
std::string &
name
=
"RawTowerBuilder"
);
16
~RawTowerBuilder
()
override
{}
17
int
InitRun
(
PHCompositeNode
*topNode)
override
;
18
int
process_event
(
PHCompositeNode
*topNode)
override
;
19
void
Detector
(
const
std::string &
d
) {
m_Detector
=
d
; }
20
void
EminCut
(
const
double
e
) {
m_Emin
=
e
; }
21
void
checkenergy
(
const
int
i = 1) {
m_ChkEnergyConservationFlag
= i; }
22
enum
enu_tower_energy_src
23
{
25
kEnergyDeposition
,
26
28
kLightYield
29
30
};
31
32
enu_tower_energy_src
33
get_tower_energy_src
()
const
34
{
35
return
m_TowerEnergySrcEnum
;
36
}
37
38
void
39
set_tower_energy_src
(
enu_tower_energy_src
towerEnergySrc)
40
{
41
m_TowerEnergySrcEnum
= towerEnergySrc;
42
}
43
44
std::string
45
get_sim_tower_node_prefix
()
const
46
{
47
return
m_SimTowerNodePrefix
;
48
}
49
50
void
51
set_sim_tower_node_prefix
(
const
std::string &simTowerNodePrefix)
52
{
53
m_SimTowerNodePrefix
= simTowerNodePrefix;
54
}
55
56
protected
:
57
void
CreateNodes
(
PHCompositeNode
*topNode);
58
59
RawTowerContainer
*
m_TowerContainer
;
60
RawTowerGeomContainer
*
m_RawTowerGeomContainer
;
61
62
std::string
m_Detector
;
63
std::string
m_TowerNodeName
;
64
std::string
m_TowerGeomNodeName
;
65
std::string
m_SimTowerNodePrefix
;
66
67
enu_tower_energy_src
m_TowerEnergySrcEnum
;
68
int
m_CellBinning
;
69
int
m_ChkEnergyConservationFlag
;
70
int
m_NumLayers
;
71
int
m_NumPhiBins
;
72
int
m_NumEtaBins
;
73
double
m_Emin
;
74
double
m_EtaMin
;
75
double
m_PhiMin
;
76
double
m_EtaStep
;
77
double
m_PhiStep
;
78
};
79
80
#endif // G4CALO_RAWTOWERBUILDER_H
coresoftware
blob
master
simulation
g4simulation
g4calo
RawTowerBuilder.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:40
using
1.8.2 with
ECCE GitHub integration