G4IonFluctuations.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class header file
00031 //
00032 //
00033 // File name:     G4IonFluctuations
00034 //
00035 // Author:        Vladimir Ivanchenko
00036 //
00037 // Creation date: 02.04.2003
00038 //
00039 // Modifications: 
00040 //
00041 // 16-10-03 Changed interface to Initialisation (V.Ivanchenko)
00042 // 01-06-08 Added initialisation of effective charge prestep (V.Ivanchenko)
00043 //
00044 // Class Description:
00045 //
00046 // Implementation of ion energy loss fluctuations
00047 
00048 // -------------------------------------------------------------------
00049 //
00050 
00051 #ifndef G4IonFluctuations_h
00052 #define G4IonFluctuations_h 1
00053 
00054 
00055 #include "G4VEmFluctuationModel.hh"
00056 #include "G4ParticleDefinition.hh"
00057 #include "G4UniversalFluctuation.hh"
00058 
00059 class G4IonFluctuations : public G4VEmFluctuationModel
00060 {
00061 
00062 public:
00063 
00064   G4IonFluctuations(const G4String& nam = "IonFluc");
00065 
00066   virtual ~G4IonFluctuations();
00067 
00068   // Sample fluctuations
00069   G4double SampleFluctuations(const G4Material*,
00070                               const G4DynamicParticle*,
00071                               G4double& tmax,
00072                               G4double& length,
00073                               G4double& meanLoss);
00074 
00075   // Compute dispertion 
00076   G4double Dispersion(const G4Material*,
00077                       const G4DynamicParticle*,
00078                       G4double& tmax,
00079                       G4double& length);
00080 
00081   // Initialisation prerun
00082   void InitialiseMe(const G4ParticleDefinition*);
00083 
00084   // Initialisation prestep
00085   void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2);
00086 
00087 private:
00088 
00089   G4double Factor(const G4Material*, G4double Zeff);
00090   G4double RelativisticFactor(const G4Material*, G4double Zeff);
00091 
00092   // hide assignment operator
00093   G4IonFluctuations & operator=(const  G4IonFluctuations &right);
00094   G4IonFluctuations(const  G4IonFluctuations&);
00095 
00096   G4UniversalFluctuation      uniFluct;
00097   const G4ParticleDefinition* particle;
00098 
00099   G4double particleMass;
00100   G4double charge;
00101   G4double chargeSquare;
00102   G4double effChargeSquare;
00103 
00104   // data members to speed up the fluctuation calculation
00105   G4double parameter;
00106   G4double minNumberInteractionsBohr;
00107   G4double theBohrBeta2;
00108   G4double minFraction;
00109   G4double xmin;
00110   G4double minLoss;
00111   // cash
00112   G4double kineticEnergy;
00113   G4double beta2;
00114 };
00115 
00116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00117 
00118 #endif
00119 

Generated on Mon May 27 17:48:39 2013 for Geant4 by  doxygen 1.4.7