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

Last change on this file since 1228 was 1203, checked in by garnier, 15 years ago

update CVS

File size: 5.0 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, const G4String& name = "Optical");
67    virtual ~G4OpticalPhysics();
68
69  protected:
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() { return fCerenkovProcess; }
88    virtual G4OpWLS* GetOpWLSProcess() { return fOpWLSProcess; }
89
90    virtual G4OpAbsorption* GetOpAbsorptionProcess()
91                                         { return fOpAbsorptionProcess; }
92    virtual G4OpRayleigh* GetOpRayleighProcess()
93                                       { return fOpRayleighScatteringProcess; }
94    virtual G4OpBoundaryProcess* GetOpBoundaryProcess()
95                                         { return fOpBoundaryProcess; }
96
97    // set methods
98
99    void SetMaxNumPhotonsPerStep(G4int );
100    void SetMaxBetaChangePerStep(G4double );
101    void SetScintillationYieldFactor(G4double );
102    void SetScintillationExcitationRatio(G4double );
103    void SetOpticalSurfaceModel(G4OpticalSurfaceModel );
104
105    void SetWLSTimeProfile(G4String );
106    void AddScintillationSaturation(G4EmSaturation* );
107
108    void SetTrackSecondariesFirst(G4bool );
109
110  private:
111
112    // data members
113 
114    G4bool wasActivated;
115
116    G4OpticalPhysicsMessenger* fMessenger;
117
118    G4Scintillation*     fScintillationProcess;
119    G4Cerenkov*          fCerenkovProcess;
120    G4OpWLS*             fOpWLSProcess;
121
122    G4OpAbsorption*      fOpAbsorptionProcess;
123    G4OpRayleigh*        fOpRayleighScatteringProcess;
124    G4OpBoundaryProcess* fOpBoundaryProcess;
125
126    /// max number of Cerenkov photons per step
127    G4int                       fMaxNumPhotons;
128
129    /// max change of beta per step
130    G4double                    fMaxBetaChange;
131
132    /// scintillation yield factor
133    G4double                    fYieldFactor;
134
135    /// scintillation excitation ratio
136    G4double                    fExcitationRatio;
137
138    /// the optical surface model (glisur or unified)
139    G4OpticalSurfaceModel       fSurfaceModel;
140
141    /// the WLS process time profile
142    G4String                    fProfile;
143
144    /// option to track secondaries before finishing their parent track
145    G4bool                      fTrackSecondariesFirst;
146
147};
148
149//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
150
151#endif
Note: See TracBrowser for help on using the repository browser.