EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
EICPhysicsList
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4intt
g4jets
g4main
EicEventHeader.cc
EicEventHeader.h
EicEventHeaderLinkDef.h
EicEventHeaderv1.cc
EicEventHeaderv1.h
EicEventHeaderv1LinkDef.h
Fun4AllDstPileupInputManager.cc
Fun4AllDstPileupInputManager.h
Fun4AllDstPileupMerger.cc
Fun4AllDstPileupMerger.h
Fun4AllMessenger.cc
Fun4AllMessenger.h
Fun4AllSingleDstPileupInputManager.cc
Fun4AllSingleDstPileupInputManager.h
G4TBFieldMessenger.cc
G4TBFieldMessenger.hh
G4TBMagneticFieldSetup.cc
G4TBMagneticFieldSetup.hh
HepMCCompress.cc
HepMCCompress.h
HepMCNodeReader.cc
HepMCNodeReader.h
PHBBox.h
PHG4ColorDefs.h
PHG4ConsistencyCheck.cc
PHG4ConsistencyCheck.h
PHG4Detector.cc
PHG4Detector.h
PHG4DisplayAction.cc
PHG4DisplayAction.h
PHG4EtaParameterization.cc
PHG4EtaParameterization.h
PHG4EtaPhiParameterization.cc
PHG4EtaPhiParameterization.h
PHG4EventAction.h
PHG4EventHeader.h
PHG4EventHeaderLinkDef.h
PHG4EventHeaderv1.cc
PHG4EventHeaderv1.h
PHG4EventHeaderv1LinkDef.h
PHG4HeadReco.cc
PHG4HeadReco.h
PHG4Hit.cc
PHG4Hit.h
PHG4HitContainer.cc
PHG4HitContainer.h
PHG4HitContainerLinkDef.h
PHG4HitDefs.cc
PHG4HitDefs.h
PHG4HitEval.cc
PHG4HitEval.h
PHG4HitEvalLinkDef.h
PHG4HitLinkDef.h
PHG4HitReadBack.cc
PHG4HitReadBack.h
PHG4Hitv1.cc
PHG4Hitv1.h
PHG4Hitv1LinkDef.h
PHG4InEvent.cc
PHG4InEvent.h
PHG4InEventCompress.cc
PHG4InEventCompress.h
PHG4InEventLinkDef.h
PHG4InEventReadBack.cc
PHG4InEventReadBack.h
PHG4InputFilter.cc
PHG4InputFilter.h
PHG4IonGun.cc
PHG4IonGun.h
PHG4MagneticField.cc
PHG4MagneticField.h
PHG4Particle.cc
PHG4Particle.h
PHG4ParticleGenerator.cc
PHG4ParticleGenerator.h
PHG4ParticleGeneratorBase.cc
PHG4ParticleGeneratorBase.h
PHG4ParticleGeneratorD0.cc
PHG4ParticleGeneratorD0.h
PHG4ParticleGeneratorVectorMeson.cc
PHG4ParticleGeneratorVectorMeson.h
PHG4ParticleGun.cc
PHG4ParticleGun.h
PHG4ParticleLinkDef.h
PHG4Particlev1.cc
PHG4Particlev1.h
PHG4Particlev1LinkDef.h
PHG4Particlev2.cc
PHG4Particlev2.h
PHG4Particlev2LinkDef.h
PHG4Particlev3.cc
PHG4Particlev3.h
PHG4Particlev3LinkDef.h
PHG4PhenixDetector.cc
PHG4PhenixDetector.h
PHG4PhenixDisplayAction.cc
PHG4PhenixDisplayAction.h
PHG4PhenixEventAction.cc
PHG4PhenixEventAction.h
PHG4PhenixStackingAction.cc
PHG4PhenixStackingAction.h
PHG4PhenixSteppingAction.cc
PHG4PhenixSteppingAction.h
PHG4PhenixTrackingAction.cc
PHG4PhenixTrackingAction.h
PHG4PileupGenerator.cc
PHG4PileupGenerator.h
PHG4PrimaryGeneratorAction.cc
PHG4PrimaryGeneratorAction.h
PHG4Reco.cc
PHG4Reco.h
PHG4RegionInformation.cc
PHG4RegionInformation.h
PHG4ScoringManager.cc
PHG4ScoringManager.h
PHG4Shower.cc
PHG4Shower.h
PHG4ShowerLinkDef.h
PHG4Showerv1.cc
PHG4Showerv1.h
PHG4Showerv1LinkDef.h
PHG4SimpleEventGenerator.cc
PHG4SimpleEventGenerator.h
PHG4StackingAction.cc
PHG4StackingAction.h
PHG4SteppingAction.cc
PHG4SteppingAction.h
PHG4Subsystem.cc
PHG4Subsystem.h
PHG4TrackingAction.h
PHG4TrackUserInfoV1.cc
PHG4TrackUserInfoV1.h
PHG4TruthEventAction.cc
PHG4TruthEventAction.h
PHG4TruthInfoContainer.cc
PHG4TruthInfoContainer.h
PHG4TruthInfoContainerLinkDef.h
PHG4TruthSubsystem.cc
PHG4TruthSubsystem.h
PHG4TruthTrackingAction.cc
PHG4TruthTrackingAction.h
PHG4UIsession.cc
PHG4UIsession.h
PHG4Units.h
PHG4UserPrimaryParticleInformation.h
PHG4Utils.cc
PHG4Utils.h
PHG4VertexSelection.cc
PHG4VertexSelection.h
PHG4VtxPoint.cc
PHG4VtxPoint.h
PHG4VtxPointLinkDef.h
PHG4VtxPointv1.cc
PHG4VtxPointv1.h
PHG4VtxPointv1LinkDef.h
ReadEICFiles.cc
ReadEICFiles.h
g4micromegas
g4mvtx
g4tpc
g4trackfastsim
g4vertex
tpcresponse
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4Detector.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4Detector.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4DETECTOR_H
4
#define G4MAIN_PHG4DETECTOR_H
5
6
#include <Geant4/G4RotationMatrix.hh>
7
8
#include <iostream>
9
#include <string>
10
11
class
G4LogicalVolume;
12
class
G4Material;
13
class
G4Element;
14
class
G4UserSteppingAction;
15
class
G4VSolid;
16
class
PHCompositeNode
;
17
class
PHG4Subsystem
;
18
20
21
class
PHG4Detector
22
{
23
public
:
25
// delete default ctor, nobody should use it
26
PHG4Detector
() =
delete
;
27
// this is the ctor we use
28
explicit
PHG4Detector
(
PHG4Subsystem
*subsys,
PHCompositeNode
*Node,
const
std::string &nam);
29
31
virtual
~PHG4Detector
(
void
)
32
{
33
}
34
36
40
virtual
void
Construct
(G4LogicalVolume *
world
)
final
;
41
42
virtual
void
ConstructMe
(G4LogicalVolume *mothervolume) = 0;
43
45
virtual
void
PostConstruction
() {};
46
47
virtual
void
Verbosity
(
const
int
v
) {
m_Verbosity
=
v
; }
48
49
virtual
int
Verbosity
()
const
{
return
m_Verbosity
; }
50
virtual
G4UserSteppingAction *
GetSteppingAction
() {
return
nullptr
; }
51
virtual
std::string
GetName
()
const
{
return
m_Name
; }
52
virtual
void
OverlapCheck
(
const
bool
chk) {
m_OverlapCheck
= chk; }
53
virtual
bool
OverlapCheck
()
const
{
return
m_OverlapCheck
; }
54
virtual
void
Print
(
const
std::string &
/*what*/
=
"ALL"
)
const
55
{
56
std::cout <<
GetName
() <<
": Print method not implemented"
<< std::endl;
57
}
58
virtual
int
DisplayVolume
(G4VSolid *
volume
, G4LogicalVolume *logvol, G4RotationMatrix *rotm =
nullptr
);
59
virtual
int
DisplayVolume
(G4LogicalVolume *checksolid, G4LogicalVolume *logvol, G4RotationMatrix *rotm =
nullptr
);
60
virtual
PHCompositeNode
*
topNode
() {
return
m_topNode
; }
61
virtual
PHG4Subsystem
*
GetMySubsystem
() {
return
m_MySubsystem
;}
62
static
G4Material *
GetDetectorMaterial
(
const
std::string &
name
,
const
bool
quit =
true
);
63
static
G4Element *
GetDetectorElement
(
const
std::string &
name
,
const
bool
quit =
true
);
64
65
private
:
66
PHCompositeNode
*
m_topNode
=
nullptr
;
67
PHG4Subsystem
*
m_MySubsystem
=
nullptr
;
68
int
m_Verbosity
= 0;
69
bool
m_OverlapCheck
=
false
;
70
int
m_ColorIndex
= 0;
71
std::string
m_Name
;
72
};
73
74
#endif // G4MAIN_PHG4DETECTOR_H
fun4all_coresoftware
blob
master
simulation
g4simulation
g4main
PHG4Detector.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:50
using
1.8.2 with
EIC GitHub integration