source: trunk/source/processes/hadronic/models/cascade/cascade/include/G4CollisionOutput.hh @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.9 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// $Id: G4CollisionOutput.hh,v 1.20.2.1 2010/06/25 09:43:06 gunter Exp $
27// Geant4 tag: $Name: geant4-09-04-beta-01 $
28//
29// 20100114  M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
30// 20100407  M. Kelsey -- Replace ::resize(0) with ::clear()
31// 20100409  M. Kelsey -- Move function code to .cc files, not inlinable
32// 20100418  M. Kelsey -- Add function to boost output lists to lab frame
33// 20100520  M. Kelsey -- Add function to rotate Z axis, from G4Casc.Interface
34
35#ifndef G4COLLISION_OUTPUT_HH
36#define G4COLLISION_OUTPUT_HH
37
38#include "G4InuclElementaryParticle.hh"
39#include "G4InuclNuclei.hh"
40#include "G4LorentzRotation.hh"
41#include <algorithm>
42#include <vector>
43
44class G4LorentzConvertor;
45
46class G4CollisionOutput {
47
48public:
49
50  G4CollisionOutput();
51
52  G4CollisionOutput& operator=(const G4CollisionOutput& right);
53
54  void reset();
55
56  void addOutgoingParticle(const G4InuclElementaryParticle& particle) {
57    outgoingParticles.push_back(particle);
58  }
59
60  void addOutgoingParticles(const std::vector<G4InuclElementaryParticle>& particles);
61
62  void addTargetFragment(const G4InuclNuclei& nuclei) {
63    nucleiFragments.push_back(nuclei);
64  };
65
66  void addTargetFragments(const std::vector<G4InuclNuclei>& nuclea);
67
68  const std::vector<G4InuclElementaryParticle>& getOutgoingParticles() const {
69    return outgoingParticles;
70  };
71
72  G4int numberOfNucleiFragments() const { 
73    return nucleiFragments.size(); 
74  };
75 
76  const std::vector<G4InuclNuclei>& getNucleiFragments() const {
77    return nucleiFragments;
78  };
79
80  G4LorentzVector getTotalOutputMomentum() const;
81
82  void printCollisionOutput() const;
83
84  void boostToLabFrame(const G4LorentzConvertor& convertor);
85
86  void rotateEvent(const G4LorentzRotation& rotate);
87
88  void trivialise(G4InuclParticle* bullet, 
89                  G4InuclParticle* target);
90
91  void setOnShell(G4InuclParticle* bullet, 
92                  G4InuclParticle* target);
93
94  void setRemainingExitationEnergy();
95
96  double getRemainingExitationEnergy() const { 
97    return eex_rest; 
98  };
99
100  G4bool acceptable() const { 
101    return on_shell; 
102  };
103
104private: 
105  G4int verboseLevel;
106  std::vector<G4InuclElementaryParticle> outgoingParticles;
107  std::vector<G4InuclNuclei> nucleiFragments;
108  G4double eex_rest;
109
110  std::pair<std::pair<G4int,G4int>, G4int> selectPairToTune(G4double de) const; 
111
112  G4bool on_shell;
113
114};       
115
116#endif // G4COLLISION_OUTPUT_HH
117
Note: See TracBrowser for help on using the repository browser.