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 | #include "G4DiffractiveHHScatterer.hh" |
---|
27 | #include "G4DiffractiveExcitation.hh" |
---|
28 | #include "G4ExcitedString.hh" |
---|
29 | #include "G4LundStringFragmentation.hh" |
---|
30 | #include "G4KineticTrack.hh" |
---|
31 | #include "G4DiffractiveSplitableHadron.hh" |
---|
32 | #include "G4FTFParameters.hh" // Uzhi 21.04.08 |
---|
33 | |
---|
34 | G4DiffractiveHHScatterer::G4DiffractiveHHScatterer() |
---|
35 | : |
---|
36 | theExcitation(new G4DiffractiveExcitation()), |
---|
37 | theStringFragmentation(new G4LundStringFragmentation()) |
---|
38 | {} |
---|
39 | |
---|
40 | void G4DiffractiveHHScatterer::CreateStrings() |
---|
41 | /* |
---|
42 | G4VSplitableHadron * aHadron, |
---|
43 | G4bool isProjectile, |
---|
44 | G4ExcitedString * FirstString, |
---|
45 | G4ExcitedString * SecondString, |
---|
46 | G4FTFParameters *theParameters) |
---|
47 | */ |
---|
48 | const |
---|
49 | |
---|
50 | {} |
---|
51 | |
---|
52 | /* ------------------------------------------------------------------- |
---|
53 | G4KineticTrackVector * G4DiffractiveHHScatterer:: |
---|
54 | Scatter(const G4KineticTrack & aTrack, const G4KineticTrack & bTrack) |
---|
55 | { |
---|
56 | G4KineticTrackVector * result = new G4KineticTrackVector(); |
---|
57 | |
---|
58 | G4DiffractiveSplitableHadron aHadron(& aTrack); |
---|
59 | G4DiffractiveSplitableHadron bHadron(& bTrack); |
---|
60 | theParameters = new G4FTFParameters(aHadron.GetDefinition(), // -------- Uzhi 21.04.08 |
---|
61 | 1.,1., 100.); |
---|
62 | //s);// ------------------------- Uzhi 21.04.08 |
---|
63 | if ( ! theExcitation->ExciteParticipants(& aHadron, |
---|
64 | & bHadron, |
---|
65 | theParameters)) // -------- Uzhi 21.04.08 |
---|
66 | { |
---|
67 | return NULL; |
---|
68 | } |
---|
69 | |
---|
70 | G4ExcitedString * string; |
---|
71 | G4KineticTrackVector * fragments=NULL; |
---|
72 | |
---|
73 | string = theExcitation->String(& aHadron, true); // Projectile |
---|
74 | fragments=theStringFragmentation->FragmentString(*string); |
---|
75 | for (unsigned int aFragment=0; aFragment < fragments->size(); aFragment++) |
---|
76 | { |
---|
77 | result->push_back(fragments->operator[](aFragment)); |
---|
78 | } |
---|
79 | |
---|
80 | string = theExcitation->String(& bHadron, false); // Target |
---|
81 | fragments=theStringFragmentation->FragmentString(*string); |
---|
82 | for (unsigned int bFragment=0; bFragment < fragments->size(); bFragment++) |
---|
83 | { |
---|
84 | result->push_back(fragments->operator[](bFragment)); |
---|
85 | } |
---|
86 | |
---|
87 | |
---|
88 | return result; |
---|
89 | } |
---|
90 | */ |
---|