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
PHG4IHCalDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4IHCalDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4IHCAL_PHG4IHCALDETECTOR_H
4
#define G4IHCAL_PHG4IHCALDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <cmath>
9
#include <map>
10
#include <set>
11
#include <string>
// for string
12
#include <tuple>
13
#include <utility>
// for pair
14
15
class
G4AssemblyVolume;
16
class
G4LogicalVolume;
17
class
G4VPhysicalVolume
;
18
class
PHCompositeNode
;
19
class
PHG4IHCalDisplayAction
;
20
class
PHParameters
;
21
class
PHG4Subsystem
;
22
class
PHG4GDMLConfig
;
23
class
RawTowerGeomContainer
;
24
25
class
PHG4IHCalDetector
:
public
PHG4Detector
26
{
27
public
:
29
PHG4IHCalDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string
&dnam);
30
32
~PHG4IHCalDetector
()
override
;
33
35
void
ConstructMe
(G4LogicalVolume *world)
override
;
36
37
void
Print
(
const
std::string
&what =
"ALL"
)
const override
;
38
40
41
int
IsInIHCal
(
G4VPhysicalVolume
*)
const
;
43
44
void
SuperDetector
(
const
std::string
&
name
) {
m_SuperDetector
=
name
; }
45
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
46
int
get_Layer
()
const
{
return
m_Layer
; }
47
G4AssemblyVolume *
ConstructHcalScintillatorAssembly
(G4LogicalVolume *hcalenvelope);
48
void
ConstructHcalSingleScintillators
(G4LogicalVolume *hcalenvelope);
49
int
ConsistencyCheck
()
const
;
50
std::tuple<int, int, int>
GetLayerTowerId
(
G4VPhysicalVolume
*volume)
const
;
51
int
GetSectorId
(
G4VPhysicalVolume
*volume)
const
;
52
53
private
:
54
void
AddGeometryNode
();
55
int
map_towerid
(
const
int
tower_id);
56
int
map_layerid
(
const
int
layer_id);
57
int
ConstructIHCal
(G4LogicalVolume *sandwich);
58
std::tuple<int, int, int>
ExtractLayerTowerId
(
const
unsigned
int
isector,
G4VPhysicalVolume
*volume);
59
PHG4IHCalDisplayAction
*
m_DisplayAction
=
nullptr
;
60
PHParameters
*
m_Params
=
nullptr
;
61
G4AssemblyVolume *
m_ScintiMotherAssembly
=
nullptr
;
62
double
m_InnerRadius
= NAN;
63
double
m_OuterRadius
= NAN;
64
double
m_SizeZ
= NAN;
65
double
m_VolumeEnvelope
= NAN;
66
double
m_VolumeSteel
= 0.;
67
double
m_VolumeScintillator
= 0;
68
69
int
m_NumScintiPlates
= -9999;
70
71
int
m_Active
= 0;
72
int
m_AbsorberActive
= 0;
73
74
int
m_Layer
= 0;
75
76
std::string
m_SuperDetector
;
77
std::set<G4LogicalVolume *>
m_SteelAbsorberLogVolSet
;
78
std::set<G4LogicalVolume *>
m_ScintiTileLogVolSet
;
79
std::map<G4VPhysicalVolume *, std::tuple<int, int, int>>
m_ScintiTilePhysVolMap
;
80
std::map<G4VPhysicalVolume *, int>
m_AbsorberPhysVolMap
;
81
83
PHG4GDMLConfig
*
gdml_config
=
nullptr
;
84
85
std::string
m_GDMPath
;
86
RawTowerGeomContainer
*
m_RawTowerGeom
=
nullptr
;
87
std::string
m_TowerGeomNodeName
;
88
};
89
90
#endif // G4IHCAL_PHG4IHCALDETECTOR_H
coresoftware
blob
master
simulation
g4simulation
g4ihcal
PHG4IHCalDetector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration