Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:30

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   
0053     GFlashHomoShowerParameterisation(G4Material * aMat,
0054                                      GVFlashHomoShowerTuning * aPar = 0);
0055     ~GFlashHomoShowerParameterisation();
0056 
0057     void ComputeRadialParameters(G4double y, G4double Tau);
0058     void GenerateLongitudinalProfile(G4double Energy); 
0059     void ComputeZAX0EFFetc();
0060 
0061     G4double IntegrateEneLongitudinal(G4double LongitudinalStep);
0062     G4double IntegrateNspLongitudinal(G4double LongitudinalStep);
0063     G4double ComputeTau(G4double LongitudinalPosition);
0064 
0065     G4double GeneratePhi();
0066     G4double GenerateRadius(G4int ispot, G4double Energy,
0067     G4double LongitudinalPosition);
0068     G4double GenerateExponential(G4double Energy);
0069     void SetMaterial(G4Material *mat);
0070 
0071     inline G4double GetAveR99() {return (3.5 * Rm);}
0072     inline G4double GetAveR90() {return (1.5 * Rm);} //ok
0073 
0074     inline G4double GetAveTmx() {return (X0 * std::exp(AveLogTmaxh));}
0075     inline G4double GetAveT99() {return (X0 * AveLogTmaxh/(AveLogAlphah-1.00));}
0076     inline G4double GetAveT90() {return (2.5* X0*std::exp( AveLogTmaxh) );}
0077 
0078     inline   G4double GetNspot(){ return NSpot;}
0079     inline   G4double GetX0(){return X0;}  
0080     inline   G4double GetEc(){return Ec;} 
0081     inline   G4double GetRm(){return Rm;} 
0082 
0083   private:
0084 
0085     G4Material *material;
0086 
0087     //Resolution
0088     G4double ConstantResolution; 
0089     G4double NoiseResolution;   
0090     G4double SamplingResolution;
0091 
0092     // parametrization parameters
0093     GVFlashHomoShowerTuning * thePar;
0094 
0095     // Cashed parameters:  
0096     // Longitudinal Coefficients for a homogeneous calo
0097     G4double ParAveT1;
0098     G4double ParAveA1,ParAveA2,ParAveA3;
0099     G4double ParSigLogT1,ParSigLogT2;
0100     G4double ParSigLogA1,ParSigLogA2;
0101     G4double ParRho1,ParRho2;
0102 
0103     void ComputeLongitudinalParameters(G4double y);
0104     void GenerateEnergyProfile(G4double y);
0105     void GenerateNSpotProfile(G4double y);
0106 
0107     // Radial Coefficients
0108     G4double ParRC1,ParRC2,ParRC3,ParRC4;
0109     G4double ParWC1,ParWC2,ParWC3;
0110     G4double ParWC4,ParWC5,ParWC6;
0111     G4double ParRT1,ParRT2,ParRT3,ParRT4;
0112     G4double ParRT5,ParRT6;
0113 
0114     // Spot multiplicity Coefficients
0115     G4double ParSpotT1,ParSpotT2,ParSpotA1, ParSpotA2;
0116     G4double ParSpotN1,ParSpotN2;
0117 
0118     // PARAMETRISATION variables (Energy & position dependent)
0119     // Longitudinal 
0120     // homogeneous
0121     G4double AveLogAlphah,AveLogTmaxh;
0122     G4double SigmaLogAlphah,SigmaLogTmaxh;
0123     G4double Rhoh;
0124     G4double Alphah,Tmaxh,Betah;  
0125 
0126     // Multiplicity
0127     G4double NSpot,AlphaNSpot,TNSpot,BetaNSpot;
0128 
0129     //Radial
0130     G4double RadiusCore, WeightCore,RadiusTail;
0131 };
0132 
0133 #endif
0134