Import Geant4 10.5.1 source tree
This commit is contained in:
@@ -42,19 +42,24 @@
|
||||
#ifndef G4OpticalPhysics_h
|
||||
#define G4OpticalPhysics_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
#include "G4OpticalProcessIndex.hh"
|
||||
#include "G4OpticalPhysicsMessenger.hh"
|
||||
|
||||
#include "G4OpticalSurface.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4VProcess;
|
||||
class G4EmSaturation;
|
||||
class G4Scintillation;
|
||||
class G4Cerenkov;
|
||||
class G4OpWLS;
|
||||
class G4OpRayleigh;
|
||||
class G4OpMieHG;
|
||||
class G4OpBoundaryProcess;
|
||||
class G4OpAbsorption;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -83,24 +88,38 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
// configure G4OpticalPhysics builder
|
||||
void Configure(G4OpticalProcessIndex, G4bool );
|
||||
|
||||
void SetMaxNumPhotonsPerStep(G4int );
|
||||
void SetMaxBetaChangePerStep(G4double );
|
||||
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool );
|
||||
|
||||
// Cerenkov
|
||||
void SetMaxNumPhotonsPerStep(G4int);
|
||||
void SetMaxBetaChangePerStep(G4double);
|
||||
void SetCerenkovStackPhotons(G4bool);
|
||||
void SetCerenkovTrackSecondariesFirst(G4bool);
|
||||
void SetCerenkovVerbosity(G4int);
|
||||
|
||||
// Scintillation
|
||||
void SetScintillationYieldFactor(G4double );
|
||||
void SetScintillationExcitationRatio(G4double );
|
||||
|
||||
void SetWLSTimeProfile(G4String );
|
||||
void SetScintillationByParticleType(G4bool );
|
||||
void SetScintillationTrackInfo(G4bool );
|
||||
void SetScintillationTrackSecondariesFirst(G4bool);
|
||||
void SetFiniteRiseTime(G4bool );
|
||||
void SetScintillationStackPhotons(G4bool );
|
||||
void SetScintillationVerbosity(G4int);
|
||||
//void AddScintillationSaturation(G4EmSaturation* );
|
||||
|
||||
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool );
|
||||
void SetFiniteRiseTime(G4bool );
|
||||
|
||||
void SetCerenkovStackPhotons(G4bool );
|
||||
void SetScintillationStackPhotons(G4bool );
|
||||
// WLS
|
||||
void SetWLSTimeProfile(G4String );
|
||||
void SetWLSVerbosity(G4int);
|
||||
|
||||
//boundary
|
||||
void SetBoundaryVerbosity(G4int);
|
||||
void SetInvokeSD(G4bool );
|
||||
|
||||
void SetAbsorptionVerbosity(G4int);
|
||||
void SetRayleighVerbosity(G4int);
|
||||
void SetMieVerbosity(G4int);
|
||||
|
||||
private:
|
||||
|
||||
// methods
|
||||
@@ -116,21 +135,14 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
// the option to track secondaries before finishing their parent track
|
||||
std::vector<G4bool> fProcessTrackSecondariesFirst;
|
||||
|
||||
/// max number of Cerenkov photons per step
|
||||
G4int fMaxNumPhotons;
|
||||
|
||||
/// max change of beta per step
|
||||
G4double fMaxBetaChange;
|
||||
|
||||
// scintillation /////////////////
|
||||
static G4ThreadLocal G4Scintillation* fScintillationProcess;
|
||||
/// scintillation yield factor
|
||||
G4double fYieldFactor;
|
||||
|
||||
/// scintillation excitation ratio
|
||||
G4double fExcitationRatio;
|
||||
|
||||
/// the WLS process time profile
|
||||
G4String fProfile;
|
||||
|
||||
/// option to set a finite rise-time; Note: the G4Scintillation
|
||||
/// process expects the user to have set the constant material
|
||||
/// property FAST/SLOWSCINTILLATIONRISETIME
|
||||
@@ -145,15 +157,39 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
/// to be attached to a scintillation photon's track
|
||||
G4bool fScintillationTrackInfo;
|
||||
|
||||
/// option to allow for G4OpBoundaryProcess
|
||||
/// to call/not call InvokeSD method
|
||||
G4bool fInvokeSD;
|
||||
|
||||
/// option to allow stacking of secondary Cerenkov photons
|
||||
G4bool fCerenkovStackPhotons;
|
||||
/// option to allow stacking of secondary Scintillation photons
|
||||
G4bool fScintillationStackPhotons;
|
||||
|
||||
G4int fScintillationVerbosity;
|
||||
|
||||
////////////////// Cerenkov
|
||||
static G4ThreadLocal G4Cerenkov* fCerenkovProcess;
|
||||
/// max number of Cerenkov photons per step
|
||||
G4int fMaxNumPhotons;
|
||||
/// max change of beta per step
|
||||
G4double fMaxBetaChange;
|
||||
/// option to allow stacking of secondary Cerenkov photons
|
||||
G4bool fCerenkovStackPhotons;
|
||||
G4int fCerenkovVerbosity;
|
||||
|
||||
///////////////// WLS
|
||||
static G4ThreadLocal G4OpWLS* fWLSProcess;
|
||||
G4String fWLSTimeProfileName;
|
||||
G4int fWLSVerbosity;
|
||||
|
||||
static G4ThreadLocal G4OpAbsorption* fAbsorptionProcess;
|
||||
G4int fAbsorptionVerbosity;
|
||||
|
||||
static G4ThreadLocal G4OpRayleigh* fRayleighProcess;
|
||||
G4int fRayleighVerbosity;
|
||||
|
||||
static G4ThreadLocal G4OpMieHG* fMieProcess;
|
||||
G4int fMieVerbosity;
|
||||
|
||||
static G4ThreadLocal G4OpBoundaryProcess* fBoundaryProcess;
|
||||
/// G4OpBoundaryProcess to call InvokeSD method
|
||||
G4bool fInvokeSD;
|
||||
G4int fBoundaryVerbosity;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
+66
-50
@@ -42,11 +42,11 @@
|
||||
#ifndef G4OpticalPhysicsMessenger_h
|
||||
#define G4OpticalPhysicsMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "G4OpticalProcessIndex.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VProcess;
|
||||
class G4OpticalPhysics;
|
||||
|
||||
@@ -58,20 +58,6 @@ class G4UIcmdWithAnInteger;
|
||||
class G4UIcommand;
|
||||
|
||||
// Messenger class that defines commands for the optical physics
|
||||
//
|
||||
// Implements commands:
|
||||
// - /process/optical/processActivation proc_name flag
|
||||
// - /process/optical/verbose level
|
||||
// - /process/optical/setTrackSecondariesFirst proc_name flag
|
||||
// - /process/optical/defaults/cerenkov/setMaxPhotons val
|
||||
// - /process/optical/defaults/cerenkov/setMaxBetaChange val
|
||||
// - /process/optical/defaults/cerenkov/setStackPhotons flag
|
||||
// - /process/optical/defaults/scintillation/setYieldFactor val
|
||||
// - /process/optical/defaults/scintillation/setByParticleType val
|
||||
// - /process/optical/defaults/scintillation/setFiniteRiseTime val
|
||||
// - /process/optical/defaults/scintillation/setStackPhotons flag
|
||||
// - /process/optical/defaults/wls/setTimeProfile val
|
||||
// - /process/optical/defaults/boundary/setInvokeSD flag
|
||||
|
||||
class G4OpticalPhysicsMessenger: public G4UImessenger
|
||||
{
|
||||
@@ -92,10 +78,12 @@ private:
|
||||
/// Not implemented
|
||||
G4OpticalPhysicsMessenger& operator=(const G4OpticalPhysicsMessenger& right);
|
||||
|
||||
void Deprecated(void);
|
||||
|
||||
// data members
|
||||
|
||||
/// associated class
|
||||
G4OpticalPhysics* fOpticalPhysics;
|
||||
G4OpticalPhysics* fOpticalPhysics;
|
||||
|
||||
/// command directory
|
||||
G4UIdirectory* fDir;
|
||||
@@ -105,47 +93,75 @@ private:
|
||||
G4OpticalProcessIndex fSelectedProcessIndex;
|
||||
|
||||
/// selectOpProcess command
|
||||
G4UIcommand* fActivateProcessCmd;
|
||||
|
||||
G4UIcommand* fActivateProcessCmd;
|
||||
|
||||
/// setProcessVerbose command
|
||||
G4UIcmdWithAnInteger* fSetOpProcessVerboseCmd;
|
||||
|
||||
/// setCerenkovMaxPhotons command
|
||||
G4UIcmdWithAnInteger* fSetCerenkovMaxPhotonsCmd;
|
||||
|
||||
/// setCerenkovMaxBetaChange command
|
||||
G4UIcmdWithADouble* fSetCerenkovMaxBetaChangeCmd;
|
||||
|
||||
/// setStackPhotons command
|
||||
G4UIcmdWithABool* fSetCerenkovStackPhotonsCmd;
|
||||
|
||||
/// setScintillationYieldFactor command
|
||||
G4UIcmdWithADouble* fSetScintillationYieldFactorCmd;
|
||||
|
||||
/// setScintillationByParticleType command
|
||||
G4UIcmdWithABool* fSetScintillationByParticleTypeCmd;
|
||||
|
||||
/// setScintillationTrackInfo command
|
||||
G4UIcmdWithABool* fSetScintillationTrackInfoCmd;
|
||||
|
||||
/// setStackPhotons command
|
||||
G4UIcmdWithABool* fSetScintillationStackPhotonsCmd;
|
||||
|
||||
// /// setOpticalSurfaceModel command
|
||||
// G4UIcmdWithAString* fSetOpticalSurfaceModelCmd;
|
||||
|
||||
/// setWLSTimeProfile command
|
||||
G4UIcmdWithAString* fSetWLSTimeProfileCmd;
|
||||
G4UIcmdWithAnInteger* fVerboseCmd;
|
||||
|
||||
/// setTrackSecondariesFirst command
|
||||
G4UIcommand* fSetTrackSecondariesFirstCmd;
|
||||
G4UIcommand* fTrackSecondariesFirstCmd;
|
||||
|
||||
// Cerenkov
|
||||
|
||||
/// setCerenkovMaxPhotons command
|
||||
G4UIcmdWithAnInteger* fCerenkovMaxPhotonsCmd;
|
||||
G4UIcmdWithAnInteger* fCerenkovMaxPhotons1Cmd;
|
||||
|
||||
/// setCerenkovMaxBetaChange command
|
||||
G4UIcmdWithADouble* fCerenkovMaxBetaChangeCmd;
|
||||
G4UIcmdWithADouble* fCerenkovMaxBetaChange1Cmd;
|
||||
|
||||
/// setStackPhotons command
|
||||
G4UIcmdWithABool* fCerenkovStackPhotonsCmd;
|
||||
G4UIcmdWithABool* fCerenkovStackPhotons1Cmd;
|
||||
|
||||
G4UIcmdWithABool* fCerenkovTrackSecondariesFirstCmd;
|
||||
G4UIcmdWithAnInteger* fCerenkovVerbosityCmd;
|
||||
|
||||
// Scintillation
|
||||
|
||||
/// setScintillationYieldFactor command
|
||||
G4UIcmdWithADouble* fScintYieldFactorCmd;
|
||||
G4UIcmdWithADouble* fScintYieldFactor1Cmd;
|
||||
|
||||
/// setScintillationByParticleType command
|
||||
G4UIcmdWithABool* fScintByParticleTypeCmd;
|
||||
G4UIcmdWithABool* fScintByParticleType1Cmd;
|
||||
|
||||
/// setScintillationTrackInfo command
|
||||
G4UIcmdWithABool* fScintTrackInfoCmd;
|
||||
G4UIcmdWithABool* fScintTrackInfo1Cmd;
|
||||
|
||||
/// setStackPhotons command
|
||||
G4UIcmdWithABool* fScintStackPhotonsCmd;
|
||||
G4UIcmdWithABool* fScintStackPhotons1Cmd;
|
||||
|
||||
G4UIcmdWithADouble* fScintExcitationRatioCmd;
|
||||
|
||||
G4UIcmdWithABool* fScintTrackSecondariesFirstCmd;
|
||||
G4UIcmdWithAnInteger* fScintillationVerbosityCmd;
|
||||
|
||||
/// setFiniteRiseTime command
|
||||
G4UIcmdWithABool* fSetFiniteRiseTimeCmd;
|
||||
G4UIcmdWithABool* fScintFiniteRiseTimeCmd;
|
||||
G4UIcmdWithABool* fScintFiniteRiseTime1Cmd;
|
||||
|
||||
G4UIcmdWithAnInteger* fScintVerbosityCmd;
|
||||
|
||||
// WLS
|
||||
|
||||
/// setWLSTimeProfile command
|
||||
G4UIcmdWithAString* fWLSTimeProfileCmd;
|
||||
G4UIcmdWithAString* fWLSTimeProfile1Cmd;
|
||||
G4UIcmdWithAnInteger* fWLSVerbosityCmd;
|
||||
|
||||
/// setInvokeSD command
|
||||
G4UIcmdWithABool* fSetInvokeSDCmd;
|
||||
G4UIcmdWithABool* fBoundaryInvokeSDCmd;
|
||||
G4UIcmdWithABool* fBoundaryInvokeSD1Cmd;
|
||||
G4UIcmdWithAnInteger* fBoundaryVerbosityCmd;
|
||||
|
||||
G4UIcmdWithAnInteger* fAbsorptionVerbosityCmd;
|
||||
G4UIcmdWithAnInteger* fRayleighVerbosityCmd;
|
||||
G4UIcmdWithAnInteger* fMieVerbosityCmd;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user