ECCE @ EIC Software
Reference for
ECCE @ 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
PHG4Subsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4Subsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4SUBSYSTEM_H
4
#define G4MAIN_PHG4SUBSYSTEM_H
5
6
#include <
fun4all/Fun4AllReturnCodes.h
>
7
#include <
fun4all/SubsysReco.h
>
8
9
#include <iostream>
10
#include <string>
11
12
class
G4LogicalVolume
;
13
class
G4ParticleDefinition
;
14
class
PHCompositeNode
;
15
class
PHG4Detector
;
16
class
PHG4DisplayAction
;
17
class
PHG4EventAction
;
18
class
PHG4StackingAction
;
19
class
PHG4SteppingAction
;
20
class
PHG4TrackingAction
;
21
22
class
PHG4Subsystem
:
public
SubsysReco
23
{
24
public
:
26
PHG4Subsystem
(
const
std::string &
name
=
"Generic Subsystem"
)
27
:
SubsysReco
(
name
)
28
{
29
}
30
32
~PHG4Subsystem
(
void
)
override
{}
33
35
virtual
int
process_after_geant
(
PHCompositeNode
*)
36
{
37
return
Fun4AllReturnCodes::EVENT_OK
;
38
}
39
41
virtual
PHG4Detector
*
GetDetector
(
void
)
const
42
{
43
return
nullptr
;
44
}
45
47
virtual
PHG4EventAction
*
GetEventAction
(
void
)
const
48
{
49
return
nullptr
;
50
}
51
53
virtual
PHG4SteppingAction
*
GetSteppingAction
(
void
)
const
54
{
55
return
nullptr
;
56
}
57
59
virtual
PHG4TrackingAction
*
GetTrackingAction
(
void
)
const
60
{
61
return
nullptr
;
62
}
63
65
virtual
PHG4DisplayAction
*
GetDisplayAction
()
const
66
{
67
return
nullptr
;
68
}
69
70
virtual
PHG4StackingAction
*
GetStackingAction
()
const
{
return
nullptr
;}
71
72
void
OverlapCheck
(
const
bool
chk =
true
) {
overlapcheck
= chk; }
73
74
bool
CheckOverlap
()
const
{
return
overlapcheck
; }
75
76
void
SetMotherSubsystem
(
PHG4Subsystem
*subsys);
77
PHG4Subsystem
*
GetMotherSubsystem
()
const
{
return
m_MyMotherSubsystem
; }
78
79
void
SetLogicalVolume
(
G4LogicalVolume
*vol) {
m_MyLogicalVolume
= vol; }
80
G4LogicalVolume
*
GetLogicalVolume
()
const
{
return
m_MyLogicalVolume
; }
81
82
// this method is used to check if it can be used as mothervolume
83
// Subsystems which can be mothervolume need to implement this
84
// and return true
85
virtual
bool
CanBeMotherSubsystem
()
const
{
return
false
;}
86
87
//
88
virtual
void
AddProcesses
(
G4ParticleDefinition
*
/*particle*/
) {}
89
90
// define materials used in detector
91
virtual
void
DefineMaterials
() {}
92
93
private
:
94
PHG4Subsystem
*
m_MyMotherSubsystem
=
nullptr
;
95
G4LogicalVolume
*
m_MyLogicalVolume
=
nullptr
;
96
bool
overlapcheck
=
false
;
97
};
98
99
#endif // G4MAIN_PHG4SUBSYSTEM_H
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4Subsystem.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration