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

#include <G3toG4DetectorConstruction.hh>

Inheritance diagram for G3toG4DetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 G3toG4DetectorConstruction (G4String inFile="svt.dat")
 
virtual ~G3toG4DetectorConstruction ()
 
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 class.

Most the work is done in G4BuildGeom(), which returns a pointer to the top-level logical volume in the detector defined by the call list file inFile.

Definition at line 47 of file G3toG4DetectorConstruction.hh.

Constructor & Destructor Documentation

G3toG4DetectorConstruction::G3toG4DetectorConstruction ( G4String  inFile = "svt.dat")

Definition at line 50 of file G3toG4DetectorConstruction.cc.

References G4cout, and G4endl.

52  fInFile(inFile)
53 {
54  G4cout << "Instantiated G3toG4DetectorConstruction using call list file \""
55  << fInFile << "\"" << G4endl;
56 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G3toG4DetectorConstruction::~G3toG4DetectorConstruction ( )
virtual

Definition at line 60 of file G3toG4DetectorConstruction.cc.

61 {
62  // G4cout << "Deleted G3toG4DetectorConstruction..." << G4endl;
63 }

Member Function Documentation

G4VPhysicalVolume * G3toG4DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 67 of file G3toG4DetectorConstruction.cc.

References G4BuildGeom(), G4cerr, G4cout, G4endl, and G4LogicalVolume::GetName().

68 {
69  G4LogicalVolume* lv = G4BuildGeom(fInFile);
70  //G4LogicalVolume* lv = SimpleConstruct();
71  if ( lv ) {
73  = new G4PVPlacement(0, G4ThreeVector(), lv, lv->GetName(), 0, false, 0);
74  G4cout << "Top-level G3toG4 logical volume " << lv->GetName() << " "
75  << *(lv -> GetVisAttributes()) << G4endl;
76  return pv;
77  }
78 
79  G4cerr << "creation of logical mother failed !!!" << G4endl;
80  return 0;
81 }
G4String GetName() const
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
G4LogicalVolume * G4BuildGeom(G4String &inFile)
Definition: G4BuildGeom.cc:55
#define G4endl
Definition: G4ios.hh:61
G4GLOB_DLL std::ostream G4cerr

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