Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExTGDetectorConstructionWithCuts Class Reference

Detector construction class using text geometry file using cuts per region. More...

#include <Doxymodules_persistency.h>

Inheritance diagram for ExTGDetectorConstructionWithCuts:
G4VUserDetectorConstruction

Public Member Functions

 ExTGDetectorConstructionWithCuts ()
 
 ~ExTGDetectorConstructionWithCuts ()
 
G4VPhysicalVolumeConstruct ()
 

Private Attributes

G4tgrMessengerfMessenger
 

Detailed Description

Detector construction class using text geometry file using cuts per region.

Definition at line 117 of file Doxymodules_persistency.h.

Constructor & Destructor Documentation

◆ ExTGDetectorConstructionWithCuts()

ExTGDetectorConstructionWithCuts::ExTGDetectorConstructionWithCuts ( )

◆ ~ExTGDetectorConstructionWithCuts()

ExTGDetectorConstructionWithCuts::~ExTGDetectorConstructionWithCuts ( )

Definition at line 42 of file ExTGDetectorConstructionWithCuts.cc.

43{
44 delete fMessenger;
45}

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * ExTGDetectorConstructionWithCuts::Construct ( )

Definition at line 48 of file ExTGDetectorConstructionWithCuts.cc.

49{
50 //------------------------------------------------
51 // Define one or several text files containing the geometry description
52 //------------------------------------------------
53 G4String filename = "g4geom_cutsPerRegion.txt";
54 G4tgbVolumeMgr* volmgr = G4tgbVolumeMgr::GetInstance();
55 volmgr->AddTextFile(filename);
56
57 //------------------------------------------------
58 // Use your own detector builder, that will invoke your own line processor
59 //------------------------------------------------
61 volmgr->SetDetectorBuilder( gtb );
62
63 const G4tgrVolume* tgrVoltop = gtb->ReadDetector();
64 G4VPhysicalVolume* physiWorld = gtb->ConstructDetector(tgrVoltop);
65
66 // G4VPhysicalVolume* physiWorld = volmgr->ReadAndConstructDetector();
67
68 return physiWorld;
69}
Detector builder class implementing cuts per region.
virtual G4VPhysicalVolume * ConstructDetector(const G4tgrVolume *tgrVoltop)
const G4tgrVolume * ReadDetector()

Member Data Documentation

◆ fMessenger

G4tgrMessenger* ExTGDetectorConstructionWithCuts::fMessenger
private

Definition at line 51 of file ExTGDetectorConstructionWithCuts.hh.


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

Applications | User Support | Publications | Collaboration