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
PHG4EnvelopeSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4EnvelopeSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4ENVELOPESUBSYSTEM_H
4
#define G4DETECTORS_PHG4ENVELOPESUBSYSTEM_H
5
6
#include <
g4main/PHG4Subsystem.h
>
7
8
#include <Geant4/G4String.hh>
9
10
#include <string>
// for string
11
12
class
PHG4Detector
;
13
class
PHG4EnvelopeDetector
;
14
class
PHG4EnvelopeSteppingAction
;
15
class
PHG4SteppingAction
;
16
class
PHCompositeNode
;
17
18
class
PHG4EnvelopeSubsystem
:
public
PHG4Subsystem
19
{
20
public
:
21
//Constructor
22
PHG4EnvelopeSubsystem
(
const
std::string
&
name
=
"ENVELOPE_DEFAULT"
,
const
int
layer
= 0);
23
24
//Destructor
25
~PHG4EnvelopeSubsystem
(
void
)
override
26
{
27
}
28
29
/*
30
Creates the detector_ object and place it on the node tree, under "DETECTORS" node (or whatever)
31
Creates the stepping action and place it on the node tree, under "ACTIONS" node
32
Creates relevant hit nodes that will be populated by the stepping action and stored in the output DST
33
*/
34
35
int
Init
(
PHCompositeNode
*)
override
;
36
37
//Event Processing
38
int
process_event
(
PHCompositeNode
*)
override
;
39
40
//Accessors (reimplemented)
41
PHG4Detector
*
GetDetector
(
void
)
const override
;
42
PHG4SteppingAction
*
GetSteppingAction
(
void
)
const override
;
43
44
private
:
45
//Pointer to Geant4 implementation of detector
46
PHG4EnvelopeDetector
*
detector_
;
47
48
//Stepping Action
49
PHG4EnvelopeSteppingAction
*
steppingAction_
;
50
51
G4String
material
;
52
int
active
;
53
54
std::string
detector_type
;
55
};
56
57
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4EnvelopeSubsystem.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:12
using
1.8.2 with
sPHENIX GitHub integration