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 #include "Geant4/G4String.hh"
61 #include "Geant4/G4Types.hh"
62 #include "Geant4/G4VPhysicsConstructor.hh"
63 class G4Cerenkov;
64 class G4OpAbsorption;
65 class G4OpBoundaryProcess;
66 class G4OpRayleigh;
67 class G4OpWLS;
68 class G4Scintillation;
69 
70 namespace detinfo {
71  class DetectorPropertiesData;
72 }
73 
74 namespace larg4 {
75 
76  class OpBoundaryProcessSimple;
77 
78  class OpticalPhysics : public G4VPhysicsConstructor {
79  public:
81  G4int ver = 0,
82  G4String const& name = "G4Optical");
83 
84  private:
85  void ConstructParticle() override;
86  void ConstructProcess() override;
87 
89  G4Cerenkov* fTheCerenkovProcess;
90  G4Scintillation* fTheScintillationProcess;
91  G4OpAbsorption* fTheAbsorptionProcess;
94  G4OpBoundaryProcess* fTheBoundaryProcess_g4;
95  G4OpWLS* fTheWLSProcess;
96  };
97 
98 }
99 #endif
static QCString name
Definition: declinfo.cpp:673
Geant4 interface.
Discrete process for reflection and diffusion at optical interfaces.
OpBoundaryProcessSimple * fTheBoundaryProcess
G4Cerenkov * fTheCerenkovProcess
General LArSoft Utilities.
G4OpBoundaryProcess * fTheBoundaryProcess_g4
G4OpAbsorption * fTheAbsorptionProcess
G4OpRayleigh * fTheRayleighScatteringProcess
G4Scintillation * fTheScintillationProcess