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 | // $Id: G4QPhotoNuclearPhysics.hh,v 1.2 2009/11/16 19:12:10 mkossov Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
28 | // |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // ClassName: G4QPhotoNuclearPhysics |
---|
32 | // |
---|
33 | // Author: 2009 M. V. Kosov |
---|
34 | // |
---|
35 | // Modified: |
---|
36 | // |
---|
37 | //---------------------------------------------------------------------------- |
---|
38 | // |
---|
39 | |
---|
40 | #ifndef G4QPhotoNuclearPhysics_h |
---|
41 | #define G4QPhotoNuclearPhysics_h 1 |
---|
42 | |
---|
43 | #include "G4VPhysicsConstructor.hh" |
---|
44 | #include "globals.hh" |
---|
45 | |
---|
46 | #include "G4QMessenger.hh" |
---|
47 | |
---|
48 | #include "G4QSynchRad.hh" |
---|
49 | #include "G4QInelastic.hh" |
---|
50 | |
---|
51 | #include "G4ParticleDefinition.hh" |
---|
52 | #include "G4ParticleTable.hh" |
---|
53 | #include "G4Gamma.hh" |
---|
54 | #include "G4Electron.hh" |
---|
55 | #include "G4Positron.hh" |
---|
56 | #include "G4MuonPlus.hh" |
---|
57 | #include "G4MuonMinus.hh" |
---|
58 | #include "G4TauPlus.hh" |
---|
59 | #include "G4TauMinus.hh" |
---|
60 | #include "G4MesonConstructor.hh" |
---|
61 | #include "G4BaryonConstructor.hh" |
---|
62 | #include "G4ProcessManager.hh" |
---|
63 | |
---|
64 | |
---|
65 | class G4QPhotoNuclearPhysics : public G4VPhysicsConstructor |
---|
66 | { |
---|
67 | public: |
---|
68 | G4QPhotoNuclearPhysics(const G4String& name = "CHIPS photo-nuclear"); |
---|
69 | virtual ~G4QPhotoNuclearPhysics(); |
---|
70 | |
---|
71 | void ConstructParticle(); |
---|
72 | void ConstructProcess(); |
---|
73 | |
---|
74 | G4String GetSynchRadOnOff() {return synchrOn ? "on" : "off";} |
---|
75 | G4String GetGammaNuclearOnOff() {return gamNucOn ? "on" : "off";} |
---|
76 | G4String GetElPosNuclearOnOff() {return eleNucOn ? "on" : "off";} |
---|
77 | G4String GetMuonNuclearOnOff() {return muoNucOn ? "on" : "off";} |
---|
78 | G4String GetTauNuclearOnOff() {return tauNucOn ? "on" : "off";} |
---|
79 | |
---|
80 | void SetSynchRadOnOff(G4String& aSwitch); |
---|
81 | void SetGammaNuclearOnOff(G4String& aSwitch); |
---|
82 | void SetElPosNuclearOnOff(G4String& aSwitch); |
---|
83 | void SetMuonNuclearOnOff(G4String& aSwitch); |
---|
84 | void SetTauNuclearOnOff(G4String& aSwitch); |
---|
85 | void SetMinGammaSR(G4double newValue); |
---|
86 | void SetPhotoNucBias(G4double newValue); |
---|
87 | |
---|
88 | private: |
---|
89 | |
---|
90 | void BuildSynchRad(); |
---|
91 | void BuildGammaNuclear(); |
---|
92 | void BuildElectroNuclear(); |
---|
93 | void BuildMuonNuclear(); |
---|
94 | void BuildTauNuclear(); |
---|
95 | |
---|
96 | G4bool wasBuilt; // Flag of forbidden reactivation of processes |
---|
97 | G4bool SynchRActivated; // Flag of finished activation of SynchroRadiation |
---|
98 | G4bool GamNucActivated; // Flag of finished activation of gamma-nuclear |
---|
99 | G4bool EleNucActivated; // Flag of finished activation of electron-nuclear |
---|
100 | G4bool MuoNucActivated; // Flag of finished activation of muon-nuclear |
---|
101 | G4bool TauNucActivated; // Flag of finished activation of tau-nuclear |
---|
102 | G4bool synchrOn; // Switch flag for Synchrotron Radiation process |
---|
103 | G4double synchrMinGam; // MinimumGamma for SynchrotronRadiation activation |
---|
104 | G4bool gamNucOn; // Switch flag for the gamma-nuclear process |
---|
105 | G4bool eleNucOn; // Switch flag for the electron-nuclear process |
---|
106 | G4bool muoNucOn; // Switch flag for the electron-nuclear process |
---|
107 | G4bool tauNucOn; // Switch flag for the electron-nuclear process |
---|
108 | G4double photoNucBias; // Biasing factor for photo-nuclear processes |
---|
109 | |
---|
110 | G4QInelastic* inelastic; |
---|
111 | G4QSynchRad* synchrad; |
---|
112 | G4QMessenger* theMessenger; |
---|
113 | }; |
---|
114 | |
---|
115 | #endif |
---|