Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4ihcal
g4intt
g4jets
g4main
g4micromegas
g4mvtx
PHG4EICMvtxDetector.cc
PHG4EICMvtxDetector.h
PHG4EICMvtxSteppingAction.cc
PHG4EICMvtxSteppingAction.h
PHG4EICMvtxSubsystem.cc
PHG4EICMvtxSubsystem.h
PHG4MvtxCable.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
PHG4MvtxSupport.cc
PHG4MvtxSupport.h
g4ohcal
g4tpc
g4trackfastsim
g4tracking
g4vertex
g4waveformsim
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
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
IsSupportActive
(
int
lyr)
const
{
return
m_IsLayerSupportActive
[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
void
FillSupportLVArray
(G4LogicalVolume* lv) {
m_SupportLV
.insert(lv); }
53
54
private
:
55
void
AddGeometryNode
();
56
int
ConstructMvtx
(G4LogicalVolume* sandwich);
57
int
ConstructMvtx_Layer
(
int
layer
, G4AssemblyVolume* stave, G4LogicalVolume*& trackerenvelope);
58
int
ConstructMvtxPassiveVol
(G4LogicalVolume*& lv);
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
PHG4MvtxDisplayAction
*
m_DisplayAction
{
nullptr
};
68
const
PHParametersContainer
*
m_ParamsContainer
{
nullptr
};
69
70
static
constexpr
int
n_Layers
{3};
71
int
m_SupportActiveFlag
{0};
72
73
std::string
m_Detector
;
74
std::string
m_SuperDetector
;
75
std::string
m_StaveGeometryFile
;
76
77
// map of sensor physical volume pointers
78
std::set<G4VPhysicalVolume*>
m_SensorPV
;
79
std::map<G4VPhysicalVolume*, std::tuple<int, int>>
m_StavePV
;
80
// set of support structures
81
std::set<G4LogicalVolume*>
m_SupportLV
;
82
83
// setup parameters
84
std::array<int, n_Layers>
m_IsLayerActive
{};
85
std::array<int, n_Layers>
m_IsLayerSupportActive
{};
86
std::array<int, n_Layers>
m_IsBlackHole
{};
87
std::array<int, n_Layers>
m_N_staves
{};
88
std::array<double, n_Layers>
m_nominal_radius
{};
89
std::array<double, n_Layers>
m_nominal_phitilt
{};
90
std::array<double, n_Layers>
m_nominal_phi0
{};
91
};
92
93
#endif
coresoftware
blob
master
simulation
g4simulation
g4mvtx
PHG4MvtxDetector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration