// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4hIonisation52.hh,v 1.4 2006/06/29 19:52:30 gunter Exp $ // GEANT4 tag $Name: geant4-08-01 $ // // --------------- G4hIonisation52 physics process ------------------------------- // by Laszlo Urban, 30 May 1997 // ----------------------------------------------------------------------------- // // corrected by L.Urban on 24/09/97 // corrected by L.Urban on 13/01/98 // bugs fixed by L.Urban on 02/02/99 // 10/02/00 modifications , new e.m. structure, L.Urban // 10-08-01 new methods Store/Retrieve PhysicsTable (mma) // 14-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma) // 19-09-01 come back to previous process name "hIoni" // 29-10-01 all static functions no more inlined // 15-01-03 Migrade to cut per region (V.Ivanchenko) // 08-08-03 This class is frozen at the release 5.2 (V.Ivanchenko) // 09-11-04 Remove Store/Retrieve tables (V.Ivantchenko) // 07-02-06 ComputeCrossSectionPerAtom() and dEdx() made public (mma) // // ----------------------------------------------------------------------------- // Class description // // This class manages the ionisation process for hadrons. // it inherites from G4VContinuousDiscreteProcess via G4VhEnergyLoss. // // Class description - end //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #ifndef G4hIonisation52_h #define G4hIonisation52_h 1 #include "G4VhEnergyLoss.hh" #include "G4MaterialCutsCouple.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... class G4hIonisation52 : public G4VhEnergyLoss { public: // with description G4hIonisation52(const G4String& processName = "hIoni"); ~G4hIonisation52(); G4bool IsApplicable(const G4ParticleDefinition&); // return true for charged particles, false otherwise void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); // this function overloads a virtual function of the base class. // It is invoked by the G4ParticleWithCuts::SetCut() method. // It invokes BuildLambdaTable(), BuildLossTable(), BuildDEDXTable() void BuildLossTable(const G4ParticleDefinition& aParticleType); // build the dE/dx tables due to the ionisation, for every materials. // (restricted stopping power, Bethe-Bloch formula) void BuildLambdaTable(const G4ParticleDefinition& aParticleType); // build mean free path tables for the delta rays production. // the tables are built for every materials. virtual void PrintInfoDefinition(); // Print few lines of informations about the process: validity range, // origine ..etc.. // Invoked by BuildPhysicsTable(). G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize, G4ForceCondition* condition ); // It returns the MeanFreePath of the process for the current track : // (energy, material) // The previousStepSize and G4ForceCondition* are not used. // This function overloads a virtual function of the base class. // It is invoked by the ProcessManager of the Particle. G4VParticleChange *PostStepDoIt(const G4Track& track, const G4Step& Step ); // It computes the final state of the process (at end of step), // returned as a ParticleChange object. // This function overloads a virtual function of the base class. // It is invoked by the ProcessManager of the Particle. public: // with description virtual G4double ComputeRestrictedMeandEdx( const G4ParticleDefinition& aParticleType, G4double KineticEnergy, const G4Material* material, G4double DeltaThreshold); // computes restricted mean dE/dx in Geant4 internal units. virtual G4double ComputeCrossSectionPerAtom( const G4ParticleDefinition& aParticleType, G4double KineticEnergy, G4double AtomicNumber, G4double DeltaThreshold); // computes total cross section per atom in Geant4 internal units. protected: virtual G4double SecondaryEnergyThreshold(size_t index); G4PhysicsTable* theMeanFreePathTable; private: // hide assignment operator G4hIonisation52 & operator=(const G4hIonisation52 &right); G4hIonisation52(const G4hIonisation52&); private: static G4double LowerBoundLambda; // bining for lambda table static G4double UpperBoundLambda; static G4int NbinLambda; G4double LowestKineticEnergy; // binning for dE/dx table G4double HighestKineticEnergy; G4int TotBin; G4double Tmincut; // min energy of d-rays G4double initialMass; // mass for Lambda table const std::vector* secondaryEnergyCuts; public: // with description static void SetLowerBoundLambda(G4double val); static void SetUpperBoundLambda(G4double val); static void SetNbinLambda(G4int n); // set the parameters of the mean free path table. static G4double GetLowerBoundLambda(); static G4double GetUpperBoundLambda(); static G4int GetNbinLambda(); // get the parameters of the mean free path table. }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #include "G4hIonisation52.icc" #endif