Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -34,54 +34,53 @@ class G4LogicalVolume;
class G4VUserParallelWorld;
class G4VSensitiveDetector;
#include <vector>
#include "globals.hh"
#include <vector>
// class description:
//
// This is the abstract base class of the user's mandatory initialization class
// for detector setup. It has only one pure virtual method Construct() which is
// invoked by G4RunManager when it's Initialize() method is invoked.
// The Construct() method must return the G4VPhysicalVolume pointer which represents
// The Construct() method must return the G4VPhysicalVolume pointer which
// represents
// the world volume.
//
class G4VUserDetectorConstruction
{
public:
G4VUserDetectorConstruction();
virtual ~G4VUserDetectorConstruction();
public:
G4VUserDetectorConstruction();
virtual ~G4VUserDetectorConstruction();
public:
virtual G4VPhysicalVolume* Construct() = 0;
public:
virtual G4VPhysicalVolume* Construct() = 0;
virtual void ConstructSDandField();
//This method is used in multi-threaded applications to build
//per-worker non-shared objects: SensitiveDetectors and Field managers
virtual void ConstructSDandField();
// This method is used in multi-threaded applications to build
// per-worker non-shared objects: SensitiveDetectors and Field managers
virtual void CloneSD();
virtual void CloneF();
virtual void CloneSD();
virtual void CloneF();
public:
void RegisterParallelWorld(G4VUserParallelWorld*);
public:
void RegisterParallelWorld(G4VUserParallelWorld*);
public:
G4int ConstructParallelGeometries();
void ConstructParallelSD();
public:
G4int ConstructParallelGeometries();
void ConstructParallelSD();
private:
std::vector<G4VUserParallelWorld*> parallelWorld;
private:
std::vector<G4VUserParallelWorld*> parallelWorld;
public:
G4int GetNumberOfParallelWorld() const;
G4VUserParallelWorld* GetParallelWorld(G4int i) const;
public:
G4int GetNumberOfParallelWorld() const;
G4VUserParallelWorld* GetParallelWorld(G4int i) const;
protected:
void SetSensitiveDetector(const G4String& logVolName,
G4VSensitiveDetector* aSD,G4bool multi=false);
void SetSensitiveDetector(G4LogicalVolume* logVol,
G4VSensitiveDetector* aSD);
protected:
void SetSensitiveDetector(const G4String& logVolName,
G4VSensitiveDetector* aSD, G4bool multi = false);
void SetSensitiveDetector(G4LogicalVolume* logVol, G4VSensitiveDetector* aSD);
};
#endif