Changeset 1055 for trunk/source/processes/hadronic/cross_sections/include
- Timestamp:
- May 28, 2009, 4:26:57 PM (15 years ago)
- Location:
- trunk/source/processes/hadronic/cross_sections/include
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/include/G4BGGNucleonElasticXS.hh
r1007 r1055 25 25 // 26 26 // $Id: G4BGGNucleonElasticXS.hh,v 1.2 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/hadronic/cross_sections/include/G4BGGNucleonInelasticXS.hh
r1007 r1055 25 25 // 26 26 // $Id: G4BGGNucleonInelasticXS.hh,v 1.2 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/hadronic/cross_sections/include/G4BGGPionElasticXS.hh
r1007 r1055 25 25 // 26 26 // $Id: G4BGGPionElasticXS.hh,v 1.2 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/hadronic/cross_sections/include/G4BGGPionInelasticXS.hh
r1007 r1055 25 25 // 26 26 // $Id: G4BGGPionInelasticXS.hh,v 1.2 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/hadronic/cross_sections/include/G4CrossSectionDataSetRegistry.hh
r966 r1055 25 25 // 26 26 // $Id: G4CrossSectionDataSetRegistry.hh,v 1.2 2009/02/14 19:22:19 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/hadronic/cross_sections/include/G4CrossSectionDataStore.hh
r1007 r1055 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4CrossSectionDataStore.hh,v 1.14 2009/01/24 11:54:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 // 29 // ------------------------------------------------------------------- 30 // 31 // GEANT4 Class header file 32 // 33 // 34 // File name: G4CrossSectionDataStore 35 // 36 // 37 // Modifications: 38 // 23.01.2009 V.Ivanchenko move constructor and destructor to source, 39 // use STL vector instead of C-array 40 // 41 26 42 // Class Description 27 43 // This is the class to which cross section data sets may be registered. … … 40 56 #include "G4Material.hh" 41 57 #include "G4VCrossSectionDataSet.hh" 58 #include <vector> 42 59 43 60 class G4Nucleus; … … 47 64 public: 48 65 49 G4CrossSectionDataStore() : 50 NDataSetList(0), verboseLevel(0) 51 {} 66 G4CrossSectionDataStore(); 52 67 53 ~G4CrossSectionDataStore() 54 {} 68 ~G4CrossSectionDataStore(); 55 69 56 57 70 G4double GetCrossSection(const G4DynamicParticle*, 71 const G4Element*, G4double aTemperature); 58 72 59 60 73 G4double GetCrossSection(const G4DynamicParticle*, 74 const G4Isotope*, G4double aTemperature); 61 75 62 63 76 G4double GetCrossSection(const G4DynamicParticle*, 77 G4double Z, G4double A, G4double aTemperature); 64 78 65 66 79 // to replace GetMicroscopicCrossSection 80 G4double GetCrossSection(const G4DynamicParticle*, const G4Material*); 67 81 68 69 SelectRandomIsotope(const G4DynamicParticle*, const G4Material*);82 //std::pair<G4double/*Z*/, G4double/*A*/> 83 // SelectRandomIsotope(const G4DynamicParticle*, const G4Material*); 70 84 71 72 85 G4Element* SampleZandA(const G4DynamicParticle*, const G4Material*, 86 G4Nucleus& target); 73 87 74 88 void AddDataSet(G4VCrossSectionDataSet*); 75 89 76 90 void BuildPhysicsTable(const G4ParticleDefinition&); 77 91 78 92 void DumpPhysicsTable(const G4ParticleDefinition&); 79 93 80 void SetVerboseLevel(G4int value)81 82 83 94 inline void SetVerboseLevel(G4int value) 95 { 96 verboseLevel = value; 97 } 84 98 85 G4int GetVerboseLevel()86 87 88 99 inline G4int GetVerboseLevel() 100 { 101 return verboseLevel; 102 } 89 103 90 104 private: 91 105 106 G4VCrossSectionDataSet* whichDataSetInCharge(const G4DynamicParticle*, 107 const G4Element*); 92 108 93 G4VCrossSectionDataSet* whichDataSetInCharge(const G4DynamicParticle*, 94 const G4Element*); 95 96 enum { NDataSetMax = 100 }; 97 G4VCrossSectionDataSet* DataSetList[NDataSetMax]; 98 G4int NDataSetList; 99 G4int verboseLevel; 109 std::vector<G4VCrossSectionDataSet*> DataSetList; 110 G4int NDataSetList; 111 G4int verboseLevel; 100 112 }; 101 113 -
trunk/source/processes/hadronic/cross_sections/include/G4ElectroNuclearCrossSection.hh
r1007 r1055 25 25 // 26 26 // 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // -
trunk/source/processes/hadronic/cross_sections/include/G4GGNuclNuclCrossSection.hh
r966 r1055 71 71 G4double Z, G4double A, 72 72 G4double aTemperature = 0.0); 73 74 G4double GetCoulombBarier(const G4DynamicParticle*, 75 G4double Z, G4double A, G4double pR, G4double tR); 73 76 74 77 virtual -
trunk/source/processes/hadronic/cross_sections/include/G4HadronCrossSections.hh
r1007 r1055 25 25 // 26 26 // 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // -
trunk/source/processes/hadronic/cross_sections/include/G4PhotoNuclearCrossSection.hh
r1007 r1055 25 25 // 26 26 // 27 // GEANT4 tag $Name: geant4-09-0 2$27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // -
trunk/source/processes/hadronic/cross_sections/include/G4VCrossSectionDataSet.hh
r1007 r1055 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VCrossSectionDataSet.hh,v 1.13 2009/01/24 11:54:47 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 26 28 // 27 // GEANT4 physics abstract class: G4VCrossSectionData -- header file 28 // F.W. Jones, TRIUMF, 20-JAN-97 29 // ------------------------------------------------------------------- 30 // 31 // GEANT4 Class header file 32 // 33 // 34 // File name: G4VCrossSectionDataSet 35 // 36 // Author F.W. Jones, TRIUMF, 20-JAN-97 37 // 38 // Modifications: 39 // 23.01.2009 V.Ivanchenko move constructor and destructor to source 40 // 41 29 42 // 30 43 // Class Description … … 43 56 class G4VCrossSectionDataSet 44 57 { 45 public:46 47 G4VCrossSectionDataSet() :48 verboseLevel(0)49 {}50 51 virtual ~G4VCrossSectionDataSet()52 {}53 54 58 public: //with description 55 59 56 // The following methods need to be implemented for each new data set. 57 virtual 58 G4bool IsApplicable(const G4DynamicParticle*, const G4Element*) = 0; 60 G4VCrossSectionDataSet(); 59 61 60 virtual 61 G4bool IsZAApplicable(const G4DynamicParticle*, G4double /*Z*/, G4double /*A*/); 62 virtual ~G4VCrossSectionDataSet(); 62 63 63 virtual 64 G4double GetCrossSection(const G4DynamicParticle*, 65 const G4Element*, 66 G4double aTemperature = 0.) = 0; 64 // The following methods need to be implemented for each new data set. 65 virtual 66 G4bool IsApplicable(const G4DynamicParticle*, const G4Element*) = 0; 67 67 68 virtual 69 G4double GetIsoCrossSection(const G4DynamicParticle*, const G4Isotope*, 70 G4double aTemperature = 0.); 68 virtual 69 G4bool IsZAApplicable(const G4DynamicParticle*, G4double /*Z*/, G4double /*A*/); 71 70 72 virtual 73 G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/, 74 G4double /*A*/, G4double aTemperature = 0.); 71 virtual 72 G4double GetCrossSection(const G4DynamicParticle*, 73 const G4Element*, 74 G4double aTemperature = 0.) = 0; 75 75 76 virtual 77 void BuildPhysicsTable(const G4ParticleDefinition&) = 0; 76 virtual 77 G4double GetIsoCrossSection(const G4DynamicParticle*, const G4Isotope*, 78 G4double aTemperature = 0.); 78 79 79 virtual 80 void DumpPhysicsTable(const G4ParticleDefinition&) = 0; 80 virtual 81 G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/, 82 G4double /*A*/, G4double aTemperature = 0.); 83 84 virtual 85 void BuildPhysicsTable(const G4ParticleDefinition&) = 0; 86 87 virtual 88 void DumpPhysicsTable(const G4ParticleDefinition&) = 0; 81 89 82 90 public: // Without Description 83 91 84 void SetVerboseLevel(G4int value)85 86 87 92 inline void SetVerboseLevel(G4int value) 93 { 94 verboseLevel = value; 95 } 88 96 89 G4int GetVerboseLevel()90 91 92 97 inline G4int GetVerboseLevel() 98 { 99 return verboseLevel; 100 } 93 101 94 102 protected: 95 103 96 104 G4int verboseLevel; 97 105 }; 98 106
Note: See TracChangeset
for help on using the changeset viewer.