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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
blob
master
analysis
reconstruction
simulation
g4simulation
g4b0
g4b0ecal
g4barrelmmg
g4beastmagnet
g4bwd
g4drcalo
g4drich
g4eiccalos
PHG4BackwardHcalDetector.cc
PHG4BackwardHcalDetector.h
PHG4BackwardHcalDisplayAction.cc
PHG4BackwardHcalDisplayAction.h
PHG4BackwardHcalSteppingAction.cc
PHG4BackwardHcalSteppingAction.h
PHG4BackwardHcalSubsystem.cc
PHG4BackwardHcalSubsystem.h
PHG4BarrelEcalDetector.cc
PHG4BarrelEcalDetector.h
PHG4BarrelEcalDisplayAction.cc
PHG4BarrelEcalDisplayAction.h
PHG4BarrelEcalSteppingAction.cc
PHG4BarrelEcalSteppingAction.h
PHG4BarrelEcalSubsystem.cc
PHG4BarrelEcalSubsystem.h
PHG4CrystalCalorimeterDefs.h
PHG4CrystalCalorimeterDetector.cc
PHG4CrystalCalorimeterDetector.h
PHG4CrystalCalorimeterDisplayAction.cc
PHG4CrystalCalorimeterDisplayAction.h
PHG4CrystalCalorimeterSteppingAction.cc
PHG4CrystalCalorimeterSteppingAction.h
PHG4CrystalCalorimeterSubsystem.cc
PHG4CrystalCalorimeterSubsystem.h
PHG4EICForwardEcalDetector.cc
PHG4EICForwardEcalDetector.h
PHG4FCalDetector.cc
PHG4FCalDetector.h
PHG4FCalSteppingAction.cc
PHG4FCalSteppingAction.h
PHG4FCalSubsystem.cc
PHG4FCalSubsystem.h
PHG4ForwardCalCellReco.cc
PHG4ForwardCalCellReco.h
PHG4ForwardEcalDetector.cc
PHG4ForwardEcalDetector.h
PHG4ForwardEcalDisplayAction.cc
PHG4ForwardEcalDisplayAction.h
PHG4ForwardEcalSteppingAction.cc
PHG4ForwardEcalSteppingAction.h
PHG4ForwardEcalSubsystem.cc
PHG4ForwardEcalSubsystem.h
PHG4ForwardHcalDetector.cc
PHG4ForwardHcalDetector.h
PHG4ForwardHcalDisplayAction.cc
PHG4ForwardHcalDisplayAction.h
PHG4ForwardHcalSteppingAction.cc
PHG4ForwardHcalSteppingAction.h
PHG4ForwardHcalSubsystem.cc
PHG4ForwardHcalSubsystem.h
PHG4FPbScDetector.cc
PHG4FPbScDetector.h
PHG4FPbScRegionSteppingAction.cc
PHG4FPbScRegionSteppingAction.h
PHG4FPbScSteppingAction.cc
PHG4FPbScSteppingAction.h
PHG4FPbScSubsystem.cc
PHG4FPbScSubsystem.h
PHG4HybridHomogeneousCalorimeterDetector.cc
PHG4HybridHomogeneousCalorimeterDetector.h
PHG4HybridHomogeneousCalorimeterDisplayAction.cc
PHG4HybridHomogeneousCalorimeterDisplayAction.h
PHG4HybridHomogeneousCalorimeterSteppingAction.cc
PHG4HybridHomogeneousCalorimeterSteppingAction.h
PHG4HybridHomogeneousCalorimeterSubsystem.cc
PHG4HybridHomogeneousCalorimeterSubsystem.h
PHG4LFHcalDetector.cc
PHG4LFHcalDetector.h
PHG4LFHcalDisplayAction.cc
PHG4LFHcalDisplayAction.h
PHG4LFHcalSteppingAction.cc
PHG4LFHcalSteppingAction.h
PHG4LFHcalSubsystem.cc
PHG4LFHcalSubsystem.h
PHG4ProjCrystalCalorimeterDetector.cc
PHG4ProjCrystalCalorimeterDetector.h
RawTowerBuilderByHitIndexBECAL.cc
RawTowerBuilderByHitIndexBECAL.h
RawTowerBuilderByHitIndexLHCal.cc
RawTowerBuilderByHitIndexLHCal.h
g4eicdirc
g4etof
g4jleic
g4lblvtx
g4lumi
g4mrich
g4rich
g4rp
g4trd
g4ttl
g4zdc
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4CrystalCalorimeterDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4CrystalCalorimeterDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4CRYSTALCALORIMETERDETECTOR_H
4
#define G4DETECTORS_PHG4CRYSTALCALORIMETERDETECTOR_H
5
6
#include "
PHG4CrystalCalorimeterDefs.h
"
7
8
#include <
g4main/PHG4Detector.h
>
9
10
#include <map>
11
#include <set>
12
#include <string>
13
14
class
G4LogicalVolume
;
15
class
G4Material
;
16
class
G4VPhysicalVolume
;
17
class
PHCompositeNode
;
18
class
PHG4CrystalCalorimeterDisplayAction
;
19
class
PHG4Subsystem
;
20
class
PHParameters
;
21
28
class
PHG4CrystalCalorimeterDetector
:
public
PHG4Detector
29
{
30
public
:
32
PHG4CrystalCalorimeterDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string &dnam);
33
35
virtual
~PHG4CrystalCalorimeterDetector
() {}
36
38
virtual
void
ConstructMe
(
G4LogicalVolume
*
world
);
39
41
virtual
int
IsInCrystalCalorimeter
(
G4VPhysicalVolume
*)
const
;
42
43
// ----- accessing member variables: ------------
44
45
void
SuperDetector
(
const
std::string &
name
) {
m_SuperDetector
=
name
; }
46
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
47
48
int
get_DetectorId
()
const
{
return
m_DetectorId
; }
49
void
DetectorId
(
const
int
i) {
m_DetectorId
= i; }
50
51
// ----- additional accessors used by derived classes: ------------
52
53
PHParameters
*
GetParams
() {
return
m_Params
; }
54
55
protected
:
// for variables also used in PHG4ProjCrystalCalorimeterDetector
56
PHG4CrystalCalorimeterDisplayAction
*
GetDisplayAction
() {
return
m_DisplayAction
; }
57
G4Material
*
GetCarbonFiber
();
58
virtual
int
GetCaloType
()
const
{
return
PHG4CrystalCalorimeterDefs::CaloType::nonprojective
; }
59
60
private
:
// private stuff
61
G4LogicalVolume
*
ConstructTower
();
62
int
PlaceTower
(
G4LogicalVolume
*envelope,
G4LogicalVolume
*tower);
63
int
ParseParametersFromTable
();
64
65
struct
towerposition
66
{
67
G4double
x
;
68
G4double
y
;
69
G4double
z
;
70
int
idx_j
;
71
int
idx_k
;
72
};
73
74
int
m_DetectorId
= 0;
75
76
std::string
m_SuperDetector
;
77
78
PHParameters
*
m_Params
=
nullptr
;
79
80
PHG4CrystalCalorimeterDisplayAction
*
m_DisplayAction
=
nullptr
;
81
82
std::string
_towerlogicnameprefix
;
83
84
std::map<std::string, G4double>
_map_global_parameter
;
85
std::map<std::string, towerposition>
_map_tower
;
86
std::set<G4VPhysicalVolume *>
m_ActiveVolumeSet
;
87
std::set<G4VPhysicalVolume *>
m_PassiveVolumeSet
;
88
// since getting parameters is a map search we do not want to
89
// do this in every step, the parameters used are cached
90
// in the following variables
91
int
m_IsActive
;
92
int
m_AbsorberActive
;
93
};
94
95
#endif
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4eiccalos
PHG4CrystalCalorimeterDetector.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:47
using
1.8.2 with
ECCE GitHub integration