Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-15 08:59:47

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 //
0029 // ---------------------------------------------------------------
0030 //  GEANT 4 class header file
0031 //
0032 //  GFlashHomoShowerParameterisation
0033 //
0034 //  Class description:
0035 //
0036 //  GFlash homogeneous shower parameterisation.
0037 
0038 // Author: Joanna Weng - 02.2004
0039 // ---------------------------------------------------------------
0040 #ifndef GFlashHomoShowerParameterisation_h
0041 #define GFlashHomoShowerParameterisation_h 1
0042 
0043 #include "globals.hh"
0044 #include "GVFlashHomoShowerTuning.hh"
0045 #include "GVFlashShowerParameterisation.hh"
0046 
0047 class G4Material;
0048 
0049 class GFlashHomoShowerParameterisation : public GVFlashShowerParameterisation
0050 {
0051   public:  // with description
0052     GFlashHomoShowerParameterisation(G4Material* aMat, GVFlashHomoShowerTuning* aPar = 0);
0053     ~GFlashHomoShowerParameterisation();
0054 
0055     void ComputeRadialParameters(G4double y, G4double Tau);
0056     void GenerateLongitudinalProfile(G4double Energy);
0057     void ComputeZAX0EFFetc();
0058 
0059     G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
0060     G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
0061     G4double ComputeTau(G4double LongitudinalPosition);
0062 
0063     G4double GeneratePhi();
0064     G4double GenerateRadius(G4int ispot, G4double Energy, G4double LongitudinalPosition);
0065     G4double GenerateExponential(G4double Energy);
0066     void SetMaterial(G4Material* mat);
0067 
0068     inline G4double GetAveR99() { return (3.5 * Rm); }
0069     inline G4double GetAveR90() { return (1.5 * Rm); }  // ok
0070 
0071     inline G4double GetAveTmx() {return (X0 * std::exp(AveLogTmaxh));}
0072     inline G4double GetAveT99() {return (X0 * AveLogTmaxh/(AveLogAlphah-1.00));}
0073     inline G4double GetAveT90() {return (2.5* X0*std::exp( AveLogTmaxh) );}
0074 
0075     inline   G4double GetNspot(){ return NSpot;}
0076     inline G4double GetX0() { return X0; }
0077     inline G4double GetEc() { return Ec; }
0078     inline G4double GetRm() { return Rm; }
0079 
0080   private:
0081     G4Material* material;
0082 
0083     // Resolution
0084     G4double ConstantResolution;
0085     G4double NoiseResolution;
0086     G4double SamplingResolution;
0087 
0088     // parametrization parameters
0089     GVFlashHomoShowerTuning* thePar;
0090 
0091     // Cashed parameters:
0092     // Longitudinal Coefficients for a homogeneous calo
0093     G4double ParAveT1;
0094     G4double ParAveA1, ParAveA2, ParAveA3;
0095     G4double ParSigLogT1, ParSigLogT2;
0096     G4double ParSigLogA1, ParSigLogA2;
0097     G4double ParRho1, ParRho2;
0098 
0099     void ComputeLongitudinalParameters(G4double y);
0100     void GenerateEnergyProfile(G4double y);
0101     void GenerateNSpotProfile(G4double y);
0102 
0103     // Radial Coefficients
0104     G4double ParRC1, ParRC2, ParRC3, ParRC4;
0105     G4double ParWC1, ParWC2, ParWC3;
0106     G4double ParWC4, ParWC5, ParWC6;
0107     G4double ParRT1, ParRT2, ParRT3, ParRT4;
0108     G4double ParRT5, ParRT6;
0109 
0110     // Spot multiplicity Coefficients
0111     G4double ParSpotT1, ParSpotT2, ParSpotA1, ParSpotA2;
0112     G4double ParSpotN1, ParSpotN2;
0113 
0114     // PARAMETRISATION variables (Energy & position dependent)
0115     // Longitudinal
0116     // homogeneous
0117     G4double AveLogAlphah, AveLogTmaxh;
0118     G4double SigmaLogAlphah, SigmaLogTmaxh;
0119     G4double Rhoh;
0120     G4double Alphah, Tmaxh, Betah;
0121 
0122     // Multiplicity
0123     G4double NSpot, AlphaNSpot, TNSpot, BetaNSpot;
0124 
0125     // Radial
0126     G4double RadiusCore, WeightCore, RadiusTail;
0127 };
0128 
0129 #endif
0130