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

Last change on this file since 1329 was 1315, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 5.1 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 "G4OpBoundaryProcess.hh"
57
58#include "G4OpticalSurface.hh"
59
60//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
61
62class G4OpticalPhysics : public G4VPhysicsConstructor
63{
64 public:
65
66 G4OpticalPhysics(G4int verbose = 0);
67 G4OpticalPhysics(G4int verbose, const G4String& name);
68 virtual ~G4OpticalPhysics();
69
70 protected:
71
72 // construct particle and physics
73 virtual void ConstructParticle();
74 virtual void ConstructProcess();
75
76 private:
77
78 /// Not implemented
79 G4OpticalPhysics(const G4OpticalPhysics& right);
80 /// Not implemented
81 G4OpticalPhysics& operator=(const G4OpticalPhysics& right);
82
83 public:
84
85 // get methods
86 virtual G4Scintillation* GetScintillationProcess()
87 { return fScintillationProcess; }
88 virtual G4Cerenkov* GetCerenkovProcess() { 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 G4OpBoundaryProcess* GetOpBoundaryProcess()
96 { return fOpBoundaryProcess; }
97
98 // set methods
99
100 void SetMaxNumPhotonsPerStep(G4int );
101 void SetMaxBetaChangePerStep(G4double );
102 void SetScintillationYieldFactor(G4double );
103 void SetScintillationExcitationRatio(G4double );
104 void SetOpticalSurfaceModel(G4OpticalSurfaceModel );
105
106 void SetWLSTimeProfile(G4String );
107 void AddScintillationSaturation(G4EmSaturation* );
108
109 void SetTrackSecondariesFirst(G4bool );
110
111 private:
112
113 // data members
114
115 G4bool wasActivated;
116
117 G4OpticalPhysicsMessenger* fMessenger;
118
119 G4Scintillation* fScintillationProcess;
120 G4Cerenkov* fCerenkovProcess;
121 G4OpWLS* fOpWLSProcess;
122
123 G4OpAbsorption* fOpAbsorptionProcess;
124 G4OpRayleigh* fOpRayleighScatteringProcess;
125 G4OpBoundaryProcess* fOpBoundaryProcess;
126
127 /// max number of Cerenkov photons per step
128 G4int fMaxNumPhotons;
129
130 /// max change of beta per step
131 G4double fMaxBetaChange;
132
133 /// scintillation yield factor
134 G4double fYieldFactor;
135
136 /// scintillation excitation ratio
137 G4double fExcitationRatio;
138
139 /// the optical surface model (glisur or unified)
140 G4OpticalSurfaceModel fSurfaceModel;
141
142 /// the WLS process time profile
143 G4String fProfile;
144
145 /// option to track secondaries before finishing their parent track
146 G4bool fTrackSecondariesFirst;
147
148};
149
150//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
151
152#endif
Note: See TracBrowser for help on using the repository browser.