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
PHG4HcalPrototypeSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4HcalPrototypeSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
// This is the subsystem code (header file) for the hcal prototype detector
4
// created on 1/27/2014, Liang, HeXC
5
//
6
#ifndef G4CALOPROTOTYPE_PHG4HCALPROTOTYPESUBSYSTEM_H
7
#define G4CALOPROTOTYPE_PHG4HCALPROTOTYPESUBSYSTEM_H
8
9
#include <
g4main/PHG4Subsystem.h
>
10
11
#include <Geant4/G4Types.hh>
12
#include <Geant4/G4String.hh>
13
14
#include <string>
// for string
15
16
class
PHCompositeNode
;
17
class
PHG4Detector
;
18
class
PHG4HcalPrototypeDetector
;
19
class
PHG4HcalPrototypeSteppingAction
;
20
class
PHG4EventAction
;
21
class
PHG4SteppingAction
;
22
23
class
PHG4HcalPrototypeSubsystem
:
public
PHG4Subsystem
24
{
25
26
public
:
27
29
PHG4HcalPrototypeSubsystem
(
const
std::string
&
name
=
"BLOCK"
,
const
int
layer
= 0 );
30
32
virtual
~PHG4HcalPrototypeSubsystem
(
void
)
33
{}
34
36
41
int
Init
(
PHCompositeNode
*);
42
44
48
int
process_event
(
PHCompositeNode
*);
49
51
virtual
PHG4Detector
*
GetDetector
(
void
)
const
;
52
virtual
PHG4SteppingAction
*
GetSteppingAction
(
void
)
const
;
53
54
void
SetYRot
(
const
G4double dbl) {
rot_in_y
= dbl;}
55
void
SetZRot
(
const
G4double dbl) {
rot_in_z
= dbl;}
56
57
void
SetMaterial
(
const
std::string
&mat) {
material
= mat;}
58
PHG4EventAction
*
GetEventAction
()
const
{
return
eventAction_
;}
59
void
SetActive
(
const
int
i
= 1) {
active
=
i
;}
60
void
SetAbsorberActive
(
const
int
i
= 1) {
absorberactive
=
i
;}
61
void
SuperDetector
(
const
std::string
&
name
) {
superdetector
=
name
;}
62
const
std::string
SuperDetector
() {
return
superdetector
;}
63
64
void
BlackHole
(
const
int
i
=1) {
blackhole
=
i
;}
65
66
private
:
67
69
70
PHG4HcalPrototypeDetector
*
detector_
;
71
73
74
PHG4HcalPrototypeSteppingAction
*
steppingAction_
;
75
PHG4EventAction
*
eventAction_
;
76
G4double
dimension
[3];
77
G4double
rot_in_y
;
78
G4double
rot_in_z
;
79
80
G4String
material
;
81
int
active
;
82
int
absorberactive
;
83
int
layer
;
84
int
blackhole
;
85
std::string
detector_type
;
86
std::string
superdetector
;
87
};
88
89
#endif
prototype
blob
master
simulation
g4simulation
g4caloprototype
PHG4HcalPrototypeSubsystem.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:29
using
1.8.2 with
sPHENIX GitHub integration