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
PHG4LFHcalDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4LFHcalDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4LFHCALDETECTOR_H
4
#define G4DETECTORS_PHG4LFHCALDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
#include <Geant4/G4Material.hh>
8
9
#include <Geant4/G4Types.hh>
// for G4double
10
11
#include <map>
12
#include <set>
13
#include <string>
14
15
class
G4LogicalVolume
;
16
class
G4VPhysicalVolume
;
17
class
PHCompositeNode
;
18
class
PHG4LFHcalDisplayAction
;
19
class
PHG4Subsystem
;
20
class
PHParameters
;
21
28
class
PHG4LFHcalDetector
:
public
PHG4Detector
29
{
30
public
:
32
PHG4LFHcalDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string &dnam);
33
35
virtual
~PHG4LFHcalDetector
() {}
36
38
virtual
void
ConstructMe
(
G4LogicalVolume
*
world
);
39
41
int
IsInLFHcal
(
G4VPhysicalVolume
*)
const
;
42
43
void
SuperDetector
(
const
std::string &
name
) {
m_SuperDetector
=
name
; }
44
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
45
46
PHParameters
*
getParamsDet
()
const
{
return
m_Params
; }
47
48
int
get_Layer
()
const
{
return
m_Layer
; }
49
50
void
DoFullLightProp
(
bool
doProp) {
m_doLightProp
= doProp; }
51
52
private
:
53
G4LogicalVolume
*
ConstructTower
();
54
int
PlaceTower
(
G4LogicalVolume
*envelope,
G4LogicalVolume
*tower);
55
int
ParseParametersFromTable
();
56
G4Material
*
GetScintillatorMaterial
();
57
G4Material
*
GetCoatingMaterial
();
58
G4Material
*
GetWLSFiberMaterial
();
59
void
SurfaceTable
(
G4LogicalVolume
*vol);
60
void
MakeBoundary
(
G4VPhysicalVolume
*crystal,
G4VPhysicalVolume
*opdet,
bool
isFiber);
61
void
MakeBoundary_Fiber_Scint
(
G4VPhysicalVolume
*crystal,
G4VPhysicalVolume
*opdet);
62
struct
towerposition
63
{
64
G4double
x
;
65
G4double
y
;
66
G4double
z
;
67
int
idx_j
;
68
int
idx_k
;
69
};
70
71
PHG4LFHcalDisplayAction
*
m_DisplayAction
=
nullptr
;
72
PHParameters
*
m_Params
=
nullptr
;
73
74
int
m_ActiveFlag
= 1;
75
int
m_AbsorberActiveFlag
= 0;
76
int
m_Layer
= 0;
77
78
std::string
m_TowerLogicNamePrefix
;
79
std::string
m_SuperDetector
;
80
81
std::map<std::string, G4double>
m_GlobalParameterMap
;
82
std::map<std::string, towerposition>
m_TowerPostionMap
;
83
84
std::set<G4LogicalVolume *>
m_AbsorberLogicalVolSet
;
85
std::set<G4LogicalVolume *>
m_ScintiLogicalVolSet
;
86
87
bool
m_doLightProp
=
false
;
88
};
89
90
#endif
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4eiccalos
PHG4LFHcalDetector.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:47
using
1.8.2 with
ECCE GitHub integration