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 | #ifndef hTestPhysicsList_h |
---|
27 | #define hTestPhysicsList_h 1 |
---|
28 | |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // ClassName: hTestPhysicsList |
---|
32 | // |
---|
33 | // Description: hTest PhysicsList |
---|
34 | // |
---|
35 | // Authors: 07.04.01 V.Ivanchenko |
---|
36 | // |
---|
37 | // Modified: |
---|
38 | // |
---|
39 | //---------------------------------------------------------------------------- |
---|
40 | // |
---|
41 | |
---|
42 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
43 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
44 | |
---|
45 | #include "G4VUserPhysicsList.hh" |
---|
46 | #include "hTestDetectorConstruction.hh" |
---|
47 | #include "hTestVEMPhysicsList.hh" |
---|
48 | #include "hTestVHadronPhysicsList.hh" |
---|
49 | #include "globals.hh" |
---|
50 | |
---|
51 | class hTestPhysicsListMessenger; |
---|
52 | |
---|
53 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
54 | |
---|
55 | class hTestPhysicsList: public G4VUserPhysicsList |
---|
56 | { |
---|
57 | public: // Without description |
---|
58 | hTestPhysicsList(const hTestDetectorConstruction*); |
---|
59 | ~hTestPhysicsList(); |
---|
60 | |
---|
61 | public: // Without description |
---|
62 | void SetGammaCut(G4double); |
---|
63 | void SetElectronCut(G4double); |
---|
64 | void SetProtonCut(G4double); |
---|
65 | void SetElectronCutByEnergy(G4double); |
---|
66 | void SetLowEnergyLimit(G4double); |
---|
67 | void SetHighEnergyLimit(G4double); |
---|
68 | void SetMaxStep(G4double); |
---|
69 | void SetEMPhysicsList(const G4String&); |
---|
70 | void SetHadronPhysicsList(const G4String&); |
---|
71 | void SetDecay(const G4String& name) {decayPhysics = name;}; |
---|
72 | inline void SetVerbose(G4int val) {verbose = val;}; |
---|
73 | inline G4int GetVerbose() const {return verbose;}; |
---|
74 | inline G4double GetMaxChargedStep() const {return maxChargedStep;}; |
---|
75 | |
---|
76 | protected: |
---|
77 | // Construct particle and physics |
---|
78 | void ConstructParticle(); |
---|
79 | void ConstructProcess(); |
---|
80 | |
---|
81 | private: |
---|
82 | void InitializeMe(); |
---|
83 | void SetCuts(); |
---|
84 | |
---|
85 | // these methods Construct particles |
---|
86 | void ConstructMyBosons(); |
---|
87 | void ConstructMyLeptons(); |
---|
88 | void ConstructMyMesons(); |
---|
89 | void ConstructMyBarions(); |
---|
90 | void ConstructMyIons(); |
---|
91 | |
---|
92 | // these methods Construct physics processes and register them |
---|
93 | void ConstructDecay(); |
---|
94 | |
---|
95 | private: |
---|
96 | |
---|
97 | const hTestDetectorConstruction* pDet; |
---|
98 | hTestPhysicsListMessenger* theMessenger; |
---|
99 | hTestVEMPhysicsList* theEMList; |
---|
100 | hTestVHadronPhysicsList* theHadList; |
---|
101 | |
---|
102 | G4double cutForGamma; |
---|
103 | G4double cutForElectron; |
---|
104 | G4double cutForProton; |
---|
105 | G4double maxChargedStep; |
---|
106 | G4double lowEnergyLimit; |
---|
107 | G4double highEnergyLimit; |
---|
108 | |
---|
109 | G4String emPhysics; |
---|
110 | G4String hadronPhysics; |
---|
111 | G4String decayPhysics; |
---|
112 | |
---|
113 | G4int verbose; |
---|
114 | G4bool physicsIsDefined; |
---|
115 | }; |
---|
116 | |
---|
117 | #endif |
---|
118 | |
---|
119 | |
---|
120 | |
---|