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
BeamLineMagnetDetector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file BeamLineMagnetDetector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_BEAMLINEMAGNETMAGNETDETECTOR_H
4
#define G4DETECTORS_BEAMLINEMAGNETMAGNETDETECTOR_H
5
6
#include <
g4main/PHG4Detector.h
>
7
8
#include <string>
9
10
class
BeamLineMagnetDisplayAction
;
11
class
G4LogicalVolume
;
12
class
G4VPhysicalVolume
;
13
class
PHCompositeNode
;
14
class
PHG4Subsystem
;
15
class
PHParameters
;
16
class
G4MagneticField
;
17
18
class
BeamLineMagnetDetector
:
public
PHG4Detector
19
{
20
public
:
22
BeamLineMagnetDetector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
PHParameters
*
parameters
,
const
std::string &dnam,
const
int
magnetid = 0);
23
25
~BeamLineMagnetDetector
(
void
)
override
26
{
27
}
28
30
void
ConstructMe
(
G4LogicalVolume
*
world
)
override
;
31
33
void
PostConstruction
()
override
;
34
35
int
IsInBeamLineMagnet
(
const
G4VPhysicalVolume
*)
const
;
36
void
SuperDetector
(
const
std::string &
name
) {
m_SuperDetector
=
name
; }
37
const
std::string
SuperDetector
()
const
{
return
m_SuperDetector
; }
38
int
get_MagnetId
()
const
{
return
m_MagnetId
; }
39
40
private
:
41
PHParameters
*
m_Params
=
nullptr
;
42
43
G4VPhysicalVolume
*
magnet_physi
=
nullptr
;
44
G4VPhysicalVolume
*
magnet_iron_physi
=
nullptr
;
45
G4VPhysicalVolume
*
magnet_core_physi
=
nullptr
;
46
BeamLineMagnetDisplayAction
*
m_DisplayAction
=
nullptr
;
47
G4LogicalVolume
*
m_magnetFieldLogic
=
nullptr
;
48
G4MagneticField
*
m_magField
=
nullptr
;
49
50
int
m_MagnetId
= -1;
51
52
std::string
m_SuperDetector
=
"NONE"
;
53
};
54
55
#endif // G4DETECTORS_BEAMLINEMAGNETMAGNETDETECTOR_H
coresoftware
blob
master
simulation
g4simulation
g4detectors
BeamLineMagnetDetector.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:40
using
1.8.2 with
ECCE GitHub integration