ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
G4DetectorConstruction Class Reference

#include <G4DetectorConstruction.h>

Inheritance diagram for G4DetectorConstruction:
Collaboration diagram for G4DetectorConstruction:

Public Member Functions

 G4DetectorConstruction ()
 
 ~G4DetectorConstruction ()
 
void dummyDetector ()
 
G4VPhysicalVolume * Construct ()
 

Private Attributes

G4LogicalVolume * m_worldLog
 
G4VPhysicalVolume * m_worldPhys
 

Detailed Description

Author
: sarka.nosp@m..tod.nosp@m.orova.nosp@m.@cer.nosp@m.n.ch

Definition at line 23 of file G4DetectorConstruction.h.

Constructor & Destructor Documentation

◆ G4DetectorConstruction()

G4DetectorConstruction::G4DetectorConstruction ( )

Definition at line 23 of file G4DetectorConstruction.cxx.

24  : m_worldLog(nullptr),
25  m_worldPhys(nullptr)
26 {}

◆ ~G4DetectorConstruction()

G4DetectorConstruction::~G4DetectorConstruction ( )

Definition at line 29 of file G4DetectorConstruction.cxx.

30 {}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * G4DetectorConstruction::Construct ( )

Definition at line 63 of file G4DetectorConstruction.cxx.

64 {
65  // call the update detector method
66  dummyDetector();
67  return m_worldPhys;
68 }

◆ dummyDetector()

void G4DetectorConstruction::dummyDetector ( )

Definition at line 33 of file G4DetectorConstruction.cxx.

34 {
35  G4ThreeVector materialPosition(0.,0.,0.);
36 
37  // (1) WORLD
38  // create the world setup
39  G4Box* worldBox = new G4Box("WorldBox",25000.,25000.,25000.);
40 
41  // G4 material : vacuum setup
42  G4Material* g4vacuum = G4Material::GetMaterial("Vacuum",false);
43  if(!g4vacuum) g4vacuum = new G4Material("FatrasDummyVacuum",1.,1.01*CLHEP::g/CLHEP::mole,
45  kStateGas,0.1*CLHEP::kelvin, 1.e-19*CLHEP::pascal);
46 
47  m_worldLog = m_worldLog ? new(m_worldLog) G4LogicalVolume(worldBox,g4vacuum,"WorldLogical", 0, 0, 0) :
48  new G4LogicalVolume(worldBox,g4vacuum,"WorldLogical", 0, 0, 0);
49  m_worldPhys = m_worldPhys ? new(m_worldPhys) G4PVPlacement(0,G4ThreeVector(0.,0.,0),"WorldPhysical",m_worldLog,0,false,0) :
50  new G4PVPlacement(0,materialPosition,"WorldPhysical",m_worldLog,0,false,0);
51 
52  // (2) DETECTOR
53  // create the detector setup, by definition 3 times the thickness
54  //G4Box* detectordBox = new G4Box("WorldBox",10*thickness,10*thickness,10*thickness);
55  //m_detectorLog = m_detectorLog ? new(m_detectorLog) G4LogicalVolume(worldBox,s_g4vacuum,"DetectorLogical", 0, 0, 0) :
56  // new G4LogicalVolume(detectordBox,s_g4vacuum,"DetectordLogical", 0, 0, 0);
57  //m_detectorPhys = m_detectorPhys ? new(m_detectorPhys) G4PVPlacement(0,materialPosition,"DetectorPhysical",m_detectorLog,0,false,0) :
58  // new G4PVPlacement(0,materialPosition,"DetectorPhysical",m_detectorLog,m_worldPhys,false,0);
59 
60 }

Member Data Documentation

◆ m_worldLog

G4LogicalVolume* G4DetectorConstruction::m_worldLog
private

Definition at line 38 of file G4DetectorConstruction.h.

◆ m_worldPhys

G4VPhysicalVolume* G4DetectorConstruction::m_worldPhys
private

Definition at line 42 of file G4DetectorConstruction.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
python.SystemOfUnits.pascal
int pascal
Definition: SystemOfUnits.py:187
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
python.SystemOfUnits.kelvin
int kelvin
Definition: SystemOfUnits.py:241
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
G4DetectorConstruction::m_worldPhys
G4VPhysicalVolume * m_worldPhys
Definition: G4DetectorConstruction.h:42
G4DetectorConstruction::dummyDetector
void dummyDetector()
Definition: G4DetectorConstruction.cxx:33
python.PhysicalConstants.universe_mean_density
int universe_mean_density
Definition: PhysicalConstants.py:126
G4DetectorConstruction::m_worldLog
G4LogicalVolume * m_worldLog
Definition: G4DetectorConstruction.h:38
mole
#define mole