Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4TpcDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TpcDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4TPC_PHG4TPCDETECTOR_H
4
#define G4TPC_PHG4TPCDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <cmath>
9
#include <set>
10
#include <string>
11
#include <vector>
12
13
class
G4LogicalVolume;
14
class
G4UserLimits;
15
class
G4VPhysicalVolume
;
16
class
PHCompositeNode
;
17
class
PHG4TpcDisplayAction
;
18
class
PHG4Subsystem
;
19
class
PHParameters
;
20
21
class
PHG4TpcDetector
:
public
PHG4Detector
22
{
23
public
:
25
PHG4TpcDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string
&dnam);
26
28
~PHG4TpcDetector
(
void
)
override
29
{
30
}
31
33
void
ConstructMe
(G4LogicalVolume *world)
override
;
34
35
int
IsInTpc
(
G4VPhysicalVolume
*)
const
;
36
void
SuperDetector
(
const
std::string
&
name
) {
m_SuperDetectorName
=
name
; }
37
const
std::string
SuperDetector
()
const
{
return
m_SuperDetectorName
; }
38
39
private
:
40
int
ConstructTpcGasVolume
(G4LogicalVolume *tpc_envelope);
41
int
ConstructTpcCageVolume
(G4LogicalVolume *tpc_envelope);
42
int
ConstructTpcExternalSupports
(G4LogicalVolume *logicWorld);
43
44
void
CreateCompositeMaterial
(
std::string
compositeName, std::vector<std::string> materialName, std::vector<double>
thickness
);
45
47
48
void
add_geometry_node
();
49
50
PHG4TpcDisplayAction
*
m_DisplayAction
=
nullptr
;
51
PHParameters
*
m_Params
=
nullptr
;
52
G4UserLimits *
m_G4UserLimits
=
nullptr
;
53
int
m_ActiveFlag
= 0;
54
int
m_AbsorberActiveFlag
= 0;
55
double
m_InnerCageRadius
= NAN;
56
double
m_OuterCageRadius
= NAN;
57
std::set<G4VPhysicalVolume *>
m_AbsorberVolumeSet
;
58
std::set<G4VPhysicalVolume *>
m_ActiveVolumeSet
;
59
60
std::string
m_SuperDetectorName
;
61
};
62
63
#endif
coresoftware
blob
master
simulation
g4simulation
g4tpc
PHG4TpcDetector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration