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: G4QDiscProcessMixer.hh,v 1.1 2009/11/17 10:36:54 mkossov Exp $ |
---|
27 | // GEANT4 tag $Name: hadr-chips-V09-03-08 $ |
---|
28 | // |
---|
29 | // ---------------- G4QDiscProcessMixer header ---------------- |
---|
30 | // by Mikhail Kossov, Aug 2007. |
---|
31 | // Header of G4QDiscProcessMixer class of the CHIPS Simulation Branch in GEANT4 |
---|
32 | // ----------------------------------------------------------------------------- |
---|
33 | // Short description: universal mixer of processes (NOT models as in GHAD!) |
---|
34 | // depending on the application energy region (defined by users). |
---|
35 | // ------------------------------------------------------------------------ |
---|
36 | |
---|
37 | #ifndef G4QDiscProcessMixer_hh |
---|
38 | #define G4QDiscProcessMixer_hh |
---|
39 | |
---|
40 | // GEANT4 Headers |
---|
41 | #include "globals.hh" |
---|
42 | #include "G4ios.hh" |
---|
43 | #include "Randomize.hh" |
---|
44 | #include "G4VDiscreteProcess.hh" |
---|
45 | #include "G4Track.hh" |
---|
46 | #include "G4Step.hh" |
---|
47 | #include "G4ParticleDefinition.hh" |
---|
48 | #include "G4Gamma.hh" |
---|
49 | #include "G4DynamicParticle.hh" |
---|
50 | #include "G4QDiscreteProcessVector.hh" |
---|
51 | |
---|
52 | #include <vector> |
---|
53 | |
---|
54 | class G4QDiscProcessMixer : public G4VDiscreteProcess |
---|
55 | { |
---|
56 | public: |
---|
57 | |
---|
58 | // Constructor |
---|
59 | G4QDiscProcessMixer(const G4String& processName = "Mixed Discrete Process", |
---|
60 | const G4ParticleDefinition* proj = G4Gamma::Gamma(), |
---|
61 | G4ProcessType pType = fHadronic ); |
---|
62 | // Destructor |
---|
63 | ~G4QDiscProcessMixer(); |
---|
64 | |
---|
65 | G4bool IsApplicable(const G4ParticleDefinition& particle); |
---|
66 | |
---|
67 | G4double PostStepGetPhysicalInteractionLength(const G4Track& track, |
---|
68 | G4double previousStepSize, |
---|
69 | G4ForceCondition* condition); |
---|
70 | |
---|
71 | G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize, |
---|
72 | G4ForceCondition* condition); |
---|
73 | |
---|
74 | G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); |
---|
75 | |
---|
76 | // DP is the name of the Discrete Process, MaxE is the maximum energy for this process |
---|
77 | // The processes must be defined, starting from high energy processes (MaxE decreasing) |
---|
78 | // The MaxE for the first (highest energy process) is always infinity (automatic) |
---|
79 | // The MinE = MaxE of the lower energy process (MinE=0 for the lowest energy process) |
---|
80 | |
---|
81 | void AddDiscreteProcess(G4VDiscreteProcess* DP, G4double MaxE); |
---|
82 | |
---|
83 | //G4LorentzVector GetEnegryMomentumConservation(); |
---|
84 | |
---|
85 | //G4int GetNumberOfNeutronsInTarget(); |
---|
86 | |
---|
87 | private: |
---|
88 | |
---|
89 | // Hide assignment operator as private |
---|
90 | G4QDiscProcessMixer& operator=(const G4QDiscProcessMixer &right); |
---|
91 | |
---|
92 | // Copy constructor |
---|
93 | G4QDiscProcessMixer(const G4QDiscProcessMixer& DPM); |
---|
94 | |
---|
95 | // BODY |
---|
96 | const G4ParticleDefinition* DPParticle; // Particle for DiscreteProc mixture |
---|
97 | G4QDiscreteProcessVector theDPVector; // Vector of Discrete Processes |
---|
98 | //G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. |
---|
99 | //G4int nOfNeutrons; // #of neutrons in the target nucleus |
---|
100 | }; |
---|
101 | #endif |
---|