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
PHG4BbcDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4BbcDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4BBCDETECTOR_H
4
#define G4DETECTORS_PHG4BBCDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <cmath>
9
#include <set>
10
#include <string>
11
12
class
G4LogicalVolume;
13
class
G4VPhysicalVolume
;
14
class
PHG4BbcDisplayAction
;
15
class
PHCompositeNode
;
16
class
PHG4Subsystem
;
17
class
PHParameters
;
18
19
class
PHG4BbcDetector
:
public
PHG4Detector
20
{
21
public
:
23
PHG4BbcDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*params,
const
std::string
&dnam =
"BBC"
);
24
26
~PHG4BbcDetector
()
override
27
{
28
}
29
31
void
ConstructMe
(G4LogicalVolume *world)
override
;
32
void
ConstructSupport
(G4LogicalVolume *world);
33
34
void
Print
(
const
std::string
&what =
"ALL"
)
const override
;
35
36
int
IsInBbc
(
G4VPhysicalVolume
*)
const
;
37
38
void
SuperDetector
(
const
std::string
&
name
) {
m_SuperDetector
=
name
; }
39
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
40
41
PHG4BbcDisplayAction
*
GetDisplayAction
() {
return
m_DisplayAction
; }
42
43
protected
:
44
PHG4BbcDisplayAction
*
m_DisplayAction
=
nullptr
;
45
46
PHParameters
*
m_Params
=
nullptr
;
47
48
int
m_ActiveFlag
= 0;
49
int
m_SupportActiveFlag
= 0;
50
51
float
m_bbcz
= NAN;
// z-location of mid-point of quartz ckov crystals
52
float
front_bbcz
= NAN;
// z-location of front of BBC housing
53
54
std::set<G4LogicalVolume *>
m_PhysLogicalVolSet
;
55
std::set<G4LogicalVolume *>
m_SupportLogicalVolSet
;
56
57
std::string
m_SuperDetector
;
58
};
59
60
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4BbcDetector.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:12
using
1.8.2 with
sPHENIX GitHub integration