Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // >> 23 // $Id: G4eeToHadronsModel.hh,v 1.3 2005/05/18 10:12:32 vnivanch Exp $ >> 24 // GEANT4 tag $Name: geant4-07-01-patch-01 $ 26 // 25 // 27 // ------------------------------------------- 26 // ------------------------------------------------------------------- 28 // 27 // 29 // GEANT4 Class header file 28 // GEANT4 Class header file 30 // 29 // 31 // 30 // 32 // File name: G4eeToHadronsModel 31 // File name: G4eeToHadronsModel 33 // 32 // 34 // Author: Vladimir Ivanchenko 33 // Author: Vladimir Ivanchenko 35 // 34 // 36 // Creation date: 25.10.2003 35 // Creation date: 25.10.2003 37 // 36 // 38 // Modifications: 37 // Modifications: 39 // 08-04-05 Major optimisation of internal int 38 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 40 // 18-05-05 Use optimized interfaces (V.Ivantc 39 // 18-05-05 Use optimized interfaces (V.Ivantchenko) 41 // 40 // 42 41 43 // 42 // 44 // Class Description: 43 // Class Description: 45 // 44 // 46 45 47 // ------------------------------------------- 46 // ------------------------------------------------------------------- 48 // 47 // 49 48 50 #ifndef G4eeToHadronsModel_h 49 #ifndef G4eeToHadronsModel_h 51 #define G4eeToHadronsModel_h 1 50 #define G4eeToHadronsModel_h 1 52 51 53 #include "G4VEmModel.hh" 52 #include "G4VEmModel.hh" 54 53 55 class G4PhysicsVector; 54 class G4PhysicsVector; 56 class G4Vee2hadrons; 55 class G4Vee2hadrons; 57 56 58 class G4eeToHadronsModel : public G4VEmModel 57 class G4eeToHadronsModel : public G4VEmModel 59 { 58 { 60 59 61 public: 60 public: 62 61 63 explicit G4eeToHadronsModel(G4Vee2hadrons*, << 62 G4eeToHadronsModel(const G4Vee2hadrons*, G4int ver=0, 64 const G4String& << 63 const G4String& nam = "eeToHadrons"); 65 64 66 ~G4eeToHadronsModel() override; << 65 virtual ~G4eeToHadronsModel(); 67 66 68 void Initialise(const G4ParticleDefinition*, << 67 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 69 68 70 G4double CrossSectionPerVolume(const G4Mater << 69 G4double PeakEnergy() const; 71 const G4ParticleDefinition*, << 72 G4double kineticEnergy, << 73 G4double cutEnergy, << 74 G4double maxEnergy) override; << 75 << 76 G4double ComputeCrossSectionPerAtom(const G4 << 77 G4double << 78 G4double << 79 G4double << 80 G4double << 81 << 82 G4double ComputeCrossSectionPerElectron(cons << 83 G4do << 84 G4do << 85 G4do << 86 << 87 void SampleSecondaries(std::vector<G4Dynamic << 88 const G4MaterialCutsCouple*, << 89 const G4DynamicParticle*, << 90 G4double tmin = 0.0, << 91 G4double maxEnergy = DBL_MAX) override; << 92 70 93 G4DynamicParticle* GenerateCMPhoton(G4double << 71 virtual G4double CrossSectionPerVolume(const G4Material*, 94 << 72 const G4ParticleDefinition*, 95 inline G4double PeakEnergy() const; << 73 G4double kineticEnergy, >> 74 G4double cutEnergy = 0.0, >> 75 G4double maxEnergy = DBL_MAX); >> 76 >> 77 virtual std::vector<G4DynamicParticle*>* SampleSecondaries( >> 78 const G4MaterialCutsCouple*, >> 79 const G4DynamicParticle*, >> 80 G4double tmin = 0.0, >> 81 G4double maxEnergy = DBL_MAX); 96 82 97 // hide assignment operator << 83 G4DynamicParticle* GenerateCMPhoton(G4double); 98 G4eeToHadronsModel & operator=(const G4eeTo << 99 G4eeToHadronsModel(const G4eeToHadronsModel << 100 84 101 private: 85 private: 102 86 103 void ComputeCMCrossSectionPerElectron(); 87 void ComputeCMCrossSectionPerElectron(); 104 88 105 const G4ParticleDefinition* theGamma; << 89 // hide assignment operator >> 90 G4eeToHadronsModel & operator=(const G4eeToHadronsModel &right); >> 91 G4eeToHadronsModel(const G4eeToHadronsModel&); 106 92 107 G4Vee2hadrons* model; << 93 const G4Vee2hadrons* model; 108 G4PhysicsVector* crossPerElectron = nul << 94 G4ParticleDefinition* theGamma; 109 G4PhysicsVector* crossBornPerElectron = << 95 G4PhysicsVector* crossPerElectron; >> 96 G4PhysicsVector* crossBornPerElectron; >> 97 G4bool isInitialised; >> 98 G4int nbins; >> 99 G4int verbose; 110 100 111 G4double lowKinEnergy; 101 G4double lowKinEnergy; 112 G4double peakKinEnergy; 102 G4double peakKinEnergy; 113 G4double highKinEnergy; 103 G4double highKinEnergy; 114 104 115 G4double emin; 105 G4double emin; 116 G4double epeak; 106 G4double epeak; 117 G4double emax; 107 G4double emax; 118 << 119 G4int nbins = 100; << 120 G4int verbose; << 121 G4bool isInitialised = false; << 122 }; 108 }; 123 109 124 //....oooOO0OOooo........oooOO0OOooo........oo 110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 111 126 inline G4double G4eeToHadronsModel::PeakEnergy 112 inline G4double G4eeToHadronsModel::PeakEnergy() const 127 { 113 { 128 return peakKinEnergy; 114 return peakKinEnergy; 129 } 115 } 130 116 131 //....oooOO0OOooo........oooOO0OOooo........oo 117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 132 118 133 #endif 119 #endif 134 120