[1206] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // $Id: G4VHadronPhysics.hh,v 1.1 2009/09/01 14:48:30 vnivanch Exp $ |
---|
[1228] | 27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[1206] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4VHadronPhysics |
---|
| 32 | // |
---|
| 33 | // Author: 28 June 2009 V.Ivanchenko |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // |
---|
| 37 | //---------------------------------------------------------------------------- |
---|
| 38 | // |
---|
| 39 | #ifndef G4VHadronPhysics_h |
---|
| 40 | #define G4VHadronPhysics_h 1 |
---|
| 41 | |
---|
| 42 | #include "G4VPhysicsConstructor.hh" |
---|
| 43 | #include "G4VHadronModelBuilder.hh" |
---|
| 44 | #include "globals.hh" |
---|
| 45 | #include <vector> |
---|
| 46 | |
---|
| 47 | class G4ParticleDefinition; |
---|
| 48 | class G4VCrossSectionDataSet; |
---|
| 49 | class G4HadronicProcess; |
---|
| 50 | class G4HadronicInteraction; |
---|
| 51 | |
---|
| 52 | class G4VHadronPhysics : public G4VPhysicsConstructor |
---|
| 53 | { |
---|
| 54 | public: |
---|
| 55 | |
---|
| 56 | G4VHadronPhysics(const G4String& name ="hInelastic", |
---|
| 57 | G4int verbose = 0); |
---|
| 58 | |
---|
| 59 | virtual ~G4VHadronPhysics(); |
---|
| 60 | |
---|
| 61 | virtual void ConstructParticle(); |
---|
| 62 | |
---|
| 63 | G4HadronicInteraction* BuildModel(G4VHadronModelBuilder*, |
---|
| 64 | G4double emin, |
---|
| 65 | G4double emax); |
---|
| 66 | |
---|
| 67 | G4HadronicInteraction* NewModel(G4HadronicInteraction*, |
---|
| 68 | G4double emin, |
---|
| 69 | G4double emax); |
---|
| 70 | |
---|
| 71 | void AddInelasticCrossSection(const G4String&, |
---|
| 72 | G4VCrossSectionDataSet*); |
---|
| 73 | |
---|
| 74 | void AddInelasticCrossSection(const G4ParticleDefinition*, |
---|
| 75 | G4VCrossSectionDataSet*); |
---|
| 76 | |
---|
| 77 | void AddElasticCrossSection(const G4String&, |
---|
| 78 | G4VCrossSectionDataSet*); |
---|
| 79 | |
---|
| 80 | void AddElasticCrossSection(const G4ParticleDefinition*, |
---|
| 81 | G4VCrossSectionDataSet*); |
---|
| 82 | |
---|
| 83 | void AddCaptureCrossSection(G4VCrossSectionDataSet*); |
---|
| 84 | |
---|
| 85 | void AddFissionCrossSection(G4VCrossSectionDataSet*); |
---|
| 86 | |
---|
| 87 | protected: |
---|
| 88 | |
---|
| 89 | G4HadronicProcess* FindInelasticProcess(const G4String&); |
---|
| 90 | |
---|
| 91 | G4HadronicProcess* FindInelasticProcess(const G4ParticleDefinition*); |
---|
| 92 | |
---|
| 93 | G4HadronicProcess* FindElasticProcess(const G4String&); |
---|
| 94 | |
---|
| 95 | G4HadronicProcess* FindElasticProcess(const G4ParticleDefinition*); |
---|
| 96 | |
---|
| 97 | G4HadronicProcess* FindCaptureProcess(); |
---|
| 98 | |
---|
| 99 | G4HadronicProcess* FindFissionProcess(); |
---|
| 100 | |
---|
| 101 | private: |
---|
| 102 | |
---|
| 103 | // copy constructor and hide assignment operator |
---|
| 104 | G4VHadronPhysics(G4VHadronPhysics &); |
---|
| 105 | G4VHadronPhysics & operator=(const G4VHadronPhysics &right); |
---|
| 106 | |
---|
| 107 | std::vector<G4VHadronModelBuilder*> builders; |
---|
| 108 | |
---|
| 109 | }; |
---|
| 110 | |
---|
| 111 | #endif |
---|
| 112 | |
---|