Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ExTGDetectorConstructionWithCuts Class Reference

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

#include <ExTGDetectorConstructionWithCuts.hh>

Inheritance diagram for ExTGDetectorConstructionWithCuts:
G4VUserDetectorConstruction

Public Member Functions

 ExTGDetectorConstructionWithCuts ()
 
 ~ExTGDetectorConstructionWithCuts ()
 
G4VPhysicalVolumeConstruct ()
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

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

Definition at line 41 of file ExTGDetectorConstructionWithCuts.hh.

Constructor & Destructor Documentation

ExTGDetectorConstructionWithCuts::ExTGDetectorConstructionWithCuts ( )

Definition at line 37 of file ExTGDetectorConstructionWithCuts.cc.

38 {
39  fMessenger = new G4tgrMessenger;
40 }
ExTGDetectorConstructionWithCuts::~ExTGDetectorConstructionWithCuts ( )

Definition at line 43 of file ExTGDetectorConstructionWithCuts.cc.

44 {
45  delete fMessenger;
46 }

Member Function Documentation

G4VPhysicalVolume * ExTGDetectorConstructionWithCuts::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 49 of file ExTGDetectorConstructionWithCuts.cc.

References G4tgbVolumeMgr::AddTextFile(), ExTGRCDetectorBuilder::ConstructDetector(), G4tgbVolumeMgr::GetInstance(), ExTGRCDetectorBuilder::ReadDetector(), and G4tgbVolumeMgr::SetDetectorBuilder().

50 {
51  //------------------------------------------------
52  // Define one or several text files containing the geometry description
53  //------------------------------------------------
54  G4String filename = "g4geom_cutsPerRegion.txt";
56  volmgr->AddTextFile(filename);
57 
58  //------------------------------------------------
59  // Use your own detector builder, that will invoke your own line processor
60  //------------------------------------------------
62  volmgr->SetDetectorBuilder( gtb );
63 
64  const G4tgrVolume* tgrVoltop = gtb->ReadDetector();
65  G4VPhysicalVolume* physiWorld = gtb->ConstructDetector(tgrVoltop);
66 
67  // G4VPhysicalVolume* physiWorld = volmgr->ReadAndConstructDetector();
68 
69  return physiWorld;
70 }
void SetDetectorBuilder(G4tgbDetectorBuilder *db)
virtual G4VPhysicalVolume * ConstructDetector(const G4tgrVolume *tgrVoltop)
void AddTextFile(const G4String &fname)
const G4tgrVolume * ReadDetector()
static G4tgbVolumeMgr * GetInstance()

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