[819] | 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 | // |
---|
| 27 | // |
---|
| 28 | // Hadronic Inelastic Process class |
---|
| 29 | // The specific particle inelastic processes derive from this class |
---|
| 30 | // This is an abstract base class, since the pure virtual function |
---|
| 31 | // PostStepDoIt has not been defined yet. |
---|
| 32 | // |
---|
| 33 | // J.L. Chuma, TRIUMF, 10-Mar-1997 |
---|
| 34 | // Last modified: 27-Mar-1997 |
---|
| 35 | // |
---|
| 36 | // 14-APR-98 F.W.Jones: variant G4HadronInelastic process for |
---|
| 37 | // G4CrossSectionDataSet/DataStore class design. |
---|
| 38 | // 29-JUN-98 F.W.Jones: default data set G4HadronCrossSections |
---|
| 39 | // |
---|
| 40 | |
---|
| 41 | #ifndef G4HadronInelasticProcess_h |
---|
| 42 | #define G4HadronInelasticProcess_h 1 |
---|
| 43 | |
---|
| 44 | #include "G4HadronicProcess.hh" |
---|
| 45 | //#include "G4LPhysicsFreeVector.hh" |
---|
| 46 | #include "G4HadronCrossSections.hh" |
---|
| 47 | #include "G4CrossSectionDataStore.hh" |
---|
| 48 | #include "G4HadronInelasticDataSet.hh" |
---|
| 49 | #include "G4ParticleChange.hh" |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | class G4HadronInelasticProcess : public G4HadronicProcess |
---|
| 53 | { |
---|
| 54 | public: |
---|
| 55 | |
---|
| 56 | G4HadronInelasticProcess( |
---|
| 57 | const G4String &processName, |
---|
| 58 | G4ParticleDefinition *aParticle ); |
---|
| 59 | |
---|
| 60 | virtual ~G4HadronInelasticProcess(); |
---|
| 61 | |
---|
| 62 | void BuildThePhysicsTable(); |
---|
| 63 | |
---|
| 64 | G4bool IsApplicable(const G4ParticleDefinition& aP); |
---|
| 65 | |
---|
| 66 | G4VParticleChange *PostStepDoIt(const G4Track &aTrack, const G4Step &aStep); |
---|
| 67 | |
---|
| 68 | private: |
---|
| 69 | |
---|
| 70 | virtual G4double GetMicroscopicCrossSection( const G4DynamicParticle *aParticle, |
---|
| 71 | const G4Element *anElement, |
---|
| 72 | G4double aTemp ); |
---|
| 73 | |
---|
| 74 | protected: |
---|
| 75 | |
---|
| 76 | G4ParticleDefinition *theParticle; |
---|
| 77 | G4ParticleChange theParticleChange; |
---|
| 78 | }; |
---|
| 79 | |
---|
| 80 | #endif |
---|
| 81 | |
---|