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
blob
master
calibrations
generators
offline
simulation
g4simulation
EICPhysicsList
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4intt
g4jets
g4main
g4micromegas
g4mvtx
PHG4EICMvtxDetector.cc
PHG4EICMvtxDetector.h
PHG4EICMvtxSteppingAction.cc
PHG4EICMvtxSteppingAction.h
PHG4EICMvtxSubsystem.cc
PHG4EICMvtxSubsystem.h
PHG4MvtxDefs.h
PHG4MvtxDetector.cc
PHG4MvtxDetector.h
PHG4MvtxDigitizer.cc
PHG4MvtxDigitizer.h
PHG4MvtxDisplayAction.cc
PHG4MvtxDisplayAction.h
PHG4MvtxHitReco.cc
PHG4MvtxHitReco.h
PHG4MvtxSteppingAction.cc
PHG4MvtxSteppingAction.h
PHG4MvtxSubsystem.cc
PHG4MvtxSubsystem.h
g4tpc
g4trackfastsim
g4vertex
tpcresponse
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
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
PHG4MvtxDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4MvtxDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MVTX_PHG4MVTXDETECTOR_H
4
#define G4MVTX_PHG4MVTXDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <array>
9
#include <cmath>
// for M_PI
10
#include <map>
11
#include <set>
12
#include <string>
13
#include <tuple>
// for tuple
14
15
class
G4AssemblyVolume
;
16
class
G4LogicalVolume
;
17
class
G4VPhysicalVolume
;
18
class
PHCompositeNode
;
19
class
PHG4MvtxDisplayAction
;
20
class
PHG4Subsystem
;
21
class
PHParametersContainer
;
22
23
class
PHG4MvtxDetector
:
public
PHG4Detector
24
{
25
public
:
27
PHG4MvtxDetector
(
PHG4Subsystem
* subsys,
PHCompositeNode
* Node,
const
PHParametersContainer
* _paramsContainer,
const
std::string& dnam);
28
30
~PHG4MvtxDetector
()
override
{}
31
33
void
ConstructMe
(
G4LogicalVolume
*
world
)
override
;
34
36
37
int
IsInMvtx
(
G4VPhysicalVolume
*,
int
&
layer
,
int
& stave)
const
;
38
int
IsSensor
(
G4VPhysicalVolume
*)
const
;
40
41
int
IsActive
(
int
lyr)
const
{
return
m_IsLayerActive
[lyr]; }
42
int
IsAbsorberActive
(
int
lyr)
const
{
return
m_IsLayerAbsorberActive
[lyr]; }
43
int
IsBlackHole
(
int
lyr)
const
{
return
m_IsBlackHole
[lyr]; }
44
void
SuperDetector
(
const
std::string&
name
) {
m_SuperDetector
=
name
; }
45
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
46
void
Detector
(
const
std::string&
name
) {
m_Detector
=
name
; }
47
const
std::string
Detector
()
const
{
return
m_Detector
; }
48
49
int
get_layer
(
int
stv_index)
const
;
50
int
get_stave
(
int
stv_index)
const
;
51
52
private
:
53
void
AddGeometryNode
();
54
int
ConstructMvtx
(
G4LogicalVolume
* sandwich);
55
int
ConstructMvtx_Layer
(
int
layer
,
G4AssemblyVolume
* stave,
G4LogicalVolume
*& trackerenvelope);
56
int
ConstructMvtxPassiveVol
(
G4LogicalVolume
*& lv);
57
58
G4LogicalVolume
*
GetMvtxOuterShell
(
G4LogicalVolume
*& trackerenvelope);
59
60
void
SetDisplayProperty
(
G4AssemblyVolume
* av);
61
void
SetDisplayProperty
(
G4LogicalVolume
* lv);
62
void
FillPVArray
(
G4AssemblyVolume
* av);
63
void
FindSensor
(
G4LogicalVolume
* lv);
64
// calculated quantities
65
double
get_phistep
(
int
lay)
const
{
return
2.0 *
M_PI
/
m_N_staves
[lay]; }
66
67
static
constexpr
int
n_Layers
= 3;
68
PHG4MvtxDisplayAction
*
m_DisplayAction
;
69
const
PHParametersContainer
*
m_ParamsContainer
;
70
71
// map of sensor physical volume pointers
72
std::set<G4VPhysicalVolume*>
m_SensorPV
;
73
std::map<G4VPhysicalVolume*, std::tuple<int, int>>
m_StavePV
;
74
75
// setup parameters
76
std::array<int, n_Layers>
m_IsLayerActive
;
77
std::array<int, n_Layers>
m_IsLayerAbsorberActive
;
78
std::array<int, n_Layers>
m_IsBlackHole
;
79
std::array<int, n_Layers>
m_N_staves
;
80
std::array<double, n_Layers>
m_nominal_radius
;
81
std::array<double, n_Layers>
m_nominal_phitilt
;
82
std::array<double, n_Layers>
m_nominal_phi0
;
83
84
std::string
m_Detector
;
85
std::string
m_SuperDetector
;
86
std::string
m_StaveGeometryFile
;
87
std::string
m_EndWheelsSideS
;
88
std::string
m_EndWheelsSideN
;
89
};
90
91
#endif
coresoftware
blob
master
simulation
g4simulation
g4mvtx
PHG4MvtxDetector.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration