Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -42,19 +42,16 @@ class DetectorConstruction;
|
||||
|
||||
class ActionInitialization : public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
|
||||
ActionInitialization(DetectorConstruction*);
|
||||
virtual ~ActionInitialization();
|
||||
public:
|
||||
ActionInitialization(DetectorConstruction*);
|
||||
virtual ~ActionInitialization();
|
||||
|
||||
virtual void Build() const;
|
||||
virtual void Build() const;
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
|
||||
private:
|
||||
|
||||
DetectorConstruction* fDetector;
|
||||
virtual void BuildForMaster() const;
|
||||
|
||||
private:
|
||||
DetectorConstruction* fDetector;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -45,43 +45,39 @@ class DetectorMessenger;
|
||||
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
DetectorConstruction();
|
||||
virtual ~DetectorConstruction();
|
||||
public:
|
||||
DetectorConstruction();
|
||||
virtual ~DetectorConstruction();
|
||||
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual void ConstructSDandField();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual void ConstructSDandField();
|
||||
|
||||
// set geometry parameters
|
||||
void SetSizeZ(G4double);
|
||||
void SetSizeXY(G4double);
|
||||
void SetMaterial(const G4String&);
|
||||
|
||||
// access to geometry
|
||||
inline G4double GetWorldSizeZ() {return fWorldSizeZ;};
|
||||
inline G4double GetAbsorSizeZ() {return fAbsorSizeZ;};
|
||||
inline const G4Material* GetAbsorMaterial() {return fAbsorMaterial;};
|
||||
|
||||
private:
|
||||
// set geometry parameters
|
||||
void SetSizeZ(G4double);
|
||||
void SetSizeXY(G4double);
|
||||
void SetMaterial(const G4String&);
|
||||
|
||||
void PrintParameters();
|
||||
|
||||
G4double fWorldSizeZ;
|
||||
G4double fWorldSizeXY;
|
||||
G4Material* fWorldMaterial;
|
||||
G4double fAbsorSizeZ;
|
||||
G4double fAbsorSizeXY;
|
||||
G4Material* fAbsorMaterial;
|
||||
// access to geometry
|
||||
inline G4double GetWorldSizeZ() { return fWorldSizeZ; };
|
||||
inline G4double GetAbsorSizeZ() { return fAbsorSizeZ; };
|
||||
inline const G4Material* GetAbsorMaterial() { return fAbsorMaterial; };
|
||||
|
||||
G4LogicalVolume* fLogAbsor;
|
||||
G4VPhysicalVolume* fWorld;
|
||||
|
||||
DetectorMessenger* fDetectorMessenger;
|
||||
private:
|
||||
void PrintParameters();
|
||||
|
||||
G4double fWorldSizeZ;
|
||||
G4double fWorldSizeXY;
|
||||
G4Material* fWorldMaterial;
|
||||
G4double fAbsorSizeZ;
|
||||
G4double fAbsorSizeXY;
|
||||
G4Material* fAbsorMaterial;
|
||||
|
||||
G4LogicalVolume* fLogAbsor;
|
||||
G4VPhysicalVolume* fWorld;
|
||||
|
||||
DetectorMessenger* fDetectorMessenger;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#ifndef DetectorMessenger_h
|
||||
#define DetectorMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class DetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
@@ -45,27 +45,24 @@ class G4UIcmdWithoutParameter;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class DetectorMessenger: public G4UImessenger
|
||||
class DetectorMessenger : public G4UImessenger
|
||||
{
|
||||
public:
|
||||
|
||||
DetectorMessenger( DetectorConstruction* );
|
||||
virtual ~DetectorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
|
||||
DetectorConstruction* fDetector;
|
||||
|
||||
G4UIdirectory* fDetD;
|
||||
G4UIdirectory* fDetDir;
|
||||
G4UIcmdWithAString* fMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSizeZCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSizeXYCmd;
|
||||
public:
|
||||
DetectorMessenger(DetectorConstruction*);
|
||||
virtual ~DetectorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
DetectorConstruction* fDetector;
|
||||
|
||||
G4UIdirectory* fDetD;
|
||||
G4UIdirectory* fDetDir;
|
||||
G4UIcmdWithAString* fMaterCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSizeZCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fSizeXYCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -52,13 +52,12 @@ class EventActionMessenger;
|
||||
|
||||
class EventAction : public G4UserEventAction
|
||||
{
|
||||
public: // Without description
|
||||
public: // Without description
|
||||
EventAction();
|
||||
virtual ~EventAction();
|
||||
|
||||
EventAction();
|
||||
virtual ~EventAction();
|
||||
|
||||
virtual void BeginOfEventAction(const G4Event*);
|
||||
virtual void EndOfEventAction(const G4Event*);
|
||||
virtual void BeginOfEventAction(const G4Event*);
|
||||
virtual void EndOfEventAction(const G4Event*);
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -46,55 +46,39 @@ class G4ParticleDefinition;
|
||||
|
||||
class G4LDMBremModel : public G4MuBremsstrahlungModel
|
||||
{
|
||||
public:
|
||||
explicit G4LDMBremModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "ldmBrem");
|
||||
|
||||
public:
|
||||
virtual ~G4LDMBremModel();
|
||||
|
||||
explicit G4LDMBremModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "ldmBrem");
|
||||
inline void SetEpsilon(G4double e) { fEpsilon = e; };
|
||||
inline G4double GetEpsilon() { return fEpsilon; };
|
||||
|
||||
virtual ~G4LDMBremModel();
|
||||
protected:
|
||||
virtual G4double ComputeDEDXPerVolume(const G4Material*, const G4ParticleDefinition*,
|
||||
G4double kineticEnergy, G4double cutEnergy) override;
|
||||
|
||||
inline void SetEpsilon(G4double e){fEpsilon=e;};
|
||||
inline G4double GetEpsilon(){return fEpsilon;};
|
||||
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin, G4double Z,
|
||||
G4double gammaEnergy) override;
|
||||
|
||||
protected:
|
||||
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*, G4double kineticEnergy,
|
||||
G4double Z, G4double A, G4double cutEnergy,
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double ComputeDEDXPerVolume(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy) override;
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*, G4double tmin,
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double ComputeDMicroscopicCrossSection(
|
||||
G4double tkin,
|
||||
G4double Z,
|
||||
G4double gammaEnergy ) override;
|
||||
private:
|
||||
// hide assignment operator
|
||||
G4LDMBremModel& operator=(const G4LDMBremModel& right) = delete;
|
||||
G4LDMBremModel(const G4LDMBremModel&) = delete;
|
||||
|
||||
const G4ParticleDefinition* theLDMPhoton;
|
||||
|
||||
virtual G4double ComputeCrossSectionPerAtom(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double Z, G4double A,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy) override;
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4LDMBremModel &
|
||||
operator=(const G4LDMBremModel &right) = delete;
|
||||
G4LDMBremModel(const G4LDMBremModel&) = delete;
|
||||
|
||||
const G4ParticleDefinition* theLDMPhoton;
|
||||
|
||||
G4double fEpsilon; // correction for fine_structure_const
|
||||
G4double fLDMPhotonMass;
|
||||
|
||||
G4double fEpsilon; // correction for fine_structure_const
|
||||
G4double fLDMPhotonMass;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -39,36 +39,31 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4MuBremsstrahlung.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4LDMBremsstrahlung : public G4MuBremsstrahlung
|
||||
|
||||
{
|
||||
public:
|
||||
public:
|
||||
explicit G4LDMBremsstrahlung(const G4String& processName = "ldmBrems");
|
||||
|
||||
explicit G4LDMBremsstrahlung(const G4String& processName = "ldmBrems");
|
||||
virtual ~G4LDMBremsstrahlung();
|
||||
|
||||
virtual ~G4LDMBremsstrahlung();
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*, const G4Material*,
|
||||
G4double) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
|
||||
const G4Material*, G4double) override;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(
|
||||
const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
G4LDMBremsstrahlung & operator=(const G4LDMBremsstrahlung &right) = delete;
|
||||
G4LDMBremsstrahlung(const G4LDMBremsstrahlung&) = delete;
|
||||
protected:
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
G4LDMBremsstrahlung& operator=(const G4LDMBremsstrahlung& right) = delete;
|
||||
G4LDMBremsstrahlung(const G4LDMBremsstrahlung&) = delete;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -35,48 +35,39 @@
|
||||
//
|
||||
// ClassName: G4LDMHi
|
||||
//
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4LDMHi : public G4ParticleDefinition
|
||||
{
|
||||
private:
|
||||
private:
|
||||
static G4LDMHi* theLDMHi;
|
||||
|
||||
static G4LDMHi* theLDMHi;
|
||||
G4LDMHi(const G4String& aName, G4double mass, G4double width, G4double charge, G4int iSpin,
|
||||
G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable,
|
||||
G4double lifetime, G4DecayTable* decaytable);
|
||||
|
||||
G4LDMHi(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable );
|
||||
virtual ~G4LDMHi();
|
||||
|
||||
virtual ~G4LDMHi();
|
||||
|
||||
public:
|
||||
|
||||
static G4LDMHi* LDMHiDefinition( G4double mass);
|
||||
|
||||
static G4LDMHi* LDMHi();
|
||||
public:
|
||||
static G4LDMHi* LDMHiDefinition(G4double mass);
|
||||
|
||||
static G4LDMHi* LDMHi();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -35,45 +35,36 @@
|
||||
//
|
||||
// ClassName: G4LDMHiBar
|
||||
//
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4LDMHiBar : public G4ParticleDefinition
|
||||
{
|
||||
private:
|
||||
private:
|
||||
static G4LDMHiBar* theLDMHiBar;
|
||||
|
||||
static G4LDMHiBar* theLDMHiBar;
|
||||
G4LDMHiBar(const G4String& aName, G4double mass, G4double width, G4double charge, G4int iSpin,
|
||||
G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable,
|
||||
G4double lifetime, G4DecayTable* decaytable);
|
||||
|
||||
G4LDMHiBar(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable );
|
||||
virtual ~G4LDMHiBar();
|
||||
|
||||
virtual ~G4LDMHiBar();
|
||||
|
||||
public:
|
||||
|
||||
static G4LDMHiBar* LDMHiBarDefinition( G4double mass);
|
||||
|
||||
static G4LDMHiBar* LDMHiBar();
|
||||
public:
|
||||
static G4LDMHiBar* LDMHiBarDefinition(G4double mass);
|
||||
|
||||
static G4LDMHiBar* LDMHiBar();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
// ClassName: G4LDMPhoton
|
||||
//
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
// Authors: 15.03.17 V. Grichine based on G4Monopole
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////
|
||||
@@ -38,37 +38,29 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
#include "CLHEP/Units/SystemOfUnits.h"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4LDMPhoton : public G4ParticleDefinition
|
||||
{
|
||||
private:
|
||||
private:
|
||||
static G4LDMPhoton* theLDMPhoton;
|
||||
|
||||
static G4LDMPhoton* theLDMPhoton;
|
||||
G4LDMPhoton(const G4String& aName, G4double mass, G4double width, G4double charge, G4int iSpin,
|
||||
G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable,
|
||||
G4double lifetime, G4DecayTable* decaytable);
|
||||
|
||||
G4LDMPhoton(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable );
|
||||
virtual ~G4LDMPhoton();
|
||||
|
||||
virtual ~G4LDMPhoton();
|
||||
|
||||
public:
|
||||
|
||||
static G4LDMPhoton* LDMPhotonDefinition( G4double mass);
|
||||
|
||||
static G4LDMPhoton* LDMPhoton();
|
||||
public:
|
||||
static G4LDMPhoton* LDMPhotonDefinition(G4double mass);
|
||||
|
||||
static G4LDMPhoton* LDMPhoton();
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//
|
||||
// ClassName: PhysicsList
|
||||
//
|
||||
// Authors: 01.06.17 V.Ivanchenko
|
||||
// Authors: 01.06.17 V.Ivanchenko
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////
|
||||
@@ -50,43 +50,40 @@ class G4VPhysicsConstructor;
|
||||
class PhysicsListMessenger;
|
||||
class StepMax;
|
||||
|
||||
class PhysicsList: public G4VModularPhysicsList
|
||||
class PhysicsList : public G4VModularPhysicsList
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PhysicsList();
|
||||
virtual ~PhysicsList();
|
||||
|
||||
PhysicsList();
|
||||
virtual ~PhysicsList();
|
||||
virtual void ConstructParticle();
|
||||
|
||||
virtual void ConstructParticle();
|
||||
|
||||
virtual void SetCuts();
|
||||
|
||||
virtual void ConstructProcess();
|
||||
virtual void SetCuts();
|
||||
|
||||
void AddPhysicsList(const G4String& name);
|
||||
virtual void ConstructProcess();
|
||||
|
||||
void SetLDMPhotonMass(G4double val);
|
||||
void AddPhysicsList(const G4String& name);
|
||||
|
||||
void SetLDMHiMass(G4double val);
|
||||
void SetLDMPhotonMass(G4double val);
|
||||
|
||||
private:
|
||||
void SetLDMHiMass(G4double val);
|
||||
|
||||
void AddDarkMatter();
|
||||
private:
|
||||
void AddDarkMatter();
|
||||
|
||||
G4VPhysicsConstructor* fEmPhysicsList;
|
||||
G4VPhysicsConstructor* fDecayPhysicsList;
|
||||
G4String fEmName;
|
||||
|
||||
PhysicsListMessenger* fMessenger;
|
||||
G4VPhysicsConstructor* fEmPhysicsList;
|
||||
G4VPhysicsConstructor* fDecayPhysicsList;
|
||||
G4String fEmName;
|
||||
|
||||
G4double fLDMPhotonMass;
|
||||
G4double fLDMHiMass;
|
||||
PhysicsListMessenger* fMessenger;
|
||||
|
||||
G4bool fLDMPhoton;
|
||||
G4bool fLDMHi;
|
||||
G4double fLDMPhotonMass;
|
||||
G4double fLDMHiMass;
|
||||
|
||||
G4bool fLDMPhoton;
|
||||
G4bool fLDMHi;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
// Author: V.Ivanchenko 01.09.2010
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -45,8 +45,8 @@
|
||||
#ifndef PhysicsListMessenger_h
|
||||
#define PhysicsListMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class PhysicsList;
|
||||
class G4UIdirectory;
|
||||
@@ -57,28 +57,25 @@ class G4UIcmdWithAnInteger;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class PhysicsListMessenger: public G4UImessenger
|
||||
class PhysicsListMessenger : public G4UImessenger
|
||||
{
|
||||
public:
|
||||
|
||||
PhysicsListMessenger(PhysicsList* );
|
||||
virtual ~PhysicsListMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
|
||||
PhysicsList* fPhysicsList;
|
||||
public:
|
||||
PhysicsListMessenger(PhysicsList*);
|
||||
virtual ~PhysicsListMessenger();
|
||||
|
||||
G4UIdirectory* fPhysDir;
|
||||
G4UIcmdWithADoubleAndUnit* fECmd;
|
||||
G4UIcmdWithAnInteger* fEBCmd;
|
||||
G4UIcmdWithAString* fListCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fPHCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fHCmd;
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
PhysicsList* fPhysicsList;
|
||||
|
||||
G4UIdirectory* fPhysDir;
|
||||
G4UIcmdWithADoubleAndUnit* fECmd;
|
||||
G4UIcmdWithAnInteger* fEBCmd;
|
||||
G4UIcmdWithAString* fListCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fPHCmd;
|
||||
G4UIcmdWithADoubleAndUnit* fHCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#ifndef PrimaryGeneratorAction_h
|
||||
#define PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class DetectorConstruction;
|
||||
@@ -43,24 +43,19 @@ class DetectorConstruction;
|
||||
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PrimaryGeneratorAction(DetectorConstruction*);
|
||||
virtual ~PrimaryGeneratorAction();
|
||||
|
||||
PrimaryGeneratorAction(DetectorConstruction*);
|
||||
virtual ~PrimaryGeneratorAction();
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
|
||||
inline G4ParticleGun* GetParticleGun() {return fParticleGun;}
|
||||
|
||||
private:
|
||||
|
||||
G4ParticleGun* fParticleGun;
|
||||
DetectorConstruction* fDetector;
|
||||
inline G4ParticleGun* GetParticleGun() { return fParticleGun; }
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
DetectorConstruction* fDetector;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4DataVector.hh"
|
||||
#include "G4StatDouble.hh"
|
||||
#include "G4AnalysisManager.hh"
|
||||
#include "G4DataVector.hh"
|
||||
#include "G4Run.hh"
|
||||
#include "G4StatDouble.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -49,44 +49,42 @@ class TestParameters;
|
||||
|
||||
class Run : public G4Run
|
||||
{
|
||||
public:
|
||||
public:
|
||||
Run();
|
||||
virtual ~Run();
|
||||
|
||||
Run();
|
||||
virtual ~Run();
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
virtual void Merge(const G4Run*);
|
||||
void BeginOfRun();
|
||||
void EndOfRun();
|
||||
|
||||
void BeginOfRun();
|
||||
void EndOfRun();
|
||||
void BeginOfEvent();
|
||||
void EndOfEvent();
|
||||
|
||||
void BeginOfEvent();
|
||||
void EndOfEvent();
|
||||
void AddEnergy(G4double edep, const G4Step*);
|
||||
|
||||
void AddEnergy(G4double edep, const G4Step*);
|
||||
inline void SetVerbose(G4int value);
|
||||
|
||||
inline void SetVerbose(G4int value);
|
||||
inline G4int GetVerbose() const;
|
||||
|
||||
inline G4int GetVerbose() const;
|
||||
inline G4double GetTotStepGas() const;
|
||||
|
||||
inline G4double GetTotStepGas() const;
|
||||
inline const G4StatDouble* GetStat() const;
|
||||
|
||||
inline const G4StatDouble* GetStat() const;
|
||||
private:
|
||||
G4int fVerbose;
|
||||
G4int fNbins;
|
||||
G4double fStepGas;
|
||||
G4double fMaxEnergy;
|
||||
G4double fTotStepGas;
|
||||
G4double fEvt;
|
||||
|
||||
private:
|
||||
G4double fTotEdep;
|
||||
G4StatDouble fEdep;
|
||||
G4double fOverflow;
|
||||
G4DataVector fEgas;
|
||||
|
||||
G4int fVerbose;
|
||||
G4int fNbins;
|
||||
G4double fStepGas;
|
||||
G4double fMaxEnergy;
|
||||
G4double fTotStepGas;
|
||||
G4double fEvt;
|
||||
|
||||
G4double fTotEdep;
|
||||
G4StatDouble fEdep;
|
||||
G4double fOverflow;
|
||||
G4DataVector fEgas;
|
||||
|
||||
TestParameters* fParam;
|
||||
TestParameters* fParam;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -120,5 +118,3 @@ inline const G4StatDouble* Run::GetStat() const
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "G4AnalysisManager.hh"
|
||||
#include "G4UserRunAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -53,29 +53,25 @@ class Run;
|
||||
|
||||
class RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
public:
|
||||
RunAction();
|
||||
virtual ~RunAction();
|
||||
|
||||
RunAction();
|
||||
virtual ~RunAction();
|
||||
virtual G4Run* GenerateRun();
|
||||
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
// In this method histogramms are booked
|
||||
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
// In this method histogramms are booked
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
// In this method bookHisto method is called in which histogramms are filled
|
||||
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
// In this method bookHisto method is called in which histogramms are filled
|
||||
private:
|
||||
// Book predefined histogramms
|
||||
void Book();
|
||||
|
||||
private:
|
||||
|
||||
// Book predefined histogramms
|
||||
void Book();
|
||||
|
||||
private:
|
||||
|
||||
G4AnalysisManager* fAnalysisManager;
|
||||
Run* fRun;
|
||||
private:
|
||||
G4AnalysisManager* fAnalysisManager;
|
||||
Run* fRun;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -42,22 +42,19 @@ class StackingMessenger;
|
||||
|
||||
class StackingAction : public G4UserStackingAction
|
||||
{
|
||||
public:
|
||||
StackingAction();
|
||||
virtual ~StackingAction();
|
||||
|
||||
inline void SetKillStatus(G4bool value) { fKillSecondary = value; };
|
||||
|
||||
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
|
||||
|
||||
private:
|
||||
|
||||
G4bool fKillSecondary;
|
||||
StackingMessenger* fStackMessenger;
|
||||
public:
|
||||
StackingAction();
|
||||
virtual ~StackingAction();
|
||||
|
||||
inline void SetKillStatus(G4bool value) { fKillSecondary = value; };
|
||||
|
||||
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
|
||||
|
||||
private:
|
||||
G4bool fKillSecondary;
|
||||
StackingMessenger* fStackMessenger;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -41,18 +41,17 @@ class G4UIcmdWithABool;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class StackingMessenger: public G4UImessenger
|
||||
class StackingMessenger : public G4UImessenger
|
||||
{
|
||||
public:
|
||||
StackingMessenger(StackingAction*);
|
||||
virtual ~StackingMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
public:
|
||||
StackingMessenger(StackingAction*);
|
||||
virtual ~StackingMessenger();
|
||||
|
||||
StackingAction* fStackAction;
|
||||
G4UIcmdWithABool* fKillCmd;
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
StackingAction* fStackAction;
|
||||
G4UIcmdWithABool* fKillCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//
|
||||
// ClassName: TargetSD
|
||||
//
|
||||
// Authors: 01.06.17 V.Ivanchenko
|
||||
// Authors: 01.06.17 V.Ivanchenko
|
||||
//
|
||||
//
|
||||
///////////////////////////////////////////
|
||||
@@ -53,24 +53,20 @@ class Run;
|
||||
|
||||
class TargetSD : public G4VSensitiveDetector
|
||||
{
|
||||
public: // Without description
|
||||
public: // Without description
|
||||
TargetSD(const G4String&);
|
||||
virtual ~TargetSD();
|
||||
|
||||
TargetSD(const G4String&);
|
||||
virtual ~TargetSD();
|
||||
|
||||
virtual void Initialize(G4HCofThisEvent*);
|
||||
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
|
||||
virtual void EndOfEvent(G4HCofThisEvent*);
|
||||
virtual void clear();
|
||||
virtual void PrintAll();
|
||||
|
||||
private:
|
||||
|
||||
Run* fRun;
|
||||
virtual void Initialize(G4HCofThisEvent*);
|
||||
virtual G4bool ProcessHits(G4Step*, G4TouchableHistory*);
|
||||
virtual void EndOfEvent(G4HCofThisEvent*);
|
||||
virtual void clear();
|
||||
virtual void PrintAll();
|
||||
|
||||
private:
|
||||
Run* fRun;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -48,66 +48,61 @@
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class TestParameters
|
||||
{
|
||||
public:
|
||||
// With description
|
||||
|
||||
public:
|
||||
// With description
|
||||
static TestParameters* GetPointer();
|
||||
|
||||
static TestParameters* GetPointer();
|
||||
private:
|
||||
TestParameters();
|
||||
|
||||
private:
|
||||
public: // Without description
|
||||
~TestParameters();
|
||||
|
||||
TestParameters();
|
||||
void SetMaxEnergy(G4double value);
|
||||
|
||||
public: // Without description
|
||||
G4double GetMaxEnergy() const;
|
||||
|
||||
~TestParameters();
|
||||
void SetNumberBins(G4int value);
|
||||
|
||||
void SetMaxEnergy(G4double value);
|
||||
G4int GetNumberBins() const;
|
||||
|
||||
G4double GetMaxEnergy() const;
|
||||
void SetPositionZ(G4double val);
|
||||
|
||||
void SetNumberBins(G4int value);
|
||||
G4double GetPositionZ() const;
|
||||
|
||||
G4int GetNumberBins() const;
|
||||
void SetBeamEnergy(G4double val);
|
||||
|
||||
void SetPositionZ(G4double val);
|
||||
G4double GetBeamEnergy() const;
|
||||
|
||||
G4double GetPositionZ() const;
|
||||
void SetAlphaFactor(G4double val);
|
||||
|
||||
void SetBeamEnergy(G4double val);
|
||||
G4double GetAlphaFactor() const;
|
||||
|
||||
G4double GetBeamEnergy() const;
|
||||
void SetBeamParticle(const G4ParticleDefinition*);
|
||||
|
||||
void SetAlphaFactor(G4double val);
|
||||
const G4ParticleDefinition* GetBeamParticle() const;
|
||||
|
||||
G4double GetAlphaFactor() const;
|
||||
private:
|
||||
static TestParameters* fManager;
|
||||
|
||||
void SetBeamParticle(const G4ParticleDefinition*);
|
||||
G4double fMaxEnergy;
|
||||
G4double fPositionZ;
|
||||
G4double fBeamEnergy;
|
||||
G4double fEpsilon;
|
||||
|
||||
const G4ParticleDefinition* GetBeamParticle() const;
|
||||
G4int fBinsE;
|
||||
|
||||
private:
|
||||
|
||||
static TestParameters* fManager;
|
||||
|
||||
G4double fMaxEnergy;
|
||||
G4double fPositionZ;
|
||||
G4double fBeamEnergy;
|
||||
G4double fEpsilon;
|
||||
|
||||
G4int fBinsE;
|
||||
|
||||
const G4ParticleDefinition* fParticle;
|
||||
const G4ParticleDefinition* fParticle;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user