[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 | // $Id: G4QDiscProcessMixer.hh,v 1.2 2007/08/31 09:36:57 mkossov Exp $ |
---|
| 27 | // GEANT4 tag $Name: $ |
---|
| 28 | // |
---|
| 29 | // ---------------- G4QDiscProcessMixer header ---------------- |
---|
| 30 | // by Mikhail Kossov, Aug 2007. |
---|
| 31 | // Header of G4QDiscProcessMixer class (hadron+A) of the CHIPS Simulation Branch in GEANT4 |
---|
| 32 | // ------------------------------------------------------------------------------- |
---|
| 33 | // This is a unique CHIPS class for the Hadron-Nuclear Diffractive Interaction Prosesses |
---|
| 34 | // ------------------------------------------------------------------------------- |
---|
| 35 | // At present (Aug-07) it is not tested. |
---|
| 36 | // The normalization is based on the temporary G4QIonIonCrossSection class |
---|
| 37 | // ------------------------------------------------------------------------------- |
---|
| 38 | |
---|
| 39 | #ifndef G4QDiscProcessMixer_hh |
---|
| 40 | #define G4QDiscProcessMixer_hh |
---|
| 41 | |
---|
| 42 | // GEANT4 Headers |
---|
| 43 | #include "globals.hh" |
---|
| 44 | #include "G4ios.hh" |
---|
| 45 | #include "Randomize.hh" |
---|
| 46 | #include "G4VDiscreteProcess.hh" |
---|
| 47 | #include "G4Track.hh" |
---|
| 48 | #include "G4Step.hh" |
---|
| 49 | //#include "G4ParticleTypes.hh" |
---|
| 50 | //#include "G4VParticleChange.hh" |
---|
| 51 | //#include "G4ParticleDefinition.hh" |
---|
| 52 | #include "G4ParticleDefinition.hh" |
---|
| 53 | #include "G4Gamma.hh" |
---|
| 54 | #include "G4DynamicParticle.hh" |
---|
| 55 | #include "G4QDiscreteProcessVector.hh" |
---|
| 56 | //#include "G4NucleiPropertiesTable.hh" |
---|
| 57 | //#include "G4ThreeVector.hh" |
---|
| 58 | //#include "G4LorentzVector.hh" |
---|
| 59 | |
---|
| 60 | #include <vector> |
---|
| 61 | |
---|
| 62 | class G4QDiscProcessMixer : public G4VDiscreteProcess |
---|
| 63 | { |
---|
| 64 | public: |
---|
| 65 | |
---|
| 66 | // Constructor |
---|
| 67 | G4QDiscProcessMixer(const G4String& processName = "Mixed Discrete Process", |
---|
| 68 | const G4ParticleDefinition* proj = G4Gamma::Gamma(), |
---|
| 69 | G4ProcessType pType = fNotDefined ); |
---|
| 70 | |
---|
| 71 | // Destructor |
---|
| 72 | ~G4QDiscProcessMixer(); |
---|
| 73 | |
---|
| 74 | G4bool IsApplicable(const G4ParticleDefinition& particle); |
---|
| 75 | |
---|
| 76 | G4double PostStepGetPhysicalInteractionLength(const G4Track& track, |
---|
| 77 | G4double previousStepSize, |
---|
| 78 | G4ForceCondition* condition); |
---|
| 79 | |
---|
| 80 | G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); |
---|
| 81 | |
---|
| 82 | void AddDiscreteProcess(G4VDiscreteProcess* DP, G4double ME); |
---|
| 83 | |
---|
| 84 | //G4LorentzVector GetEnegryMomentumConservation(); |
---|
| 85 | |
---|
| 86 | //G4int GetNumberOfNeutronsInTarget(); |
---|
| 87 | |
---|
| 88 | private: |
---|
| 89 | |
---|
| 90 | // Hide assignment operator as private |
---|
| 91 | G4QDiscProcessMixer& operator=(const G4QDiscProcessMixer &right); |
---|
| 92 | |
---|
| 93 | // Copy constructor |
---|
| 94 | G4QDiscProcessMixer(const G4QDiscProcessMixer& DPM); |
---|
| 95 | |
---|
| 96 | // BODY |
---|
| 97 | const G4ParticleDefinition* DPParticle; // Particle for DiscreteProc mixture |
---|
| 98 | G4QDiscreteProcessVector theDPVector; // Vector of Discrete Processes |
---|
| 99 | //G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. |
---|
| 100 | //G4int nOfNeutrons; // #of neutrons in the target nucleus |
---|
| 101 | }; |
---|
| 102 | #endif |
---|