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
PHG4TTLSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TTLSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4TTLSUBSYSTEM_H
4
#define G4DETECTORS_PHG4TTLSUBSYSTEM_H
5
6
// #include "PHG4TTLDetector.h"
7
8
#include <
g4detectors/PHG4DetectorSubsystem.h
>
// for PHG4DetectorSubsystem
9
10
#include <string>
// for string
11
12
class
PHCompositeNode
;
13
class
PHG4Detector
;
14
class
PHG4DisplayAction
;
15
class
PHG4TTLDetector
;
16
class
PHG4SteppingAction
;
17
18
class
PHG4TTLSubsystem
:
public
PHG4DetectorSubsystem
19
{
20
public
:
22
PHG4TTLSubsystem
(
const
std::string&
name
=
"Sector"
);
23
25
~PHG4TTLSubsystem
()
override
;
26
28
33
int
InitRunSubsystem
(
PHCompositeNode
*)
override
;
34
36
40
int
process_event
(
PHCompositeNode
*)
override
;
41
43
PHG4Detector
*
44
GetDetector
(
void
)
const override
;
45
PHG4SteppingAction
*
GetSteppingAction
(
void
)
const override
{
return
m_SteppingAction
; }
46
47
PHG4DisplayAction
*
GetDisplayAction
()
const override
{
return
m_DisplayAction
; }
48
49
void
50
SuperDetector
(
const
std::string&
name
)
51
{
52
superdetector
=
name
;
53
}
54
55
// //! geometry manager PHG4TTL::Sector_Geometry
56
// PHG4TTL::Sector_Geometry&
57
// get_geometry()
58
// {
59
// return geom;
60
// }
61
62
// //! geometry manager PHG4TTL::Sector_Geometry
63
// void
64
// set_geometry(const PHG4TTL::Sector_Geometry& g)
65
// {
66
// geom = g;
67
// }
68
71
void
SetDetailed
(
bool
b
) {
showdetailed
=
b
; }
72
73
private
:
74
void
SetDefaultParameters
()
override
;
76
77
PHG4TTLDetector
*
m_Detector
;
78
80
81
PHG4SteppingAction
*
m_SteppingAction
;
82
84
85
PHG4DisplayAction
*
m_DisplayAction
;
86
87
std::string
superdetector
;
88
bool
showdetailed
=
false
;
89
90
// PHG4TTL::Sector_Geometry geom;
91
};
92
93
#endif
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4ttl
PHG4TTLSubsystem.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:48
using
1.8.2 with
ECCE GitHub integration