Import Geant4 10.7.0 source tree
This commit is contained in:
Executable → Regular
Executable → Regular
+5
-5
@@ -61,6 +61,9 @@ public:
|
||||
|
||||
explicit G4EmModelActivator(const G4String& emphys="");
|
||||
|
||||
G4EmModelActivator & operator=(const G4EmModelActivator &right) = delete;
|
||||
G4EmModelActivator(const G4EmModelActivator&) = delete;
|
||||
|
||||
private:
|
||||
|
||||
void ActivatePAI();
|
||||
@@ -73,14 +76,11 @@ private:
|
||||
|
||||
void AddStandardScattering(const G4ParticleDefinition*, G4EmConfigurator*,
|
||||
G4VMscModel*, const G4String&,
|
||||
G4double, G4double);
|
||||
G4double, G4double, const G4String&);
|
||||
|
||||
G4bool HasMsc(G4ProcessManager*) const;
|
||||
|
||||
G4VMscModel* GetGSModel();
|
||||
|
||||
G4EmModelActivator & operator=(const G4EmModelActivator &right) = delete;
|
||||
G4EmModelActivator(const G4EmModelActivator&) = delete;
|
||||
void SetMscParameters(const G4ParticleDefinition*, G4VMscModel*, const G4String& phys);
|
||||
|
||||
G4EmParameters* theParameters;
|
||||
G4String baseName;
|
||||
|
||||
+38
-36
@@ -59,9 +59,7 @@ class G4ParticleDefinition;
|
||||
class G4VParticleChange;
|
||||
class G4GammaConversionToMuons;
|
||||
class G4HadronicProcess;
|
||||
class G4LossTableManager;
|
||||
class G4MaterialCutsCouple;
|
||||
class G4EmParameters;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -73,7 +71,7 @@ public:
|
||||
|
||||
virtual ~G4GammaGeneralProcess();
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition&) final;
|
||||
G4bool IsApplicable(const G4ParticleDefinition&) override;
|
||||
|
||||
void AddEmProcess(G4VEmProcess*);
|
||||
|
||||
@@ -81,37 +79,37 @@ public:
|
||||
|
||||
void AddHadProcess(G4HadronicProcess*);
|
||||
|
||||
void ProcessDescription(std::ostream& outFile) const final;
|
||||
void ProcessDescription(std::ostream& outFile) const override;
|
||||
|
||||
protected:
|
||||
|
||||
void InitialiseProcess(const G4ParticleDefinition*) final;
|
||||
void InitialiseProcess(const G4ParticleDefinition*) override;
|
||||
|
||||
public:
|
||||
|
||||
// Initialise for build of tables
|
||||
void PreparePhysicsTable(const G4ParticleDefinition&) final;
|
||||
void PreparePhysicsTable(const G4ParticleDefinition&) override;
|
||||
|
||||
// Build physics table during initialisation
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&) final;
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&) override;
|
||||
|
||||
// Called before tracking of each new G4Track
|
||||
void StartTracking(G4Track*) final;
|
||||
void StartTracking(G4Track*) override;
|
||||
|
||||
// implementation of virtual method, specific for G4GammaGeneralProcess
|
||||
G4double PostStepGetPhysicalInteractionLength(
|
||||
const G4Track& track,
|
||||
G4double previousStepSize,
|
||||
G4ForceCondition* condition) final;
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
// implementation of virtual method, specific for G4GammaGeneralProcess
|
||||
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) final;
|
||||
G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override;
|
||||
|
||||
// Store PhysicsTable in a file.
|
||||
// Return false in case of failure at I/O
|
||||
G4bool StorePhysicsTable(const G4ParticleDefinition*,
|
||||
const G4String& directory,
|
||||
G4bool ascii = false) final;
|
||||
G4bool ascii = false) override;
|
||||
|
||||
// Retrieve Physics from a file.
|
||||
// (return true if the Physics Table can be build by using file)
|
||||
@@ -120,40 +118,47 @@ public:
|
||||
// should be placed under the directory specifed by the argument.
|
||||
G4bool RetrievePhysicsTable(const G4ParticleDefinition*,
|
||||
const G4String& directory,
|
||||
G4bool ascii) final;
|
||||
G4bool ascii) override;
|
||||
|
||||
const G4String& GetProcessName() const;
|
||||
|
||||
G4int GetProcessSubType() const;
|
||||
|
||||
G4VEmProcess* GetEmProcess(const G4String& name) final;
|
||||
G4VEmProcess* GetEmProcess(const G4String& name) override;
|
||||
|
||||
// hide copy constructor and assignment operator
|
||||
G4GammaGeneralProcess(G4GammaGeneralProcess &) = delete;
|
||||
G4GammaGeneralProcess & operator=
|
||||
(const G4GammaGeneralProcess &right) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize,
|
||||
G4ForceCondition* condition) final;
|
||||
G4ForceCondition* condition) override;
|
||||
|
||||
inline G4double ComputeGeneralLambda(size_t idxe, size_t idxt);
|
||||
|
||||
inline G4double GetProbability(size_t idxt);
|
||||
|
||||
inline void SelectedProcess(const G4Step& track, const G4VProcess* ptr);
|
||||
|
||||
inline G4VParticleChange* SampleEmSecondaries(const G4Track&, const G4Step&,
|
||||
G4VEmProcess*);
|
||||
|
||||
G4VParticleChange* SampleHadSecondaries(const G4Track&, const G4Step&,
|
||||
G4HadronicProcess*);
|
||||
|
||||
private:
|
||||
|
||||
// It returns the cross section per volume for energy/ material
|
||||
G4double TotalCrossSectionPerVolume();
|
||||
|
||||
inline G4double ComputeGeneralLambda(size_t idxe, size_t idxt);
|
||||
protected:
|
||||
|
||||
inline G4double GetProbability(size_t idxt);
|
||||
|
||||
inline void SelectedProcess(const G4Track& track, G4VProcess* ptr);
|
||||
|
||||
inline G4VParticleChange* SampleSecondaries(const G4Track&, const G4Step&,
|
||||
G4VEmProcess*);
|
||||
|
||||
G4VParticleChange* SampleSecondaries(const G4Track&, const G4Step&,
|
||||
G4HadronicProcess*);
|
||||
|
||||
// hide copy constructor and assignment operator
|
||||
G4GammaGeneralProcess(G4GammaGeneralProcess &);
|
||||
G4GammaGeneralProcess & operator=(const G4GammaGeneralProcess &right);
|
||||
G4HadronicProcess* theGammaNuclear;
|
||||
const G4VProcess* selectedProc;
|
||||
|
||||
private:
|
||||
static G4EmDataHandler* theHandler;
|
||||
static const size_t nTables = 15;
|
||||
static G4bool theT[nTables];
|
||||
@@ -163,9 +168,7 @@ private:
|
||||
G4VEmProcess* theCompton;
|
||||
G4VEmProcess* theConversionEE;
|
||||
G4VEmProcess* theRayleigh;
|
||||
G4HadronicProcess* theGammaNuclear;
|
||||
G4GammaConversionToMuons* theConversionMM;
|
||||
G4VProcess* selectedProc;
|
||||
|
||||
G4double minPEEnergy;
|
||||
G4double minEEEnergy;
|
||||
@@ -201,20 +204,19 @@ inline G4double G4GammaGeneralProcess::GetProbability(size_t idxt)
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline void
|
||||
G4GammaGeneralProcess::SelectedProcess(const G4Track& track, G4VProcess* ptr)
|
||||
G4GammaGeneralProcess::SelectedProcess(const G4Step& step, const G4VProcess* ptr)
|
||||
{
|
||||
selectedProc = ptr;
|
||||
const_cast<G4Track*>(&track)->SetCreatorProcess(ptr);
|
||||
step.GetPostStepPoint()->SetProcessDefinedStep(ptr);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4VParticleChange*
|
||||
G4GammaGeneralProcess::SampleSecondaries(const G4Track& track, const G4Step& step,
|
||||
G4VEmProcess* proc)
|
||||
inline G4VParticleChange* G4GammaGeneralProcess::SampleEmSecondaries(
|
||||
const G4Track& track, const G4Step& step, G4VEmProcess* proc)
|
||||
{
|
||||
proc->CurrentSetup(currentCouple,preStepKinEnergy);
|
||||
SelectedProcess(track, proc);
|
||||
SelectedProcess(step, proc);
|
||||
return proc->PostStepDoIt(track, step);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,25 +42,8 @@
|
||||
#ifndef G4OpticalPhysics_h
|
||||
#define G4OpticalPhysics_h 1
|
||||
|
||||
#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 G4OpWLS2;
|
||||
class G4OpRayleigh;
|
||||
class G4OpMieHG;
|
||||
class G4OpBoundaryProcess;
|
||||
class G4OpAbsorption;
|
||||
#include "G4OpticalParameters.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -70,6 +53,7 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
|
||||
G4OpticalPhysics(G4int verbose = 0, const G4String& name = "Optical");
|
||||
virtual ~G4OpticalPhysics();
|
||||
virtual void PrintStatistics() const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -84,10 +68,13 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
|
||||
public:
|
||||
|
||||
// configure G4OpticalPhysics builder
|
||||
void Configure(G4OpticalProcessIndex, G4bool );
|
||||
// DEPRECATED
|
||||
// the methods below are kept for backwards compatibility, and are to be
|
||||
// removed in future. Please use the methods in
|
||||
// G4OpticalParameters instead.
|
||||
|
||||
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool );
|
||||
void Configure(G4OpticalProcessIndex, G4bool);
|
||||
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool);
|
||||
|
||||
// Cerenkov
|
||||
void SetMaxNumPhotonsPerStep(G4int);
|
||||
@@ -97,28 +84,28 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
void SetCerenkovVerbosity(G4int);
|
||||
|
||||
// Scintillation
|
||||
void SetScintillationYieldFactor(G4double );
|
||||
void SetScintillationExcitationRatio(G4double );
|
||||
void SetScintillationByParticleType(G4bool );
|
||||
void SetScintillationTrackInfo(G4bool );
|
||||
void SetScintillationYieldFactor(G4double);
|
||||
void SetScintillationExcitationRatio(G4double);
|
||||
void SetScintillationByParticleType(G4bool);
|
||||
void SetScintillationTrackInfo(G4bool);
|
||||
void SetScintillationTrackSecondariesFirst(G4bool);
|
||||
void SetFiniteRiseTime(G4bool );
|
||||
void SetScintillationStackPhotons(G4bool );
|
||||
void SetFiniteRiseTime(G4bool);
|
||||
void SetScintillationStackPhotons(G4bool);
|
||||
void SetScintillationVerbosity(G4int);
|
||||
void SetScintillationEnhancedTimeConstants(G4bool);
|
||||
//void AddScintillationSaturation(G4EmSaturation* );
|
||||
|
||||
// WLS
|
||||
void SetWLSTimeProfile(G4String );
|
||||
void SetWLSTimeProfile(G4String);
|
||||
void SetWLSVerbosity(G4int);
|
||||
|
||||
// WLS2
|
||||
void SetWLS2TimeProfile(G4String );
|
||||
void SetWLS2TimeProfile(G4String);
|
||||
void SetWLS2Verbosity(G4int);
|
||||
|
||||
|
||||
//boundary
|
||||
void SetBoundaryVerbosity(G4int);
|
||||
void SetInvokeSD(G4bool );
|
||||
void SetInvokeSD(G4bool);
|
||||
|
||||
void SetAbsorptionVerbosity(G4int);
|
||||
void SetRayleighVerbosity(G4int);
|
||||
@@ -126,85 +113,8 @@ class G4OpticalPhysics : public G4VPhysicsConstructor
|
||||
|
||||
private:
|
||||
|
||||
// methods
|
||||
void PrintStatistics() const;
|
||||
void PrintWarning(G4ExceptionDescription&) const;
|
||||
|
||||
// messenger
|
||||
G4OpticalPhysicsMessenger* fMessenger;
|
||||
|
||||
// The vector of process configuration
|
||||
std::vector<G4bool> fProcessUse;
|
||||
|
||||
// The vector of track secondaries options;
|
||||
// the option to track secondaries before finishing their parent track
|
||||
std::vector<G4bool> fProcessTrackSecondariesFirst;
|
||||
|
||||
// scintillation /////////////////
|
||||
static G4ThreadLocal G4Scintillation* fScintillationProcess;
|
||||
/// scintillation yield factor
|
||||
G4double fYieldFactor;
|
||||
|
||||
/// scintillation excitation ratio
|
||||
/// Note: this is to be removed in the next major release.
|
||||
/// Use material properties SCINTILLATIONYIELD1, 2, 3 instead
|
||||
G4double fExcitationRatio;
|
||||
|
||||
/// option to set a finite rise-time; Note: the G4Scintillation
|
||||
/// process expects the user to have set the constant material
|
||||
/// property FAST/SLOWSCINTILLATIONRISETIME
|
||||
G4bool fFiniteRiseTime;
|
||||
|
||||
/// option to allow for the light yield to be a function of
|
||||
/// particle type and deposited energy in case of non-linear
|
||||
/// light emission in scintillators
|
||||
G4bool fScintillationByParticleType;
|
||||
|
||||
/// option to allow for G4ScintillationTrackInformation
|
||||
/// to be attached to a scintillation photon's track
|
||||
G4bool fScintillationTrackInfo;
|
||||
|
||||
/// option to allow stacking of secondary Scintillation photons
|
||||
G4bool fScintillationStackPhotons;
|
||||
|
||||
/// new in version 10.7; allow > 2 time constants, and > 1 time
|
||||
/// constant for scintillation by particle type
|
||||
G4bool fScintillationEnhancedTimeConstants;
|
||||
|
||||
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;
|
||||
|
||||
///////////////// WLS2
|
||||
static G4ThreadLocal G4OpWLS2* fWLS2Process;
|
||||
G4String fWLS2TimeProfileName;
|
||||
G4int fWLS2Verbosity;
|
||||
|
||||
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......
|
||||
|
||||
-177
@@ -1,177 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4OpticalPhysicsMessenger
|
||||
//
|
||||
// Author: P.Gumplinger 30.09.2009
|
||||
//
|
||||
// Modified: P.Gumplinger 29.09.2011
|
||||
// (based on code from I. Hrivnacova)
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
// This class defines commands for the optical physics
|
||||
//
|
||||
|
||||
#ifndef G4OpticalPhysicsMessenger_h
|
||||
#define G4OpticalPhysicsMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "G4OpticalProcessIndex.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VProcess;
|
||||
class G4OpticalPhysics;
|
||||
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithABool;
|
||||
class G4UIcmdWithADouble;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcommand;
|
||||
|
||||
// Messenger class that defines commands for the optical physics
|
||||
|
||||
class G4OpticalPhysicsMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
|
||||
G4OpticalPhysicsMessenger(G4OpticalPhysics*);
|
||||
virtual ~G4OpticalPhysicsMessenger();
|
||||
|
||||
// methods
|
||||
virtual void SetNewValue(G4UIcommand*, G4String);
|
||||
|
||||
private:
|
||||
|
||||
/// Not implemented
|
||||
G4OpticalPhysicsMessenger();
|
||||
/// Not implemented
|
||||
G4OpticalPhysicsMessenger(const G4OpticalPhysicsMessenger& right);
|
||||
/// Not implemented
|
||||
G4OpticalPhysicsMessenger& operator=(const G4OpticalPhysicsMessenger& right);
|
||||
|
||||
void Deprecated(void);
|
||||
|
||||
// data members
|
||||
|
||||
/// associated class
|
||||
G4OpticalPhysics* fOpticalPhysics;
|
||||
|
||||
/// command directory
|
||||
G4UIdirectory* fDir;
|
||||
G4UIdirectory* fDir2;
|
||||
|
||||
/// selected optical process
|
||||
G4OpticalProcessIndex fSelectedProcessIndex;
|
||||
|
||||
/// selectOpProcess command
|
||||
G4UIcommand* fActivateProcessCmd;
|
||||
|
||||
/// setProcessVerbose command
|
||||
G4UIcmdWithAnInteger* fVerboseCmd;
|
||||
|
||||
/// setTrackSecondariesFirst command
|
||||
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* fScintFiniteRiseTimeCmd;
|
||||
G4UIcmdWithABool* fScintFiniteRiseTime1Cmd;
|
||||
|
||||
// setEnhancedTimeConstants commnad
|
||||
G4UIcmdWithABool* fScintEnhancedTimeConstantsCmd;
|
||||
|
||||
G4UIcmdWithAnInteger* fScintVerbosityCmd;
|
||||
|
||||
// WLS
|
||||
|
||||
/// setWLSTimeProfile command
|
||||
G4UIcmdWithAString* fWLSTimeProfileCmd;
|
||||
G4UIcmdWithAString* fWLSTimeProfile1Cmd;
|
||||
G4UIcmdWithAnInteger* fWLSVerbosityCmd;
|
||||
|
||||
// WLS2
|
||||
|
||||
/// setWLS2TimeProfile command
|
||||
G4UIcmdWithAString* fWLS2TimeProfileCmd;
|
||||
G4UIcmdWithAnInteger* fWLS2VerbosityCmd;
|
||||
|
||||
/// setInvokeSD command
|
||||
G4UIcmdWithABool* fBoundaryInvokeSDCmd;
|
||||
G4UIcmdWithABool* fBoundaryInvokeSD1Cmd;
|
||||
G4UIcmdWithAnInteger* fBoundaryVerbosityCmd;
|
||||
|
||||
G4UIcmdWithAnInteger* fAbsorptionVerbosityCmd;
|
||||
G4UIcmdWithAnInteger* fRayleighVerbosityCmd;
|
||||
G4UIcmdWithAnInteger* fMieVerbosityCmd;
|
||||
|
||||
};
|
||||
|
||||
#endif // G4OpticalPhysicsMessenger_h
|
||||
@@ -1,86 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4OpticalProcessIndex
|
||||
//
|
||||
// Author: P.Gumplinger 29.09.2011
|
||||
// (based on code from I. Hrivnacova)
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
// Enumeration for processes defined in G4OpticalPhysics
|
||||
//
|
||||
// The enumeration constants are used as the indices of the instatianted
|
||||
// processes in the vector of processes; needed to configure G4OpticalPhysics
|
||||
// (PhysicsList) according to selected process choices.
|
||||
//
|
||||
|
||||
#ifndef G4OpticalProcessIndex_h
|
||||
#define G4OpticalProcessIndex_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
enum G4OpticalProcessIndex {
|
||||
kCerenkov, ///< Cerenkov process index
|
||||
kScintillation, ///< Scintillation process index
|
||||
kAbsorption, ///< Absorption process index
|
||||
kRayleigh, ///< Rayleigh scattering process index
|
||||
kMieHG, ///< Mie scattering process index
|
||||
kBoundary, ///< Boundary process index
|
||||
kWLS, ///< Wave Length Shifting process index
|
||||
kWLS2, ///< Second Wave Length Shifting process index
|
||||
kNoProcess ///< Number of processes, no selected process
|
||||
};
|
||||
|
||||
/// Return the name for a given optical process index
|
||||
G4String G4OpticalProcessName(G4int );
|
||||
|
||||
////////////////////
|
||||
// Inline methods
|
||||
////////////////////
|
||||
|
||||
inline
|
||||
G4String G4OpticalProcessName(G4int processNumber)
|
||||
{
|
||||
switch ( processNumber ) {
|
||||
case kCerenkov: return "Cerenkov";
|
||||
case kScintillation: return "Scintillation";
|
||||
case kAbsorption: return "OpAbsorption";
|
||||
case kRayleigh: return "OpRayleigh";
|
||||
case kMieHG: return "OpMieHG";
|
||||
case kBoundary: return "OpBoundary";
|
||||
case kWLS: return "OpWLS";
|
||||
case kWLS2: return "OpWLS2";
|
||||
default: return "NoProcess";
|
||||
}
|
||||
}
|
||||
|
||||
#endif // G4OpticalProcessIndex_h
|
||||
Reference in New Issue
Block a user