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
PHG4ProjCrystalCalorimeterDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4ProjCrystalCalorimeterDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4PROJCRYSTALCALORIMETERDETECTOR_H
4
#define G4DETECTORS_PHG4PROJCRYSTALCALORIMETERDETECTOR_H
5
6
#include "
PHG4CrystalCalorimeterDetector.h
"
7
8
#include "
PHG4CrystalCalorimeterDefs.h
"
9
10
#include <Geant4/G4Types.hh>
// for G4double, G4int
11
12
#include <set>
// for set
13
#include <string>
// for string
14
15
class
G4LogicalVolume
;
16
class
G4VPhysicalVolume
;
17
class
PHCompositeNode
;
18
class
PHG4Subsystem
;
19
class
PHParameters
;
20
27
class
PHG4ProjCrystalCalorimeterDetector
:
public
PHG4CrystalCalorimeterDetector
28
{
29
public
:
31
PHG4ProjCrystalCalorimeterDetector
(
PHG4Subsystem
* subsys,
PHCompositeNode
* Node,
PHParameters
*
parameters
,
const
std::string& dnam);
32
34
virtual
~PHG4ProjCrystalCalorimeterDetector
() {}
35
37
virtual
void
ConstructMe
(
G4LogicalVolume
*
world
)
override
;
38
40
virtual
int
IsInCrystalCalorimeter
(
G4VPhysicalVolume
*)
const override
;
41
42
// ----- accessing member variables: ------------
43
44
void
SetCrystalSize
(
G4double
dx_front,
G4double
dy_front,
G4double
dx_back,
G4double
dy_back,
G4double
dz
)
45
{
46
_dx_front
= dx_front;
47
_dy_front
= dy_front;
48
_dx_back
= dx_back;
49
_dy_back
= dy_back;
50
_dz_crystal
=
dz
;
51
}
52
53
void
GetCrystalSize
(
G4double
& dx_front,
G4double
& dy_front,
G4double
& dx_back,
G4double
& dy_back,
G4double
&
dz
)
54
{
55
dx_front =
_dx_front
;
56
dy_front =
_dy_front
;
57
dx_back =
_dx_back
;
58
dy_back =
_dy_back
;
59
dz =
_dz_crystal
;
60
}
61
62
void
GetCarbonFiberAdjustments
(
G4double
& adjust_width,
G4double
& adjust_length);
63
64
void
GetCarbonFiberSpacing
(
G4double
& CF_width,
G4double
& Air_CF,
G4double
& Air_Cry);
65
66
protected
:
67
int
GetCaloType
()
const override
{
return
PHG4CrystalCalorimeterDefs::CaloType::projective
; }
68
69
private
:
70
int
ConstructProjectiveCrystals
(
G4LogicalVolume
* envelope);
71
int
Fill4x4Unit
(
G4LogicalVolume
* crystal_logic);
72
int
FillSpecialUnit
(
G4LogicalVolume
* crystal_logic,
G4int
ident);
73
74
/* crystal geometry */
75
G4double
_dx_front
;
76
G4double
_dy_front
;
77
G4double
_dx_back
;
78
G4double
_dy_back
;
79
G4double
_dz_crystal
;
80
81
std::string
_crystallogicnameprefix
;
82
83
std::set<G4VPhysicalVolume*>
m_ActiveVolumeSet
;
84
std::set<G4VPhysicalVolume*>
m_PassiveVolumeSet
;
85
// since getting parameters is a map search we do not want to
86
// do this in every step, the parameters used are cached
87
// in the following variables
88
int
m_IsActive
;
89
int
m_AbsorberActive
;
90
};
91
92
#endif
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4eiccalos
PHG4ProjCrystalCalorimeterDetector.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:47
using
1.8.2 with
ECCE GitHub integration