Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExP02DetConstrReader Class Reference

Detector construction reader using ROOT I/O. More...

#include <ExP02DetConstrReader.hh>

Inheritance diagram for ExP02DetConstrReader:
Collaboration diagram for ExP02DetConstrReader:

Public Member Functions

 ExP02DetConstrReader ()
 
 ~ExP02DetConstrReader ()
 
virtual 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 reader using ROOT I/O.

Definition at line 44 of file ExP02DetConstrReader.hh.

Constructor & Destructor Documentation

ExP02DetConstrReader::ExP02DetConstrReader ( )

Definition at line 46 of file ExP02DetConstrReader.cc.

48 {
49  // initialize ROOT
50  TSystem ts;
51  gSystem->Load("libExP02ClassesDict");
52 }
ExP02DetConstrReader::~ExP02DetConstrReader ( )

Definition at line 56 of file ExP02DetConstrReader.cc.

57 {}

Member Function Documentation

G4VPhysicalVolume * ExP02DetConstrReader::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 61 of file ExP02DetConstrReader.cc.

62 {
63  ExP02GeoTree* geotree;
64 
65  TFile fo("geo.root");
66  fo.GetObject("my_geo", geotree);
67 
68  return geotree->TopVol();
69 }
G4VPhysicalVolume * TopVol()
Definition: ExP02GeoTree.cc:65

Here is the call graph for this function:


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