Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ElementaryParticleCollider.hh
Go to the documentation of this file.
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: G4ElementaryParticleCollider.hh 71940 2013-06-28 19:04:44Z mkelsey $
27 //
28 // 20100114 M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
29 // 20100315 M. Kelsey -- Remove "using" directive and unnecessary #includes.
30 // 20100407 M. Kelsey -- Eliminate return-by-value std::vector<> by creating
31 // three data buffers for particles, momenta, and particle types.
32 // The following functions now return void and are non-const:
33 // ::generateSCMfinalState()
34 // ::generateMomModules() (also remove input vector)
35 // ::generateStrangeChannelPartTypes()
36 // ::generateSCMpionAbsorption()
37 // 20100413 M. Kelsey -- Pass G4CollisionOutput by ref to ::collide(); merge
38 // public vs. private ::collide() functions.
39 // 20100511 M. Kelsey -- Remove G4PionSampler and G4NucleonSampler. Expand
40 // particle-types selector to all modes, not just strangeness.
41 // 20100517 M. Kelsey -- Inherit from common base class, make arrays static
42 // 20100714 M. Kelsey -- Switch to new G4CascadeColliderBase class
43 // 20100726 M. Kelsey -- Move remaining std::vector<> buffers here
44 // 20100804 M. Kelsey -- Add printFinalStateTables() function.
45 // 20110923 M. Kelsey -- Add optional stream& to printFinalStateTables().
46 // 20130129 M. Kelsey -- Add static arrays and interpolators for two-body
47 // angular distributions (addresses MT thread-local issue)
48 // 20130131 D. Wright -- Use new *AngDst classes for gamma-N two-body
49 // 20130220 M. Kelsey -- Replace two-body angular code with new *AngDst classes
50 // 20130221 M. Kelsey -- Move two-body angular dist classes to factory
51 // 20130306 M. Kelsey -- Move printFinalStateTables() to table factory
52 // 20130307 M. Kelsey -- Reverse order of dimensions for rmn array
53 // 20130422 M. Kelsey -- Move kinematics to G4CascadeFinalStateAlgorithm
54 // 20130508 D. Wright -- Add muon capture, with absorption on quasideuterons
55 // 20130620 Address Coverity complaint about missing copy actions
56 // 20130628 Add function to split dibaryon into particle_kinds list
57 
58 #ifndef G4ELEMENTARY_PARTICLE_COLLIDER_HH
59 #define G4ELEMENTARY_PARTICLE_COLLIDER_HH
60 
61 #include "G4CascadeColliderBase.hh"
63 #include "G4CascadeInterpolator.hh"
65 #include "G4LorentzVector.hh"
66 #include <iosfwd>
67 #include <vector>
68 
69 class G4CollisionOutput;
70 
71 
73 public:
76 
78  G4CollisionOutput& output);
79 
80 private:
81  G4int generateMultiplicity(G4int is, G4double ekin) const;
82 
83  void generateOutgoingPartTypes(G4int is, G4int mult, G4double ekin);
84 
85  void generateSCMfinalState(G4double ekin, G4double etot_scm,
86  G4InuclElementaryParticle* particle1,
87  G4InuclElementaryParticle* particle2);
88 
89  void generateSCMpionAbsorption(G4double etot_scm,
90  G4InuclElementaryParticle* particle1,
91  G4InuclElementaryParticle* particle2);
92 
93  void generateSCMmuonAbsorption(G4double etot_scm,
94  G4InuclElementaryParticle* particle1,
95  G4InuclElementaryParticle* particle2);
96 
97  G4bool splitQuasiDeuteron(G4int qdtype); // Fill kinds with NN components
98 
99  void fillOutgoingMasses(); // Fill mass arrays from particle types
100 
101  // Utility class to generate final-state kinematics
102  G4CascadeFinalStateGenerator fsGenerator;
103 
104  // Internal buffers for lists of secondaries
105  std::vector<G4InuclElementaryParticle> particles;
106  std::vector<G4LorentzVector> scm_momentums;
107  std::vector<G4double> modules;
108  std::vector<G4double> masses;
109  std::vector<G4double> masses2;
110  std::vector<G4int> particle_kinds;
111 
112 private:
113  // Copying of modules is forbidden
116 };
117 
118 #endif /* G4ELEMENTARY_PARTICLE_COLLIDER_HH */
119 
120 
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
const XML_Char * target
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
double G4double
Definition: G4Types.hh:76