source: trunk/source/physics_lists/builders/include/G4OpticalPhysics.hh@ 1351

Last change on this file since 1351 was 1340, checked in by garnier, 15 years ago

update ti head

File size: 5.5 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28//---------------------------------------------------------------------------
29//
30// ClassName: G4OpticalPhysics
31//
32// Author: P.Gumplinger 30.09.2009
33//
34// Modified:
35//
36//----------------------------------------------------------------------------
37//
38// This class provides construction of default optical physics
39//
40
41#ifndef G4OpticalPhysics_h
42#define G4OpticalPhysics_h 1
43
44#include "globals.hh"
45
46#include "G4VPhysicsConstructor.hh"
47
48#include "G4OpticalPhysicsMessenger.hh"
49
50#include "G4OpWLS.hh"
51#include "G4Scintillation.hh"
52#include "G4Cerenkov.hh"
53
54#include "G4OpAbsorption.hh"
55#include "G4OpRayleigh.hh"
56#include "G4OpMieHG.hh"
57#include "G4OpBoundaryProcess.hh"
58
59#include "G4OpticalSurface.hh"
60
61//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63class G4OpticalPhysics : public G4VPhysicsConstructor
64{
65 public:
66
67 G4OpticalPhysics(G4int verbose = 0);
68 G4OpticalPhysics(G4int verbose, const G4String& name);
69 virtual ~G4OpticalPhysics();
70
71 // construct particle and physics
72 virtual void ConstructParticle();
73 virtual void ConstructProcess();
74
75 private:
76
77 /// Not implemented
78 G4OpticalPhysics(const G4OpticalPhysics& right);
79 /// Not implemented
80 G4OpticalPhysics& operator=(const G4OpticalPhysics& right);
81
82 public:
83
84 // get methods
85 virtual G4Scintillation* GetScintillationProcess()
86 { return fScintillationProcess; }
87 virtual G4Cerenkov* GetCerenkovProcess()
88 { return fCerenkovProcess; }
89 virtual G4OpWLS* GetOpWLSProcess() { return fOpWLSProcess; }
90
91 virtual G4OpAbsorption* GetOpAbsorptionProcess()
92 { return fOpAbsorptionProcess; }
93 virtual G4OpRayleigh* GetOpRayleighProcess()
94 { return fOpRayleighScatteringProcess; }
95 virtual G4OpMieHG* GetOpMieHGProcess()
96 { return fOpMieHGScatteringProcess; }
97 virtual G4OpBoundaryProcess* GetOpBoundaryProcess()
98 { return fOpBoundaryProcess; }
99
100 // set methods
101
102 void SetMaxNumPhotonsPerStep(G4int );
103 void SetMaxBetaChangePerStep(G4double );
104 void SetScintillationYieldFactor(G4double );
105 void SetScintillationExcitationRatio(G4double );
106 void SetOpticalSurfaceModel(G4OpticalSurfaceModel );
107
108 void SetWLSTimeProfile(G4String );
109 void SetScintillationByParticleType(G4bool );
110 void AddScintillationSaturation(G4EmSaturation* );
111
112
113 void SetTrackSecondariesFirst(G4bool );
114
115 private:
116
117 // data members
118
119 G4bool wasActivated;
120
121 G4OpticalPhysicsMessenger* fMessenger;
122
123 G4Scintillation* fScintillationProcess;
124 G4Cerenkov* fCerenkovProcess;
125 G4OpWLS* fOpWLSProcess;
126
127 G4OpAbsorption* fOpAbsorptionProcess;
128 G4OpRayleigh* fOpRayleighScatteringProcess;
129 G4OpMieHG* fOpMieHGScatteringProcess;
130 G4OpBoundaryProcess* fOpBoundaryProcess;
131
132 /// max number of Cerenkov photons per step
133 G4int fMaxNumPhotons;
134
135 /// max change of beta per step
136 G4double fMaxBetaChange;
137
138 /// scintillation yield factor
139 G4double fYieldFactor;
140
141 /// scintillation excitation ratio
142 G4double fExcitationRatio;
143
144 /// the optical surface model (glisur or unified)
145 G4OpticalSurfaceModel fSurfaceModel;
146
147 /// the WLS process time profile
148 G4String fProfile;
149
150 /// option to track secondaries before finishing their parent track
151 G4bool fTrackSecondariesFirst;
152
153 /// option to allow for the light yield to be a function of
154 /// particle type and deposited energy in case of non-linear
155 /// light emission in scintillators
156 G4bool fScintillationByParticleType;
157
158};
159
160//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
161
162#endif
Note: See TracBrowser for help on using the repository browser.