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
Prototype2RawTowerBuilder.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Prototype2RawTowerBuilder.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4CALOPROTOTYPE_PROTOTYPE2RAWTOWERBUILDER_H
4
#define G4CALOPROTOTYPE_PROTOTYPE2RAWTOWERBUILDER_H
5
6
#include <phparameter/PHParameterInterface.h>
7
8
#include <
fun4all/SubsysReco.h
>
9
10
#include <string>
11
12
class
PHCompositeNode
;
13
14
class
Prototype2RawTowerBuilder
:
public
SubsysReco
,
public
PHParameterInterface
15
{
16
public
:
17
Prototype2RawTowerBuilder
(
const
std::string
&
name
=
"Prototype2RawTowerBuilder"
);
18
virtual
~Prototype2RawTowerBuilder
() {}
19
int
InitRun
(
PHCompositeNode
*topNode);
20
int
process_event
(
PHCompositeNode
*topNode);
21
void
Print
(
const
std::string
&what =
"ALL"
)
const
;
22
23
void
SetDefaultParameters
();
24
25
void
Detector
(
const
std::string
&d) {
m_Detector
= d; }
26
void
checkenergy
(
const
int
i
= 1) {
m_CheckEnergyConservationFlag
=
i
; }
27
enum
enu_tower_energy_src
28
{
30
kEnergyDeposition
,
31
33
kLightYield
,
34
36
kIonizationEnergy
37
};
38
39
enu_tower_energy_src
get_tower_energy_src
()
const
{
return
m_TowerEnergySrc
; }
40
41
void
set_tower_energy_src
(
const
enu_tower_energy_src
towerEnergySrc)
42
{
43
m_TowerEnergySrc
= towerEnergySrc;
44
}
45
46
std::string
get_sim_tower_node_prefix
()
const
{
return
m_SimTowerNodePrefix
; }
47
48
void
set_sim_tower_node_prefix
(
const
std::string
&simTowerNodePrefix)
49
{
50
m_SimTowerNodePrefix
= simTowerNodePrefix;
51
}
52
53
short
get_tower_row
(
const
short
cellrow)
const
;
54
55
private
:
56
void
ReadParamsFromNodeTree
(
PHCompositeNode
*topNode);
57
58
std::string
m_Detector
;
59
std::string
m_TowerNodeName
;
60
std::string
m_TowerGeomNodeName
;
61
std::string
m_SimTowerNodePrefix
;
62
63
double
m_Emin
;
64
int
m_CheckEnergyConservationFlag
;
65
enu_tower_energy_src
m_TowerEnergySrc
;
66
int
m_NumCellToTower
;
67
};
68
69
#endif // G4CALO_PROTOTYPE2RAWTOWERBUILDER_H
prototype
blob
master
simulation
g4simulation
g4caloprototype
Prototype2RawTowerBuilder.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:30
using
1.8.2 with
sPHENIX GitHub integration