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

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

#include <ExP02DetConstrReader.hh>

Inheritance diagram for ExP02DetConstrReader:
G4VUserDetectorConstruction

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 47 of file ExP02DetConstrReader.cc.

49 {
50  // initialize ROOT
51  TSystem ts;
52  gSystem->Load("libExP02ClassesDict");
53 
54  // ROOT::Cintex::Cintex::SetDebug(2);
55  ROOT::Cintex::Cintex::Enable();
56  // gDebug = 1;
57 
58 }
ExP02DetConstrReader::~ExP02DetConstrReader ( )

Definition at line 62 of file ExP02DetConstrReader.cc.

63 {}

Member Function Documentation

G4VPhysicalVolume * ExP02DetConstrReader::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 67 of file ExP02DetConstrReader.cc.

References ExP02GeoTree::TopVol().

68 {
69  ExP02GeoTree* geotree;
70 
71  TFile fo("geo.root");
72  fo.GetObject("my_geo", geotree);
73 
74  return geotree->TopVol();
75 }
G4VPhysicalVolume * TopVol()
Definition: ExP02GeoTree.cc:65

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