LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
OpticalPhysics.hh
Go to the documentation of this file.
1 // Modified for LArG4 by Ben Jones, MIT, Sept 2009
2 //
3 // This class is based upon the default Geant4 optical physics constructor.
4 // However, for optical physics in LArSoft:
5 //
6 // - Cerenkov light can be enabled or disabled as required
7 //
8 // - The default geant4 reflection process is swapped for a simpler
9 // custom boundary process in LArG4
10 //
11 // Parameters relating to the physics in this constructor can be set
12 // in the Utilities/LArParameters service.
13 //
14 //
15 // ********************************************************************
16 // * License and Disclaimer *
17 // * *
18 // * The Geant4 software is copyright of the Copyright Holders of *
19 // * the Geant4 Collaboration. It is provided under the terms and *
20 // * conditions of the Geant4 Software License, included in the file *
21 // * LICENSE and available at http://cern.ch/geant4/license . These *
22 // * include a list of copyright holders. *
23 // * *
24 // * Neither the authors of this software system, nor their employing *
25 // * institutes,nor the agencies providing financial support for this *
26 // * work make any representation or warranty, express or implied, *
27 // * regarding this software system or assume any liability for its *
28 // * use. Please see the license in the file LICENSE and URL above *
29 // * for the full disclaimer and the limitation of liability. *
30 // * *
31 // * This code implementation is the result of the scientific and *
32 // * technical work of the GEANT4 collaboration. *
33 // * By using, copying, modifying or distributing the software (or *
34 // * any work based on the software) you agree to acknowledge its *
35 // * use in resulting scientific publications, and indicate your *
36 // * acceptance of all terms of the Geant4 Software license. *
37 // ********************************************************************
38 //
39 //
40 // GEANT4 tag $Name: $
41 //
42 //---------------------------------------------------------------------------
43 //
44 // ClassName: OpticalPhysics
45 //
46 // Author: V.Ivanchenko 09.11.2005
47 //
48 // Modified:
49 // 05.12.2005 V.Ivanchenko add controlled verbosity
50 // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
51 //
52 //----------------------------------------------------------------------------
53 //
54 // This class provides construction of default EM standard physics
55 //
56 
57 #ifndef OpticalPhysics_h
58 #define OpticalPhysics_h 1
59 
60 
61 #include "Geant4/G4VPhysicsConstructor.hh"
62 #include "Geant4/globals.hh"
63 #include "Geant4/G4OpBoundaryProcess.hh"
64 
65 
66 class G4Cerenkov;
67 class G4Scintillation;
68 class G4OpAbsorption;
69 class G4OpWLS;
70 class G4OpRayleigh;
71 
72 #if defined __clang__
73  #pragma clang diagnostic push
74  #pragma clang diagnostic ignored "-Wunused-private-field"
75 #endif
76 
77 namespace larg4 {
78 
79  class OpBoundaryProcessSimple;
80 
81  class OpticalPhysics : public G4VPhysicsConstructor
82  {
83  public:
84  OpticalPhysics(G4int ver = 0, const G4String& name = "G4Optical");
85  virtual ~OpticalPhysics();
86 
87  virtual void ConstructParticle();
88  virtual void ConstructProcess();
89 
90  private:
91  G4int verbose;
92  G4Cerenkov* fTheCerenkovProcess;
93  G4Scintillation* fTheScintillationProcess;
94  G4OpAbsorption* fTheAbsorptionProcess;
97  G4OpBoundaryProcess* fTheBoundaryProcess_g4;
98  G4OpWLS * fTheWLSProcess;
99  };
100 
101 }
102 #if defined __clang__
103  #pragma clang diagnostic pop
104 #endif
105 
106 #endif
107 
108 
109 
110 
111 
112 
Geant4 interface.
Discrete process for reflection and diffusion at optical interfaces.
OpticalPhysics(G4int ver=0, const G4String &name="G4Optical")
OpBoundaryProcessSimple * fTheBoundaryProcess
G4Cerenkov * fTheCerenkovProcess
G4OpBoundaryProcess * fTheBoundaryProcess_g4
virtual void ConstructParticle()
G4OpAbsorption * fTheAbsorptionProcess
virtual void ConstructProcess()
G4OpRayleigh * fTheRayleighScatteringProcess
G4Scintillation * fTheScintillationProcess