EIC Software
Reference for
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
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 <vector>
11
12
class
G4LogicalVolume;
13
class
G4UserLimits;
14
class
G4VPhysicalVolume;
15
class
PHCompositeNode
;
16
class
PHG4TpcDisplayAction
;
17
class
PHG4Subsystem
;
18
class
PHParameters
;
19
20
class
PHG4TpcDetector
:
public
PHG4Detector
21
{
22
public
:
24
PHG4TpcDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string &dnam);
25
27
~PHG4TpcDetector
(
void
)
override
28
{
29
}
30
32
void
ConstructMe
(G4LogicalVolume *
world
)
override
;
33
34
int
IsInTpc
(G4VPhysicalVolume *)
const
;
35
void
SuperDetector
(
const
std::string &
name
) {
m_SuperDetectorName
=
name
; }
36
const
std::string
SuperDetector
()
const
{
return
m_SuperDetectorName
; }
37
38
private
:
39
int
ConstructTpcGasVolume
(G4LogicalVolume *tpc_envelope);
40
int
ConstructTpcCageVolume
(G4LogicalVolume *tpc_envelope);
41
int
ConstructTpcExternalSupports
(G4LogicalVolume *logicWorld);
42
43
void
CreateCompositeMaterial
(std::string compositeName, std::vector<std::string> materialName, std::vector<double>
thickness
);
44
45
PHG4TpcDisplayAction
*
m_DisplayAction
=
nullptr
;
46
PHParameters
*
m_Params
=
nullptr
;
47
G4UserLimits *
m_G4UserLimits
=
nullptr
;
48
int
m_ActiveFlag
= 0;
49
int
m_AbsorberActiveFlag
= 0;
50
double
m_InnerCageRadius
= NAN;
51
double
m_OuterCageRadius
= NAN;
52
std::set<G4VPhysicalVolume *>
m_AbsorberVolumeSet
;
53
std::set<G4VPhysicalVolume *>
m_ActiveVolumeSet
;
54
55
std::string
m_SuperDetectorName
;
56
};
57
58
#endif
fun4all_coresoftware
blob
master
simulation
g4simulation
g4tpc
PHG4TpcDetector.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:50
using
1.8.2 with
EIC GitHub integration