GFlashHomoShowerParameterisation.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 //
00027 // $Id: GFlashHomoShowerParameterisation.hh 69796 2013-05-15 13:26:12Z gcosmo $
00028 //
00029 //
00030 // ---------------------------------------------------------------
00031 //  GEANT 4 class header file
00032 //
00033 //  GFlashHomoShowerParameterisation
00034 //
00035 //  Class description:
00036 //
00037 //  GFlash homogeneous shower parameterisation.
00038 
00039 // Author: Joanna Weng - 02.2004
00040 // ---------------------------------------------------------------
00041 #ifndef GFlashHomoShowerParameterisation_h
00042 #define GFlashHomoShowerParameterisation_h 1
00043 
00044 #include "globals.hh"
00045 #include "GVFlashHomoShowerTuning.hh"
00046 #include "GVFlashShowerParameterisation.hh"
00047 
00048 class G4Material;
00049 
00050 class GFlashHomoShowerParameterisation : public GVFlashShowerParameterisation
00051 {
00052   public:  // with description
00053   
00054     GFlashHomoShowerParameterisation(G4Material * aMat,
00055                                      GVFlashHomoShowerTuning * aPar = 0);
00056     ~GFlashHomoShowerParameterisation();
00057 
00058     void ComputeRadialParameters(G4double y, G4double Tau);
00059     void GenerateLongitudinalProfile(G4double Energy); 
00060     void ComputeZAX0EFFetc();
00061 
00062     G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
00063     G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
00064     G4double ComputeTau(G4double LongitudinalPosition);
00065 
00066     G4double GeneratePhi();
00067     G4double GenerateRadius(G4int ispot, G4double Energy,
00068     G4double LongitudinalPosition);
00069     G4double GenerateExponential(G4double Energy);
00070     void SetMaterial(G4Material *mat);
00071 
00072     inline G4double GetAveR99() {return (3.5 * Rm);}
00073     inline G4double GetAveR90() {return (1.5 * Rm);} //ok
00074 
00075     inline G4double GetAveTmx() {return (X0 * std::exp(AveLogTmaxh));}
00076     inline G4double GetAveT99() {return (X0 * AveLogTmaxh/(AveLogAlphah-1.00));}
00077     inline G4double GetAveT90() {return (2.5* X0*std::exp( AveLogTmaxh) );}
00078 
00079     inline   G4double GetNspot(){ return NSpot;}
00080     inline   G4double GetX0(){return X0;}  
00081     inline   G4double GetEc(){return Ec;} 
00082     inline   G4double GetRm(){return Rm;} 
00083 
00084   private:
00085 
00086     G4Material *material;
00087 
00088     //Resolution
00089     G4double ConstantResolution; 
00090     G4double NoiseResolution;   
00091     G4double SamplingResolution;
00092 
00093     // parametrization parameters
00094     GVFlashHomoShowerTuning * thePar;
00095     G4bool owning;
00096 
00097     // Cashed parameters:  
00098     // Longitudinal Coefficients for a homogeneous calo
00099     G4double ParAveT1;
00100     G4double ParAveA1,ParAveA2,ParAveA3;
00101     G4double ParSigLogT1,ParSigLogT2;
00102     G4double ParSigLogA1,ParSigLogA2;
00103     G4double ParRho1,ParRho2;
00104 
00105     void ComputeLongitudinalParameters(G4double y);
00106     void GenerateEnergyProfile(G4double y);
00107     void GenerateNSpotProfile(G4double y);
00108 
00109     // Radial Coefficients
00110     G4double ParRC1,ParRC2,ParRC3,ParRC4;
00111     G4double ParWC1,ParWC2,ParWC3;
00112     G4double ParWC4,ParWC5,ParWC6;
00113     G4double ParRT1,ParRT2,ParRT3,ParRT4;
00114     G4double ParRT5,ParRT6;
00115 
00116     // Spot multiplicity Coefficients
00117     G4double ParSpotT1,ParSpotT2,ParSpotA1, ParSpotA2;
00118     G4double ParSpotN1,ParSpotN2;
00119 
00120     // PARAMETRISATION variables (Energy & position dependent)
00121     // Longitudinal 
00122     // homogeneous
00123     G4double AveLogAlphah,AveLogTmaxh;
00124     G4double SigmaLogAlphah,SigmaLogTmaxh;
00125     G4double Rhoh;
00126     G4double Alphah,Tmaxh,Betah;  
00127 
00128     // Multiplicity
00129     G4double NSpot,AlphaNSpot,TNSpot,BetaNSpot;
00130 
00131     //Radial
00132     G4double RadiusCore, WeightCore,RadiusTail;
00133 };
00134 
00135 #endif
00136 

Generated on Mon May 27 17:50:28 2013 for Geant4 by  doxygen 1.4.7