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 // 00027 // $Id: GVFlashShowerParameterisation.hh 69796 2013-05-15 13:26:12Z gcosmo $ 00028 // 00029 // 00030 //--------------------------------------------------------------- 00031 // GEANT 4 class header file 00032 // 00033 // GVFlashShowerParameterisation 00034 // 00035 // Class description: 00036 // 00037 // Base class for GFlash shower parameterisation. 00038 00039 // Author: Joanna Weng - 11.2005 00040 //--------------------------------------------------------------- 00041 #ifndef GVFlashShowerParameterisation_h 00042 #define GVFlashShowerParameterisation_h 1 00043 00044 #include "globals.hh" 00045 #include "GVFlashHomoShowerTuning.hh" 00046 00047 class G4Material; 00048 00049 class GVFlashShowerParameterisation 00050 { 00051 public: // with description 00052 00053 GVFlashShowerParameterisation(); 00054 virtual ~GVFlashShowerParameterisation(); 00055 00056 virtual void ComputeRadialParameters(G4double y, G4double Tau) = 0; 00057 virtual void GenerateLongitudinalProfile(G4double Energy) = 0; 00058 virtual G4double IntegrateEneLongitudinal(G4double LongitudinalStep) = 0; 00059 virtual G4double IntegrateNspLongitudinal(G4double LongitudinalStep) = 0; 00060 virtual G4double ComputeTau(G4double LongitudinalPosition) = 0; 00061 virtual G4double GenerateRadius(G4int ispot, G4double Energy, 00062 G4double LongitudinalPosition) = 0; 00063 virtual void ComputeLongitudinalParameters(G4double y) = 0; 00064 virtual void GenerateEnergyProfile(G4double y) = 0; 00065 virtual void GenerateNSpotProfile(G4double y) = 0; 00066 virtual G4double GenerateExponential(G4double Energy) = 0; 00067 00068 virtual G4double GetAveR99() = 0; 00069 virtual G4double GetAveR90() = 0; 00070 00071 virtual G4double GetAveTmx() = 0; 00072 virtual G4double GetAveT99() = 0; 00073 virtual G4double GetAveT90() = 0; 00074 00075 virtual G4double GetNspot() = 0; 00076 virtual G4double GetX0() = 0; 00077 virtual G4double GetEc() = 0; 00078 virtual G4double GetRm() = 0; 00079 00080 G4double GeneratePhi(); 00081 G4double GetEffZ(const G4Material * material); 00082 G4double GetEffA(const G4Material * material); 00083 G4double gam(G4double x, G4double a) const; // @@@@ gamma function 00084 void PrintMaterial(const G4Material * mat); 00085 00086 protected: 00087 00088 GVFlashHomoShowerTuning * thePar; 00089 // Parameterisation parameters 00090 G4double density, A, Z, X0, Ec, Rm; 00091 // Medium related quantities 00092 G4double NSpot; 00093 }; 00094 00095 #endif