// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * 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. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // $Id: G4MultipleScattering.icc,v 1.7 2002/05/24 06:11:24 urban Exp $ // GEANT4 tag $Name: geant4-05-00 $ // //------------ G4MultipleScattering physics process --------------------------- // by Laszlo Urban, March 2001 // // Modified: // // 18-05-01 V.Ivanchenko Clean up against Linux ANSI compilation // 23-08-01 new angle and z distribution,energy dependence reduced, // Store,Retrieve methods commented out temporarily, L.Urban // 27-08-01 bugfix in AlongStepDoIt, L.Urban // 28-08-01 GetContinuousStepLimit and AlongStepDoIt moved to .cc file (mma) // 11-09-01 G4MultipleScatteringx put as default: G4MultipleScattering (mma) // //------------------------------------------------------------------------------ //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4bool G4MultipleScattering::IsApplicable(const G4ParticleDefinition& particle) { return(particle.GetPDGCharge() != 0.); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4double G4MultipleScattering::AlongStepGetPhysicalInteractionLength( const G4Track& track, G4double previousStepSize, G4double currentMinimumStep, G4double& currentSafety, G4GPILSelection* selection) { // get Step limit proposed by the process G4double steplength = GetContinuousStepLimit(track,previousStepSize, currentMinimumStep,currentSafety); // set return value for G4GPILSelection *selection = valueGPILSelectionMSC; return steplength; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4double G4MultipleScattering::GetMeanFreePath( const G4Track& track, G4double, G4ForceCondition* condition) // it does not limit the Step size , but it sets condition to // Forced , because the PostStepDoIt always has to be called { *condition = Forced; return DBL_MAX; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4double G4MultipleScattering::GetTransportMeanFreePath(G4double KineticEnergy, G4Material* material) { G4bool isOut; return (*theTransportMeanFreePathTable) (material->GetIndex())->GetValue(KineticEnergy,isOut); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......