G4BigBanger.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 // 20100315  M. Kelsey -- Remove "using" directive and unnecessary #includes.
00029 // 20100407  M. Kelsey -- Replace std::vector<> returns with data members.
00030 // 20100413  M. Kelsey -- Pass G4CollisionOutput by ref to ::collide()
00031 // 20100517  M. Kelsey -- Inherit from common base class
00032 // 20100519  M. Kelsey -- Get rid of proton and neutron masses as arguments!
00033 // 20100714  M. Kelsey -- Switch to new G4CascadeColliderBase class
00034 // 20100726  M. Kelsey -- Move std::vector<> buffer to .hh file
00035 // 20100928  M. Kelsey -- Migrate to integer A and Z
00036 
00037 #ifndef G4BIG_BANGER_HH
00038 #define G4BIG_BANGER_HH
00039 
00040 #include "G4CascadeColliderBase.hh"
00041 #include "G4InuclElementaryParticle.hh"
00042 #include <vector>
00043 
00044 class G4CollisionOutput;
00045 
00046 
00047 class G4BigBanger : public G4CascadeColliderBase {
00048 public:
00049   G4BigBanger();
00050   virtual ~G4BigBanger() {};
00051 
00052   void collide(G4InuclParticle* bullet, G4InuclParticle* target,
00053                G4CollisionOutput& output);
00054 
00055 private: 
00056   void generateBangInSCM(G4double etot, G4int a, G4int z);
00057 
00058   void generateMomentumModules(G4double etot, G4int a, G4int z); 
00059 
00060   G4double xProbability(G4double x, G4int a) const; 
00061 
00062   G4double maxProbability(G4int a) const;
00063 
00064   G4double generateX(G4int ia, G4double promax) const; 
00065 
00066   // Buffers for big-bang results
00067   std::vector<G4InuclElementaryParticle> particles;
00068   std::vector<G4double> momModules;
00069   std::vector<G4LorentzVector> scm_momentums;
00070 };        
00071 
00072 #endif /* G4BIG_BANGER_HH */
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 
00083 

Generated on Mon May 27 17:47:45 2013 for Geant4 by  doxygen 1.4.7