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
G4Example01Detector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4Example01Detector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4EXAMPLE01DETECTOR_H
4
#define G4EXAMPLE01DETECTOR_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
16
class
G4Example01Detector
:
public
PHG4Detector
17
{
18
public
:
20
G4Example01Detector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
const
std::string
&dnam);
21
23
virtual
~G4Example01Detector
() {}
24
26
virtual
void
ConstructMe
(G4LogicalVolume *world);
27
28
virtual
void
Print
(
const
std::string
&what =
"ALL"
)
const
;
29
31
32
int
IsInDetector
(
G4VPhysicalVolume
*)
const
;
34
35
void
SuperDetector
(
const
std::string
&
name
) {
m_SuperDetector
=
name
; }
36
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
37
38
private
:
39
// active volumes
40
std::set<G4VPhysicalVolume *>
m_PhysicalVolumesSet
;
41
42
std::string
m_SuperDetector
;
43
};
44
45
#endif // G4EXAMPLE01DETECTOR_H
g4exampledetector
blob
master
simple
source
G4Example01Detector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration