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
G4Example02Detector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4Example02Detector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4EXAMPLE02DETECTOR_H
4
#define G4EXAMPLE02DETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <set>
9
#include <string>
// for string
10
11
class
G4LogicalVolume;
12
class
G4VPhysicalVolume
;
13
class
PHCompositeNode
;
14
class
PHG4Subsystem
;
15
class
PHParameters
;
16
17
class
G4Example02Detector
:
public
PHG4Detector
18
{
19
public
:
21
G4Example02Detector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string
&dnam);
22
24
virtual
~G4Example02Detector
() {}
25
27
virtual
void
ConstructMe
(G4LogicalVolume *world);
28
29
virtual
void
Print
(
const
std::string
&what =
"ALL"
)
const
;
30
32
33
int
IsInDetector
(
G4VPhysicalVolume
*)
const
;
35
36
void
SuperDetector
(
const
std::string
&
name
) {
m_SuperDetector
=
name
; }
37
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
38
39
protected
:
40
PHParameters
*
m_Params
;
41
42
// active volumes
43
std::set<G4VPhysicalVolume *>
m_PhysicalVolumesSet
;
44
45
std::string
m_SuperDetector
;
46
};
47
48
#endif // G4EXAMPLE02DETECTOR_H
g4exampledetector
blob
master
parameter
source
G4Example02Detector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration