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: G4Vee2hadrons.hh,v 1.1 2004/11/19 18:44:04 vnivanch Exp $ >> 24 // GEANT4 tag $Name: geant4-08-00-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: G4Vee2hadrons 31 // File name: G4Vee2hadrons 33 // 32 // 34 // Author: Vladimir Ivanchenko 33 // Author: Vladimir Ivanchenko 35 // 34 // 36 // Creation date: 12.08.2004 35 // Creation date: 12.08.2004 37 // 36 // 38 // Modifications: 14 July 2014 N. Chikuma revi << 37 // Modifications: 39 // 38 // 40 39 41 // 40 // 42 // Class Description: base class to compute pa << 41 // Class Description: 43 // of e+e- annihilation int << 42 // 44 // sample of final state in << 45 43 46 // ------------------------------------------- 44 // ------------------------------------------------------------------- 47 // 45 // >> 46 48 #ifndef G4Vee2hadrons_h 47 #ifndef G4Vee2hadrons_h 49 #define G4Vee2hadrons_h 1 48 #define G4Vee2hadrons_h 1 50 49 51 #include <vector> << 52 #include <CLHEP/Units/SystemOfUnits.h> << 53 << 54 #include "globals.hh" 50 #include "globals.hh" 55 #include "G4ThreeVector.hh" 51 #include "G4ThreeVector.hh" 56 #include "G4eeCrossSections.hh" << 52 #include <vector> 57 #include "G4PhysicsLinearVector.hh" << 58 53 59 class G4DynamicParticle; 54 class G4DynamicParticle; 60 class G4PhysicsVector; 55 class G4PhysicsVector; 61 56 62 class G4Vee2hadrons 57 class G4Vee2hadrons 63 { 58 { 64 59 65 public: 60 public: 66 61 67 explicit G4Vee2hadrons(G4eeCrossSections* cr << 62 G4Vee2hadrons() {}; 68 G4double vlowEnergy, << 69 G4double vhighEnergy, << 70 G4double vdelta) : cross(cr) << 71 { << 72 lowEnergy = vlowEnergy; << 73 highEnergy = vhighEnergy; << 74 delta = vdelta; << 75 }; << 76 63 77 virtual ~G4Vee2hadrons() {}; 64 virtual ~G4Vee2hadrons() {}; 78 65 >> 66 virtual G4double ThresholdEnergy() const = 0; >> 67 79 virtual G4double PeakEnergy() const = 0; 68 virtual G4double PeakEnergy() const = 0; 80 69 81 virtual G4double ComputeCrossSection(G4doubl 70 virtual G4double ComputeCrossSection(G4double) const = 0; 82 71 83 G4PhysicsVector* PhysicsVector() const << 72 virtual G4PhysicsVector* PhysicsVector(G4double, G4double) const = 0; 84 { << 85 G4int nbins = std::max(3, G4int((highEnerg << 86 G4PhysicsVector* pp = new G4PhysicsLinearV << 87 return pp; << 88 }; << 89 73 90 virtual void SampleSecondaries(std::vector<G << 74 virtual std::vector<G4DynamicParticle*>* SampleSecondaries( 91 G4double, const G4ThreeVector&) = 0; << 75 G4double, const G4ThreeVector&) const = 0; 92 << 93 G4double LowEnergy() const {return lowEnergy << 94 << 95 G4double HighEnergy() const {return highEner << 96 << 97 // hide assignment operator << 98 G4Vee2hadrons & operator=(const G4Vee2hadro << 99 G4Vee2hadrons(const G4Vee2hadrons&) = delet << 100 76 101 private: 77 private: 102 78 103 // parameters of the table << 79 // hide assignment operator 104 G4double lowEnergy; << 80 G4Vee2hadrons & operator=(const G4Vee2hadrons &right); 105 G4double highEnergy; << 81 G4Vee2hadrons(const G4Vee2hadrons&); 106 G4double delta; << 107 << 108 protected: << 109 << 110 G4eeCrossSections* cross; // class to comp << 111 82 112 }; 83 }; 113 84 114 //....oooOO0OOooo........oooOO0OOooo........oo 85 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 115 86 116 #endif 87 #endif 117 88