All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FastOpticalPhysics.h
Go to the documentation of this file.
1 // Modified for LArG4 by Ben Jones, MIT, Nov 2012
2 //
3 // Thisclass is based upon thedefaultGeant4 optical physics constructor.
4 // However, forfast optical physics inLArSoft:
5 //
6 // - The default geant4 scintillation process is swapped for the LArG4 fast
7 // scintillation process
8 //
9 // - Cerenkov light (still slow) can beenabledor disabled as required
10 //
11 // - The default geant4reflection process is swapped for a simpler
12 // custom boundary process in LArG4
13 //
14 // Parameters relating to the physics in this constructor can be set
15 // in the Utilities/LArParameters service.
16 //
17 //
18 // ********************************************************************
19 // * License and Disclaimer *
20 // * *
21 // * The Geant4 software is copyright of the Copyright Holders of *
22 // * the Geant4 Collaboration. It is provided under the terms and *
23 // * conditions of the Geant4 Software License, included in the file *
24 // * LICENSE and available at http://cern.ch/geant4/license . These *
25 // * include a list of copyright holders. *
26 // * *
27 // * Neither the authors of this software system, nor their employing *
28 // * institutes,nor the agencies providing financial support for this *
29 // * work make any representation or warranty, express or implied, *
30 // * regarding this software system or assume any liability for its *
31 // * use. Please see the license in the file LICENSE and URL above *
32 // * for the full disclaimer and the limitation of liability. *
33 // * *
34 // * This code implementation is the result of the scientific and *
35 // * technical work of the GEANT4 collaboration. *
36 // * By using, copying, modifying or distributing the software (or *
37 // * any work based on the software) you agree to acknowledge its *
38 // * use in resulting scientific publications, and indicate your *
39 // * acceptance of all terms of the Geant4 Software license. *
40 // ********************************************************************
41 //
42 //
43 // GEANT4 tag $Name: $
44 //
45 //---------------------------------------------------------------------------
46 //
47 // ClassName: FastOpticalPhysics
48 //
49 // Author: V.Ivanchenko 09.11.2005
50 //
51 // Modified:
52 // 05.12.2005 V.Ivanchenko add controlled verbosity
53 // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
54 //
55 //----------------------------------------------------------------------------
56 //
57 // This class provides construction of default EM standard physics
58 //
59 
60 #ifndef FastOpticalPhysics_h
61 #define FastOpticalPhysics_h 1
62 
63 #include "Geant4/G4String.hh"
64 #include "Geant4/G4Types.hh"
65 #include "Geant4/G4VPhysicsConstructor.hh"
66 
67 #include <memory>
68 
69 class G4Cerenkov;
70 class G4OpAbsorption;
71 class G4OpWLS;
72 class G4OpRayleigh;
73 
74 namespace larg4 {
75 
76  class OpFastScintillation;
77  class OpBoundaryProcessSimple;
78 
79  class FastOpticalPhysics : public G4VPhysicsConstructor {
80  public:
81  FastOpticalPhysics(G4int ver = 0, const G4String& name = "FastOptical");
82 
83  void ConstructParticle() override;
84  void ConstructProcess() override;
85 
86  private:
87  G4Cerenkov* fTheCerenkovProcess;
88  std::unique_ptr<OpFastScintillation> fTheScintillationProcess;
89  G4OpAbsorption* fTheAbsorptionProcess;
92  G4OpWLS* fTheWLSProcess;
93  };
94 
95 }
96 
97 #endif
G4OpAbsorption * fTheAbsorptionProcess
Discrete process for reflection and diffusion at optical interfaces.
std::unique_ptr< OpFastScintillation > fTheScintillationProcess
OpBoundaryProcessSimple * fTheBoundaryProcess
G4OpRayleigh * fTheRayleighScatteringProcess
FastOpticalPhysics(G4int ver=0, const G4String &name="FastOptical")
then echo fcl name