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