source: trunk/source/processes/hadronic/models/parton_string/diffraction/src/G4DiffractiveHHScatterer.cc@ 1036

Last change on this file since 1036 was 962, checked in by garnier, 17 years ago

update processes

File size: 3.5 KB
Line 
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
34G4DiffractiveHHScatterer::G4DiffractiveHHScatterer()
35:
36 theExcitation(new G4DiffractiveExcitation()),
37 theStringFragmentation(new G4LundStringFragmentation())
38{}
39
40// -------------------------------------------------------------------
41G4KineticTrackVector * G4DiffractiveHHScatterer::
42Scatter(const G4KineticTrack & aTrack, const G4KineticTrack & bTrack)
43{
44 G4KineticTrackVector * result = new G4KineticTrackVector();
45
46 G4DiffractiveSplitableHadron aHadron(& aTrack);
47 G4DiffractiveSplitableHadron bHadron(& bTrack);
48 theParameters = new G4FTFParameters(aHadron.GetDefinition(), // -------- Uzhi 21.04.08
49 1.,1., 100.);
50 //s);// ------------------------- Uzhi 21.04.08
51 if ( ! theExcitation->ExciteParticipants(& aHadron,
52 & bHadron,
53 theParameters)) // -------- Uzhi 21.04.08
54 {
55 return NULL;
56 }
57
58 G4ExcitedString * string;
59 G4KineticTrackVector * fragments=NULL;
60
61 string = theExcitation->String(& aHadron, true); // Projectile
62 fragments=theStringFragmentation->FragmentString(*string);
63 for (unsigned int aFragment=0; aFragment < fragments->size(); aFragment++)
64 {
65 result->push_back(fragments->operator[](aFragment));
66 }
67
68 string = theExcitation->String(& bHadron, false); // Target
69 fragments=theStringFragmentation->FragmentString(*string);
70 for (unsigned int bFragment=0; bFragment < fragments->size(); bFragment++)
71 {
72 result->push_back(fragments->operator[](bFragment));
73 }
74
75
76 return result;
77}
Note: See TracBrowser for help on using the repository browser.