k4SimGeant4
Loading...
Searching...
No Matches
sim::GdmlDetectorConstruction Class Reference

#include <SimG4Common/include/SimG4Common/GdmlDetectorConstruction.h>

Inheritance diagram for sim::GdmlDetectorConstruction:
Collaboration diagram for sim::GdmlDetectorConstruction:

Public Member Functions

 GdmlDetectorConstruction (const std::string &aFileName, bool validate=false)
 Constructor.
 
virtual ~GdmlDetectorConstruction ()
 
virtual G4VPhysicalVolume * Construct () override
 Create volumes using the GDML parser.
 
virtual void ConstructSDandField () override
 Create sensitive detectors.
 

Private Attributes

ServiceHandle< IMessageSvc > m_msgSvc
 Message Service.
 
MsgStream m_log
 Message Stream.
 
G4GDMLParser m_parser
 Parser of the GDML file.
 
std::string m_fileName
 name of the GDML file
 

Constructor & Destructor Documentation

◆ GdmlDetectorConstruction()

GdmlDetectorConstruction::GdmlDetectorConstruction ( const std::string & aFileName,
bool validate = false )
explicit

Constructor.

Parameters
[in]aFileNameName of the GDML file with the detector description.

◆ ~GdmlDetectorConstruction()

GdmlDetectorConstruction::~GdmlDetectorConstruction ( )
virtual

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * GdmlDetectorConstruction::Construct ( )
overridevirtual

Create volumes using the GDML parser.

Returns
World wolume.

◆ ConstructSDandField()

void GdmlDetectorConstruction::ConstructSDandField ( )
overridevirtual

Create sensitive detectors.

User needs to provide own implementation and attach appropriate information to the GDML file (that will connect volume with a sensitive detector type). See Geant examples/extended/persistency/gdml/G04 for further details.

Member Data Documentation

◆ m_fileName

std::string sim::GdmlDetectorConstruction::m_fileName
private

name of the GDML file

◆ m_log

MsgStream sim::GdmlDetectorConstruction::m_log
private

Message Stream.

◆ m_msgSvc

ServiceHandle<IMessageSvc> sim::GdmlDetectorConstruction::m_msgSvc
private

Message Service.

◆ m_parser

G4GDMLParser sim::GdmlDetectorConstruction::m_parser
private

Parser of the GDML file.


The documentation for this class was generated from the following files: