|
||||
File indexing completed on 2025-01-18 09:57:58
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // 20100315 M. Kelsey -- Remove "using" directive and unnecessary #includes. 0028 // 20100407 M. Kelsey -- Replace std::vector<> returns with data members. 0029 // 20100413 M. Kelsey -- Pass G4CollisionOutput by ref to ::collide() 0030 // 20100517 M. Kelsey -- Inherit from common base class 0031 // 20100519 M. Kelsey -- Get rid of proton and neutron masses as arguments! 0032 // 20100714 M. Kelsey -- Switch to new G4CascadeColliderBase class 0033 // 20100726 M. Kelsey -- Move std::vector<> buffer to .hh file 0034 // 20100928 M. Kelsey -- Migrate to integer A and Z 0035 // 20130620 Address Coverity complaint about missing copy actions 0036 // 20130622 Inherit from G4CascadeDeexciteBase, move to deExcite() interface 0037 // with G4Fragment 0038 0039 #ifndef G4BIG_BANGER_HH 0040 #define G4BIG_BANGER_HH 0041 0042 #include "G4CascadeDeexciteBase.hh" 0043 #include "G4InuclElementaryParticle.hh" 0044 #include <vector> 0045 0046 0047 class G4BigBanger : public G4CascadeDeexciteBase { 0048 public: 0049 G4BigBanger(); 0050 virtual ~G4BigBanger() {}; 0051 0052 virtual void deExcite(const G4Fragment& target, G4CollisionOutput& output); 0053 0054 private: 0055 void generateBangInSCM(G4double etot, G4int a, G4int z); 0056 void generateMomentumModules(G4double etot, G4int a, G4int z); 0057 G4double xProbability(G4double x, G4int a) const; 0058 G4double maxProbability(G4int a) const; 0059 G4double generateX(G4int ia, G4double promax) const; 0060 0061 // Buffers for big-bang results 0062 std::vector<G4InuclElementaryParticle> particles; 0063 std::vector<G4double> momModules; 0064 std::vector<G4LorentzVector> scm_momentums; 0065 0066 private: 0067 // Copying of modules is forbidden 0068 G4BigBanger(const G4BigBanger&); 0069 G4BigBanger& operator=(const G4BigBanger&); 0070 }; 0071 0072 #endif /* G4BIG_BANGER_HH */ 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |