// // ******************************************************************** // * 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: G4UniversalFluctuation93.hh,v 1.2 2010/10/26 10:06:12 vnivanch Exp $ // GEANT4 tag $Name: emstand-V09-03-24 $ // // ------------------------------------------------------------------- // // GEANT4 Class header file // // // File name: G4UniversalFluctuation93 // // Author: V.Ivanchenko make a class with the Laszlo Urban model // // Creation date: 03.01.2002 // // Modifications: // // 09-12-02 remove warnings (V.Ivanchenko) // 28-12-02 add method Dispersion (V.Ivanchenko) // 07-02-03 change signature (V.Ivanchenko) // 13-02-03 Add name (V.Ivanchenko) // 16-10-03 Changed interface to Initialisation (V.Ivanchenko) // 07-02-05 define problim = 5.e-3 (mma) // 14-06-10 saved version of 9.3 model with the name G4UniversalFluctuation93 // // Class Description: // // Implementation of energy loss fluctuations // ------------------------------------------------------------------- // #ifndef G4UniversalFluctuation93_h #define G4UniversalFluctuation93_h 1 #include "G4VEmFluctuationModel.hh" #include "G4ParticleDefinition.hh" class G4UniversalFluctuation93 : public G4VEmFluctuationModel { public: G4UniversalFluctuation93(const G4String& nam = "UniFluc93"); virtual ~G4UniversalFluctuation93(); virtual G4double SampleFluctuations(const G4Material*, const G4DynamicParticle*, G4double&, G4double&, G4double&); virtual G4double Dispersion( const G4Material*, const G4DynamicParticle*, G4double&, G4double&); virtual void InitialiseMe(const G4ParticleDefinition*); // Initialisation prestep virtual void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); private: // hide assignment operator G4UniversalFluctuation93 & operator=(const G4UniversalFluctuation93 &right); G4UniversalFluctuation93(const G4UniversalFluctuation93&); const G4ParticleDefinition* particle; const G4Material* lastMaterial; G4double particleMass; G4double chargeSquare; // data members to speed up the fluctuation calculation G4double ipotFluct; G4double electronDensity; G4double f1Fluct; G4double f2Fluct; G4double e1Fluct; G4double e2Fluct; G4double e1LogFluct; G4double e2LogFluct; G4double ipotLogFluct; G4double e0; G4double e1,e2; G4double minNumberInteractionsBohr; G4double theBohrBeta2; G4double minLoss; G4double nmaxCont1; G4double nmaxCont2; }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif