Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -35,13 +35,12 @@
|
||||
|
||||
class ActionInitialization : public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
ActionInitialization();
|
||||
virtual ~ActionInitialization();
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
public:
|
||||
ActionInitialization();
|
||||
virtual ~ActionInitialization();
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,12 +34,10 @@
|
||||
#ifndef DetectorConstruction_h
|
||||
#define DetectorConstruction_h 1
|
||||
|
||||
#include "G4OpticalSurface.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "G4OpticalSurface.hh"
|
||||
#include "G4RunManager.hh"
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
class DetectorMessenger;
|
||||
|
||||
@@ -47,83 +45,93 @@ class DetectorMessenger;
|
||||
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
DetectorConstruction();
|
||||
virtual ~DetectorConstruction();
|
||||
public:
|
||||
DetectorConstruction();
|
||||
virtual ~DetectorConstruction();
|
||||
|
||||
G4VPhysicalVolume* GetTank() {return fTank;}
|
||||
G4double GetTankXSize() {return fTank_x;}
|
||||
G4VPhysicalVolume* GetTank() { return fTank; }
|
||||
G4double GetTankXSize() { return fTank_x; }
|
||||
|
||||
G4OpticalSurface* GetSurface(void) {return fSurface;}
|
||||
G4OpticalSurface* GetSurface(void) { return fSurface; }
|
||||
|
||||
void SetSurfaceFinish(const G4OpticalSurfaceFinish finish) {
|
||||
fSurface->SetFinish(finish);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
G4OpticalSurfaceFinish GetSurfaceFinish(void)
|
||||
{return fSurface->GetFinish();}
|
||||
void SetSurfaceFinish(const G4OpticalSurfaceFinish finish)
|
||||
{
|
||||
fSurface->SetFinish(finish);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
G4OpticalSurfaceFinish GetSurfaceFinish(void)
|
||||
{
|
||||
return fSurface->GetFinish();
|
||||
}
|
||||
|
||||
void SetSurfaceType(const G4SurfaceType type) {
|
||||
fSurface->SetType(type);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
void SetSurfaceType(const G4SurfaceType type)
|
||||
{
|
||||
fSurface->SetType(type);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
|
||||
void SetSurfaceModel(const G4OpticalSurfaceModel model) {
|
||||
fSurface->SetModel(model);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
G4OpticalSurfaceModel GetSurfaceModel(void)
|
||||
{return fSurface->GetModel();}
|
||||
void SetSurfaceModel(const G4OpticalSurfaceModel model)
|
||||
{
|
||||
fSurface->SetModel(model);
|
||||
G4RunManager::GetRunManager()->GeometryHasBeenModified();
|
||||
}
|
||||
G4OpticalSurfaceModel GetSurfaceModel(void) { return fSurface->GetModel(); }
|
||||
|
||||
void SetSurfaceSigmaAlpha(G4double v);
|
||||
void SetSurfacePolish(G4double v);
|
||||
void SetSurfaceSigmaAlpha(G4double v);
|
||||
void SetSurfacePolish(G4double v);
|
||||
|
||||
void AddTankMPV(const char* c, G4MaterialPropertyVector* mpv);
|
||||
void AddTankMPC(const char* c, G4double v);
|
||||
G4MaterialPropertiesTable* GetTankMaterialPropertiesTable()
|
||||
{return fTankMPT;}
|
||||
void AddTankMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
|
||||
void AddTankMPC(const G4String& prop, G4double v);
|
||||
G4MaterialPropertiesTable* GetTankMaterialPropertiesTable()
|
||||
{
|
||||
return fTankMPT;
|
||||
}
|
||||
|
||||
void AddWorldMPV(const char* c, G4MaterialPropertyVector* mpv);
|
||||
void AddWorldMPC(const char* c, G4double v);
|
||||
G4MaterialPropertiesTable* GetWorldMaterialPropertiesTable()
|
||||
{return fWorldMPT;}
|
||||
void AddWorldMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
|
||||
void AddWorldMPC(const G4String& prop, G4double v);
|
||||
G4MaterialPropertiesTable* GetWorldMaterialPropertiesTable()
|
||||
{
|
||||
return fWorldMPT;
|
||||
}
|
||||
|
||||
void AddSurfaceMPV(const char* c, G4MaterialPropertyVector* mpv);
|
||||
void AddSurfaceMPC(const char* c, G4double v);
|
||||
G4MaterialPropertiesTable* GetSurfaceMaterialPropertiesTable()
|
||||
{return fSurfaceMPT;}
|
||||
void AddSurfaceMPV(const G4String& prop, G4MaterialPropertyVector* mpv);
|
||||
void AddSurfaceMPC(const G4String& prop, G4double v);
|
||||
G4MaterialPropertiesTable* GetSurfaceMaterialPropertiesTable()
|
||||
{
|
||||
return fSurfaceMPT;
|
||||
}
|
||||
|
||||
void SetWorldMaterial(const G4String&);
|
||||
G4Material* GetWorldMaterial() const {return fWorldMaterial;}
|
||||
void SetTankMaterial(const G4String&);
|
||||
G4Material* GetTankMaterial() const {return fTankMaterial;}
|
||||
void SetWorldMaterial(const G4String&);
|
||||
G4Material* GetWorldMaterial() const { return fWorldMaterial; }
|
||||
void SetTankMaterial(const G4String&);
|
||||
G4Material* GetTankMaterial() const { return fTankMaterial; }
|
||||
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
virtual G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
G4double fExpHall_x;
|
||||
G4double fExpHall_y;
|
||||
G4double fExpHall_z;
|
||||
private:
|
||||
G4double fExpHall_x;
|
||||
G4double fExpHall_y;
|
||||
G4double fExpHall_z;
|
||||
|
||||
G4VPhysicalVolume* fTank;
|
||||
G4VPhysicalVolume* fTank;
|
||||
|
||||
G4double fTank_x;
|
||||
G4double fTank_y;
|
||||
G4double fTank_z;
|
||||
G4double fTank_x;
|
||||
G4double fTank_y;
|
||||
G4double fTank_z;
|
||||
|
||||
G4LogicalVolume* fWorld_LV;
|
||||
G4LogicalVolume* fTank_LV;
|
||||
G4LogicalVolume* fWorld_LV;
|
||||
G4LogicalVolume* fTank_LV;
|
||||
|
||||
G4Material* fWorldMaterial;
|
||||
G4Material* fTankMaterial;
|
||||
G4Material* fWorldMaterial;
|
||||
G4Material* fTankMaterial;
|
||||
|
||||
G4OpticalSurface* fSurface;
|
||||
G4OpticalSurface* fSurface;
|
||||
|
||||
DetectorMessenger* fDetectorMessenger;
|
||||
DetectorMessenger* fDetectorMessenger;
|
||||
|
||||
G4MaterialPropertiesTable* fTankMPT;
|
||||
G4MaterialPropertiesTable* fWorldMPT;
|
||||
G4MaterialPropertiesTable* fSurfaceMPT;
|
||||
G4MaterialPropertiesTable* fTankMPT;
|
||||
G4MaterialPropertiesTable* fWorldMPT;
|
||||
G4MaterialPropertiesTable* fSurfaceMPT;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -47,43 +47,39 @@ class G4UIcmdWithoutParameter;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class DetectorMessenger: public G4UImessenger
|
||||
class DetectorMessenger : public G4UImessenger
|
||||
{
|
||||
public:
|
||||
public:
|
||||
DetectorMessenger(DetectorConstruction*);
|
||||
~DetectorMessenger();
|
||||
|
||||
DetectorMessenger(DetectorConstruction* );
|
||||
~DetectorMessenger();
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
private:
|
||||
DetectorConstruction* fDetector;
|
||||
|
||||
private:
|
||||
G4UIdirectory* fOpticalDir;
|
||||
|
||||
DetectorConstruction* fDetector;
|
||||
// the surface
|
||||
G4UIcmdWithAString* fSurfaceTypeCmd;
|
||||
G4UIcmdWithAString* fSurfaceFinishCmd;
|
||||
G4UIcmdWithAString* fSurfaceModelCmd;
|
||||
G4UIcmdWithADouble* fSurfaceSigmaAlphaCmd;
|
||||
G4UIcmdWithADouble* fSurfacePolishCmd;
|
||||
G4UIcmdWithAString* fSurfaceMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fSurfaceMatPropConstCmd;
|
||||
|
||||
G4UIdirectory* fOpticalDir;
|
||||
|
||||
// the surface
|
||||
G4UIcmdWithAString* fSurfaceTypeCmd;
|
||||
G4UIcmdWithAString* fSurfaceFinishCmd;
|
||||
G4UIcmdWithAString* fSurfaceModelCmd;
|
||||
G4UIcmdWithADouble* fSurfaceSigmaAlphaCmd;
|
||||
G4UIcmdWithADouble* fSurfacePolishCmd;
|
||||
G4UIcmdWithAString* fSurfaceMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fSurfaceMatPropConstCmd;
|
||||
|
||||
// the box
|
||||
G4UIcmdWithAString* fTankMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fTankMatPropConstCmd;
|
||||
G4UIcmdWithAString* fTankMaterialCmd;
|
||||
|
||||
// the world
|
||||
G4UIcmdWithAString* fWorldMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fWorldMatPropConstCmd;
|
||||
G4UIcmdWithAString* fWorldMaterialCmd;
|
||||
// the box
|
||||
G4UIcmdWithAString* fTankMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fTankMatPropConstCmd;
|
||||
G4UIcmdWithAString* fTankMaterialCmd;
|
||||
|
||||
// the world
|
||||
G4UIcmdWithAString* fWorldMatPropVectorCmd;
|
||||
G4UIcmdWithAString* fWorldMatPropConstCmd;
|
||||
G4UIcmdWithAString* fWorldMaterialCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the HistoManager class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -44,16 +44,15 @@
|
||||
|
||||
class HistoManager
|
||||
{
|
||||
public:
|
||||
HistoManager();
|
||||
~HistoManager();
|
||||
public:
|
||||
HistoManager();
|
||||
~HistoManager();
|
||||
|
||||
private:
|
||||
void Book();
|
||||
G4String fFileName;
|
||||
private:
|
||||
void Book();
|
||||
G4String fFileName;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,14 +29,13 @@
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#ifndef PrimaryGeneratorAction_h
|
||||
#define PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
class G4Event;
|
||||
class PrimaryGeneratorMessenger;
|
||||
@@ -45,20 +44,26 @@ class PrimaryGeneratorMessenger;
|
||||
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
virtual ~PrimaryGeneratorAction();
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
virtual ~PrimaryGeneratorAction();
|
||||
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
|
||||
G4ParticleGun* GetParticleGun() {return fParticleGun;};
|
||||
G4ParticleGun* GetParticleGun() { return fParticleGun; };
|
||||
|
||||
void SetOptPhotonPolar();
|
||||
void SetOptPhotonPolar(G4double);
|
||||
void SetOptPhotonPolar();
|
||||
void SetOptPhotonPolar(G4double);
|
||||
void SetRandomDirection(G4bool val = true);
|
||||
G4bool GetPolarized() { return fPolarized; };
|
||||
G4double GetPolarization() { return fPolarization; }
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
PrimaryGeneratorMessenger* fGunMessenger;
|
||||
private:
|
||||
G4ParticleGun* fParticleGun;
|
||||
PrimaryGeneratorMessenger* fGunMessenger;
|
||||
G4bool fRandomDirection;
|
||||
G4bool fPolarized;
|
||||
G4double fPolarization;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -36,27 +36,29 @@
|
||||
#ifndef PrimaryGeneratorMessenger_h
|
||||
#define PrimaryGeneratorMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class PrimaryGeneratorAction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithADoubleAndUnit;
|
||||
class G4UIcmdWithABool;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class PrimaryGeneratorMessenger: public G4UImessenger
|
||||
class PrimaryGeneratorMessenger : public G4UImessenger
|
||||
{
|
||||
public:
|
||||
PrimaryGeneratorMessenger(PrimaryGeneratorAction* );
|
||||
virtual ~PrimaryGeneratorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
PrimaryGeneratorAction* fPrimaryAction;
|
||||
G4UIdirectory* fGunDir;
|
||||
G4UIcmdWithADoubleAndUnit* fPolarCmd;
|
||||
public:
|
||||
PrimaryGeneratorMessenger(PrimaryGeneratorAction*);
|
||||
virtual ~PrimaryGeneratorMessenger();
|
||||
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
PrimaryGeneratorAction* fPrimaryAction;
|
||||
G4UIdirectory* fGunDir;
|
||||
G4UIcmdWithADoubleAndUnit* fPolarCmd;
|
||||
G4UIcmdWithABool* fRandomDirectionCmd;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
#ifndef Run_h
|
||||
#define Run_h 1
|
||||
|
||||
@@ -41,145 +40,194 @@ class G4ParticleDefinition;
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
class Run : public G4Run
|
||||
{
|
||||
public:
|
||||
Run();
|
||||
~Run();
|
||||
public:
|
||||
Run();
|
||||
~Run();
|
||||
|
||||
void SetPrimary(G4ParticleDefinition* particle, G4double energy);
|
||||
void SetPrimary(G4ParticleDefinition* particle, G4double energy,
|
||||
G4bool polarized, G4double polarization);
|
||||
|
||||
// particle energy
|
||||
void AddCerenkovEnergy(G4double en) {fCerenkovEnergy += en;}
|
||||
void AddScintillationEnergy(G4double en) {fScintEnergy += en;}
|
||||
void AddWLSAbsorptionEnergy(G4double en) {fWLSAbsorptionEnergy += en;}
|
||||
void AddWLSEmissionEnergy(G4double en) {fWLSEmissionEnergy += en;}
|
||||
void AddWLS2AbsorptionEnergy(G4double en) {fWLS2AbsorptionEnergy += en;}
|
||||
void AddWLS2EmissionEnergy(G4double en) {fWLS2EmissionEnergy += en;}
|
||||
// particle energy
|
||||
void AddCerenkovEnergy(G4double en) { fCerenkovEnergy += en; }
|
||||
void AddScintillationEnergy(G4double en) { fScintEnergy += en; }
|
||||
void AddWLSAbsorptionEnergy(G4double en) { fWLSAbsorptionEnergy += en; }
|
||||
void AddWLSEmissionEnergy(G4double en) { fWLSEmissionEnergy += en; }
|
||||
void AddWLS2AbsorptionEnergy(G4double en) { fWLS2AbsorptionEnergy += en; }
|
||||
void AddWLS2EmissionEnergy(G4double en) { fWLS2EmissionEnergy += en; }
|
||||
|
||||
// number of particles
|
||||
void AddCerenkov(void) {fCerenkovCount += 1;}
|
||||
void AddScintillation(void) {fScintCount += 1;}
|
||||
void AddRayleigh(void) {fRayleighCount += 1;}
|
||||
void AddWLSAbsorption(void) {fWLSAbsorptionCount += 1;}
|
||||
void AddWLSEmission(void) {fWLSEmissionCount += 1;}
|
||||
void AddWLS2Absorption(void) {fWLS2AbsorptionCount += 1;}
|
||||
void AddWLS2Emission(void) {fWLS2EmissionCount += 1;}
|
||||
|
||||
void AddOpAbsorption(void) {fOpAbsorption += 1;}
|
||||
void AddOpAbsorptionPrior(void) {fOpAbsorptionPrior += 1;}
|
||||
// number of particles
|
||||
void AddCerenkov(void) { fCerenkovCount += 1; }
|
||||
void AddScintillation(void) { fScintCount += 1; }
|
||||
void AddRayleigh(void) { fRayleighCount += 1; }
|
||||
void AddWLSAbsorption(void) { fWLSAbsorptionCount += 1; }
|
||||
void AddWLSEmission(void) { fWLSEmissionCount += 1; }
|
||||
void AddWLS2Absorption(void) { fWLS2AbsorptionCount += 1; }
|
||||
void AddWLS2Emission(void) { fWLS2EmissionCount += 1; }
|
||||
|
||||
void AddFresnelRefraction(void) {
|
||||
fBoundaryProcs[FresnelRefraction] += 1;
|
||||
}
|
||||
void AddFresnelReflection(void) {
|
||||
fBoundaryProcs[FresnelReflection] += 1;
|
||||
}
|
||||
void AddTransmission(void) {fBoundaryProcs[Transmission] += 1;}
|
||||
void AddTotalInternalReflection(void)
|
||||
{fBoundaryProcs[TotalInternalReflection] += 1;}
|
||||
void AddLambertianReflection(void)
|
||||
{fBoundaryProcs[LambertianReflection] += 1;}
|
||||
void AddLobeReflection(void) {fBoundaryProcs[LobeReflection] += 1;}
|
||||
void AddSpikeReflection(void) {fBoundaryProcs[SpikeReflection] += 1;}
|
||||
void AddBackScattering(void) {fBoundaryProcs[BackScattering] += 1;}
|
||||
void AddAbsorption(void) {fBoundaryProcs[Absorption] += 1;}
|
||||
void AddDetection(void) {fBoundaryProcs[Detection] += 1;}
|
||||
void AddNotAtBoundary(void) {fBoundaryProcs[NotAtBoundary] += 1;}
|
||||
void AddSameMaterial(void) {fBoundaryProcs[SameMaterial] += 1;}
|
||||
void AddStepTooSmall(void) {fBoundaryProcs[StepTooSmall] += 1;}
|
||||
void AddNoRINDEX(void) {fBoundaryProcs[NoRINDEX] += 1;}
|
||||
void AddOpAbsorption(void) { fOpAbsorption += 1; }
|
||||
void AddOpAbsorptionPrior(void) { fOpAbsorptionPrior += 1; }
|
||||
|
||||
void AddTotalSurface(void) {fTotalSurface += 1;}
|
||||
void AddPolishedLumirrorAirReflection(void)
|
||||
{fBoundaryProcs[PolishedLumirrorAirReflection] += 1;}
|
||||
void AddPolishedLumirrorGlueReflection(void)
|
||||
{fBoundaryProcs[PolishedLumirrorGlueReflection] += 1;}
|
||||
void AddPolishedAirReflection(void)
|
||||
{fBoundaryProcs[PolishedAirReflection] += 1;}
|
||||
void AddPolishedTeflonAirReflection(void)
|
||||
{fBoundaryProcs[PolishedTeflonAirReflection] += 1;}
|
||||
void AddPolishedTiOAirReflection(void)
|
||||
{fBoundaryProcs[PolishedTiOAirReflection] += 1;}
|
||||
void AddPolishedTyvekAirReflection(void)
|
||||
{fBoundaryProcs[PolishedTyvekAirReflection] += 1;}
|
||||
void AddPolishedVM2000AirReflection(void)
|
||||
{fBoundaryProcs[PolishedVM2000AirReflection] += 1;}
|
||||
void AddPolishedVM2000GlueReflection(void)
|
||||
{fBoundaryProcs[PolishedVM2000GlueReflection] += 1;}
|
||||
void AddFresnelRefraction(void) { fBoundaryProcs[FresnelRefraction] += 1; }
|
||||
void AddFresnelReflection(void) { fBoundaryProcs[FresnelReflection] += 1; }
|
||||
void AddTransmission(void) { fBoundaryProcs[Transmission] += 1; }
|
||||
void AddTotalInternalReflection(void)
|
||||
{
|
||||
fBoundaryProcs[TotalInternalReflection] += 1;
|
||||
}
|
||||
void AddLambertianReflection(void)
|
||||
{
|
||||
fBoundaryProcs[LambertianReflection] += 1;
|
||||
}
|
||||
void AddLobeReflection(void) { fBoundaryProcs[LobeReflection] += 1; }
|
||||
void AddSpikeReflection(void) { fBoundaryProcs[SpikeReflection] += 1; }
|
||||
void AddBackScattering(void) { fBoundaryProcs[BackScattering] += 1; }
|
||||
void AddAbsorption(void) { fBoundaryProcs[Absorption] += 1; }
|
||||
void AddDetection(void) { fBoundaryProcs[Detection] += 1; }
|
||||
void AddNotAtBoundary(void) { fBoundaryProcs[NotAtBoundary] += 1; }
|
||||
void AddSameMaterial(void) { fBoundaryProcs[SameMaterial] += 1; }
|
||||
void AddStepTooSmall(void) { fBoundaryProcs[StepTooSmall] += 1; }
|
||||
void AddNoRINDEX(void) { fBoundaryProcs[NoRINDEX] += 1; }
|
||||
|
||||
void AddEtchedLumirrorAirReflection(void)
|
||||
{fBoundaryProcs[EtchedLumirrorAirReflection] += 1;}
|
||||
void AddEtchedLumirrorGlueReflection(void)
|
||||
{fBoundaryProcs[EtchedLumirrorGlueReflection] += 1;}
|
||||
void AddEtchedAirReflection(void)
|
||||
{fBoundaryProcs[EtchedAirReflection] += 1;}
|
||||
void AddEtchedTeflonAirReflection(void)
|
||||
{fBoundaryProcs[EtchedTeflonAirReflection] += 1;}
|
||||
void AddEtchedTiOAirReflection(void)
|
||||
{fBoundaryProcs[EtchedTiOAirReflection] += 1;}
|
||||
void AddEtchedTyvekAirReflection(void)
|
||||
{fBoundaryProcs[EtchedTyvekAirReflection] += 1;}
|
||||
void AddEtchedVM2000AirReflection(void)
|
||||
{fBoundaryProcs[EtchedVM2000AirReflection] += 1;}
|
||||
void AddEtchedVM2000GlueReflection(void)
|
||||
{fBoundaryProcs[EtchedVM2000GlueReflection] += 1;}
|
||||
void AddTotalSurface(void) { fTotalSurface += 1; }
|
||||
void AddPolishedLumirrorAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedLumirrorAirReflection] += 1;
|
||||
}
|
||||
void AddPolishedLumirrorGlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedLumirrorGlueReflection] += 1;
|
||||
}
|
||||
void AddPolishedAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedAirReflection] += 1;
|
||||
}
|
||||
void AddPolishedTeflonAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedTeflonAirReflection] += 1;
|
||||
}
|
||||
void AddPolishedTiOAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedTiOAirReflection] += 1;
|
||||
}
|
||||
void AddPolishedTyvekAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedTyvekAirReflection] += 1;
|
||||
}
|
||||
void AddPolishedVM2000AirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedVM2000AirReflection] += 1;
|
||||
}
|
||||
void AddPolishedVM2000GlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[PolishedVM2000GlueReflection] += 1;
|
||||
}
|
||||
|
||||
void AddGroundLumirrorAirReflection(void)
|
||||
{fBoundaryProcs[GroundLumirrorAirReflection] += 1;}
|
||||
void AddGroundLumirrorGlueReflection(void)
|
||||
{fBoundaryProcs[GroundLumirrorGlueReflection] += 1;}
|
||||
void AddGroundAirReflection(void)
|
||||
{fBoundaryProcs[GroundAirReflection] += 1;}
|
||||
void AddGroundTeflonAirReflection(void)
|
||||
{fBoundaryProcs[GroundTeflonAirReflection] += 1;}
|
||||
void AddGroundTiOAirReflection(void)
|
||||
{fBoundaryProcs[GroundTiOAirReflection] += 1;}
|
||||
void AddGroundTyvekAirReflection(void)
|
||||
{fBoundaryProcs[GroundTyvekAirReflection] += 1;}
|
||||
void AddGroundVM2000AirReflection(void)
|
||||
{fBoundaryProcs[GroundVM2000AirReflection] += 1;}
|
||||
void AddGroundVM2000GlueReflection(void)
|
||||
{fBoundaryProcs[GroundVM2000GlueReflection] += 1;}
|
||||
void AddEtchedLumirrorAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedLumirrorAirReflection] += 1;
|
||||
}
|
||||
void AddEtchedLumirrorGlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedLumirrorGlueReflection] += 1;
|
||||
}
|
||||
void AddEtchedAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedAirReflection] += 1;
|
||||
}
|
||||
void AddEtchedTeflonAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedTeflonAirReflection] += 1;
|
||||
}
|
||||
void AddEtchedTiOAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedTiOAirReflection] += 1;
|
||||
}
|
||||
void AddEtchedTyvekAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedTyvekAirReflection] += 1;
|
||||
}
|
||||
void AddEtchedVM2000AirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedVM2000AirReflection] += 1;
|
||||
}
|
||||
void AddEtchedVM2000GlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[EtchedVM2000GlueReflection] += 1;
|
||||
}
|
||||
|
||||
void AddDichroic(void) {fBoundaryProcs[Dichroic] += 1;}
|
||||
void AddGroundLumirrorAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundLumirrorAirReflection] += 1;
|
||||
}
|
||||
void AddGroundLumirrorGlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundLumirrorGlueReflection] += 1;
|
||||
}
|
||||
void AddGroundAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundAirReflection] += 1;
|
||||
}
|
||||
void AddGroundTeflonAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundTeflonAirReflection] += 1;
|
||||
}
|
||||
void AddGroundTiOAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundTiOAirReflection] += 1;
|
||||
}
|
||||
void AddGroundTyvekAirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundTyvekAirReflection] += 1;
|
||||
}
|
||||
void AddGroundVM2000AirReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundVM2000AirReflection] += 1;
|
||||
}
|
||||
void AddGroundVM2000GlueReflection(void)
|
||||
{
|
||||
fBoundaryProcs[GroundVM2000GlueReflection] += 1;
|
||||
}
|
||||
|
||||
virtual void Merge(const G4Run*);
|
||||
void AddDichroic(void) { fBoundaryProcs[Dichroic] += 1; }
|
||||
|
||||
void EndOfRun();
|
||||
virtual void Merge(const G4Run*);
|
||||
|
||||
private:
|
||||
// primary particle
|
||||
G4ParticleDefinition* fParticle;
|
||||
G4double fEkin;
|
||||
void EndOfRun();
|
||||
|
||||
G4double fCerenkovEnergy;
|
||||
G4double fScintEnergy;
|
||||
G4double fWLSAbsorptionEnergy;
|
||||
G4double fWLSEmissionEnergy;
|
||||
G4double fWLS2AbsorptionEnergy;
|
||||
G4double fWLS2EmissionEnergy;
|
||||
private:
|
||||
// primary particle
|
||||
G4ParticleDefinition* fParticle;
|
||||
G4double fEkin;
|
||||
G4bool fPolarized;
|
||||
G4double fPolarization;
|
||||
|
||||
// number of particles
|
||||
G4int fCerenkovCount;
|
||||
G4int fScintCount;
|
||||
G4int fWLSAbsorptionCount;
|
||||
G4int fWLSEmissionCount;
|
||||
G4int fWLS2AbsorptionCount;
|
||||
G4int fWLS2EmissionCount;
|
||||
// number of events
|
||||
G4int fRayleighCount;
|
||||
|
||||
// non-boundary processes
|
||||
G4int fOpAbsorption;
|
||||
G4double fCerenkovEnergy;
|
||||
G4double fScintEnergy;
|
||||
G4double fWLSAbsorptionEnergy;
|
||||
G4double fWLSEmissionEnergy;
|
||||
G4double fWLS2AbsorptionEnergy;
|
||||
G4double fWLS2EmissionEnergy;
|
||||
|
||||
// prior to boundary:
|
||||
G4int fOpAbsorptionPrior;
|
||||
// number of particles
|
||||
G4int fCerenkovCount;
|
||||
G4int fScintCount;
|
||||
G4int fWLSAbsorptionCount;
|
||||
G4int fWLSEmissionCount;
|
||||
G4int fWLS2AbsorptionCount;
|
||||
G4int fWLS2EmissionCount;
|
||||
// number of events
|
||||
G4int fRayleighCount;
|
||||
|
||||
// boundary proc
|
||||
std::vector<G4int> fBoundaryProcs;
|
||||
// non-boundary processes
|
||||
G4int fOpAbsorption;
|
||||
|
||||
G4int fTotalSurface;
|
||||
// prior to boundary:
|
||||
G4int fOpAbsorptionPrior;
|
||||
|
||||
// boundary proc
|
||||
std::vector<G4int> fBoundaryProcs;
|
||||
|
||||
G4int fTotalSurface;
|
||||
};
|
||||
|
||||
|
||||
#endif /* Run_h */
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the RunAction class
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -36,31 +36,27 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UserRunAction.hh"
|
||||
// #include "Run.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
class G4Timer;
|
||||
class Run;
|
||||
class HistoManager;
|
||||
class PrimaryGeneratorAction;
|
||||
|
||||
class RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
RunAction(PrimaryGeneratorAction* = nullptr);
|
||||
virtual ~RunAction();
|
||||
public:
|
||||
RunAction(PrimaryGeneratorAction* = nullptr);
|
||||
virtual ~RunAction();
|
||||
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
virtual G4Run* GenerateRun();
|
||||
virtual void BeginOfRunAction(const G4Run*);
|
||||
virtual void EndOfRunAction(const G4Run*);
|
||||
|
||||
private:
|
||||
G4Timer* fTimer;
|
||||
Run* fRun;
|
||||
HistoManager* fHistoManager;
|
||||
PrimaryGeneratorAction* fPrimary;
|
||||
private:
|
||||
Run* fRun;
|
||||
HistoManager* fHistoManager;
|
||||
PrimaryGeneratorAction* fPrimary;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -32,21 +32,20 @@
|
||||
#ifndef SteppingAction_h
|
||||
#define SteppingAction_h 1
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
|
||||
class SteppingAction : public G4UserSteppingAction
|
||||
{
|
||||
public:
|
||||
SteppingAction();
|
||||
virtual ~SteppingAction();
|
||||
public:
|
||||
SteppingAction();
|
||||
virtual ~SteppingAction();
|
||||
|
||||
// method from the base class
|
||||
virtual void UserSteppingAction(const G4Step*);
|
||||
// method from the base class
|
||||
virtual void UserSteppingAction(const G4Step*);
|
||||
|
||||
private:
|
||||
G4int fVerbose;
|
||||
private:
|
||||
G4int fVerbose;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -33,48 +33,47 @@
|
||||
#define TrackInformation_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include "G4VUserTrackInformation.hh"
|
||||
|
||||
class TrackInformation : public G4VUserTrackInformation
|
||||
class G4Track;
|
||||
|
||||
class TrackInformation : public G4VUserTrackInformation
|
||||
{
|
||||
public:
|
||||
public:
|
||||
TrackInformation();
|
||||
TrackInformation(const G4Track* aTrack);
|
||||
TrackInformation(const TrackInformation* aTrackInfo);
|
||||
virtual ~TrackInformation();
|
||||
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void *aTrackInfo);
|
||||
|
||||
TrackInformation& operator =(const TrackInformation& right);
|
||||
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void* aTrackInfo);
|
||||
|
||||
TrackInformation& operator=(const TrackInformation& right);
|
||||
|
||||
void SetSourceTrackInformation(const G4Track* aTrack);
|
||||
virtual void Print() const;
|
||||
|
||||
public:
|
||||
inline G4bool GetIsFirstTankX() const {return fFirstTankX;}
|
||||
inline void SetIsFirstTankX(G4bool b) {fFirstTankX = b;}
|
||||
public:
|
||||
inline G4bool GetIsFirstTankX() const { return fFirstTankX; }
|
||||
inline void SetIsFirstTankX(G4bool b) { fFirstTankX = b; }
|
||||
|
||||
private:
|
||||
G4bool fFirstTankX;
|
||||
private:
|
||||
G4bool fFirstTankX;
|
||||
};
|
||||
|
||||
extern G4ThreadLocal
|
||||
G4Allocator<TrackInformation> * aTrackInformationAllocator;
|
||||
extern G4ThreadLocal G4Allocator<TrackInformation>* aTrackInformationAllocator;
|
||||
|
||||
inline void* TrackInformation::operator new(size_t)
|
||||
{
|
||||
if(!aTrackInformationAllocator)
|
||||
aTrackInformationAllocator = new G4Allocator<TrackInformation>;
|
||||
return (void*)aTrackInformationAllocator->MallocSingle();
|
||||
return (void*) aTrackInformationAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
inline void TrackInformation::operator delete(void *aTrackInfo)
|
||||
{ aTrackInformationAllocator->FreeSingle((TrackInformation*)aTrackInfo);}
|
||||
inline void TrackInformation::operator delete(void* aTrackInfo)
|
||||
{
|
||||
aTrackInformationAllocator->FreeSingle((TrackInformation*) aTrackInfo);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
/// \file optical/OpNovice2/include/TrackingAction.hh
|
||||
/// \brief Definition of the TrackingAction class
|
||||
//
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//
|
||||
@@ -35,15 +35,14 @@
|
||||
|
||||
#include "G4UserTrackingAction.hh"
|
||||
|
||||
class TrackingAction : public G4UserTrackingAction
|
||||
class TrackingAction : public G4UserTrackingAction
|
||||
{
|
||||
public:
|
||||
public:
|
||||
TrackingAction();
|
||||
virtual ~TrackingAction(){};
|
||||
|
||||
|
||||
virtual void PreUserTrackingAction(const G4Track*);
|
||||
virtual void PostUserTrackingAction(const G4Track*);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user