Import Geant4 11.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2024-06-28 13:08:51 +02:00
parent f7b23877ed
commit e58e650b32
5232 changed files with 239416 additions and 244360 deletions
@@ -31,10 +31,11 @@
#ifndef ExErrorDetectorConstruction_hh
#define ExErrorDetectorConstruction_hh 1
#include "globals.hh"
#include "G4VUserDetectorConstruction.hh"
#include "ExErrorMagneticField.hh"
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class G4Box;
class G4LogicalVolume;
class G4VPhysicalVolume;
@@ -44,7 +45,7 @@ class G4UserLimits;
/// Detector construction class
///
/// Creates a simplified typical HEP detector:
/// Creates a simplified typical HEP detector:
/// An air beamline ( BEAM )
/// An air central detector ( CDET )
/// A copper calorimeter, divided in four ( ECAL )
@@ -53,38 +54,36 @@ class G4UserLimits;
///
/// History:
/// Created: May 2007
/// \author P. Arce
/// \author P. Arce
//------------------------------------------------------------------------
class ExErrorDetectorConstruction : public G4VUserDetectorConstruction
{
public:
ExErrorDetectorConstruction();
~ExErrorDetectorConstruction();
virtual G4VPhysicalVolume* Construct();
void SetMagField(G4double);
public:
ExErrorDetectorConstruction();
~ExErrorDetectorConstruction();
private:
G4double fXBEAM;
G4double fXCDET;
G4double fXECAL;
G4double fXSOLN;
G4double fXHCAL;
G4double fXMUON;
G4double fNdivECAL;
G4double fNdivHCAL;
G4double fYZLength;
G4double fXHalfWorldLength;
virtual G4VPhysicalVolume* Construct();
void SetMagField(G4double);
G4UserLimits* fUserLimits;
ExErrorMagneticField* fMagField; // pointer to the magnetic field
ExErrorDetectorMessenger* fDetectorMessenger; // pointer to the Messenger
private:
G4double fXBEAM;
G4double fXCDET;
G4double fXECAL;
G4double fXSOLN;
G4double fXHCAL;
G4double fXMUON;
G4double fNdivECAL;
G4double fNdivHCAL;
G4double fYZLength;
G4double fXHalfWorldLength;
G4UserLimits* fUserLimits;
ExErrorMagneticField* fMagField; // pointer to the magnetic field
ExErrorDetectorMessenger* fDetectorMessenger; // pointer to the Messenger
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -31,8 +31,8 @@
#ifndef ExErrorDetectorMessenger_hh
#define ExErrorDetectorMessenger_hh 1
#include "globals.hh"
#include "G4UImessenger.hh"
#include "globals.hh"
class ExErrorDetectorConstruction;
class G4UIdirectory;
@@ -45,23 +45,22 @@ class G4UIcmdWithADoubleAndUnit;
///
/// History:
/// Created: May 2007
/// \author P. Arce
/// \author P. Arce
//------------------------------------------------------------------------
class ExErrorDetectorMessenger: public G4UImessenger
class ExErrorDetectorMessenger : public G4UImessenger
{
public:
ExErrorDetectorMessenger(ExErrorDetectorConstruction*);
~ExErrorDetectorMessenger();
virtual void SetNewValue(G4UIcommand*, G4String);
private:
ExErrorDetectorConstruction* fMyDetector;
G4UIdirectory* fMydetDir;
G4UIcmdWithADoubleAndUnit* fFieldCmd;
public:
ExErrorDetectorMessenger(ExErrorDetectorConstruction*);
~ExErrorDetectorMessenger();
virtual void SetNewValue(G4UIcommand*, G4String);
private:
ExErrorDetectorConstruction* fMyDetector;
G4UIdirectory* fMydetDir;
G4UIcmdWithADoubleAndUnit* fFieldCmd;
};
#endif
@@ -41,24 +41,22 @@ class G4FieldManager;
///
/// History:
/// Created: May 2007
/// \author P. Arce
/// \author P. Arce
//------------------------------------------------------------------------
class ExErrorMagneticField: public G4UniformMagField
class ExErrorMagneticField : public G4UniformMagField
{
public:
ExErrorMagneticField(G4ThreeVector); // The value of the field
ExErrorMagneticField(); // A zero field
//Set the field (0,0,fieldValue)
void SetFieldValue(G4double fieldValue);
void SetFieldValue(G4ThreeVector fieldVector);
ExErrorMagneticField(G4ThreeVector); // The value of the field
ExErrorMagneticField(); // A zero field
protected:
// Set the field (0,0,fieldValue)
void SetFieldValue(G4double fieldValue);
void SetFieldValue(G4ThreeVector fieldVector);
// Find the global Field Manager
G4FieldManager* GetGlobalFieldManager(); // static
protected:
// Find the global Field Manager
G4FieldManager* GetGlobalFieldManager(); // static
};
#endif