Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/parameterisations/gflash/gflasha/README is written in an unsupported language. File is not indexed.

0001      =========================================================
0002      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0003      =========================================================
0004 
0005                             GFLASHa Example
0006                             ---------------
0007 
0008 The Example demonstrating usage 'gflash' shower parameterisation
0009 in homogeneous calorimeter.Compare with glash1,2,3 in this
0010 example histograms was added. This makes it possible to use this
0011 example for fine tuning of GFLASH parameters.
0012  This example allow compare the shower profiles from fast simulation
0013 with full simulation by histograming of longitudinal (slice)
0014 and radial profiles with different "binning".
0015 Then GFlash fast simulation can be "tuned" via modification
0016 of the model parameters file:
0017 
0018 include/ExGflashHomoShowerTuning.hh
0019 
0020 in this example.
0021 
0022 PHYSICS LIST
0023 ------------
0024 
0025 The Physics list factory is used in this example.
0026 The default physics list is FTFP_BERT which has EM opt0.
0027 Additionally the G4FastSimulationPhysics physics
0028 constructor was created to insert the G4FastSimulationManager Process
0029 that is making the interface between the fast simulation and the tracking.
0030 
0031 THe default PHYSICS list may be changed via setting of the PHYSLIST environment
0032 variable, e.g:
0033 
0034 export PHYSLIST=FTFP_BERT_EMZ # for FTFP_BERT with opt 4 EM physics
0035 
0036 
0037 GEOMETRY DEFINITION
0038 -------------------
0039 
0040 In this example the calorimeter is a simple cube,
0041 which consists of 10 x 10 crystals of PbWO4 (CMS like).
0042 
0043 Geometry, sensitive detector and hits are defined respectively in:
0044  ExGflashDetectorConstruction
0045  ExGflashSensitiveDetector
0046  ExGflashHit
0047 
0048 Materials can be choosen from Nist Materials: G4_Air G4_WATER ...
0049 eg: /exgflash/det/setMat G4_PbWO4 see also: csi1.mac
0050 
0051 HIT SCORING
0052 -----------
0053 
0054 The virtual cylinder sliced longitudinally (slice) and radially (ring) was used.
0055 The size of the slices and rings are expressed in radiation
0056 length units and can be changed.
0057 eg: /exgflash/det/setLbin 20   1.    ---> 20 slices of 1. radl
0058     /exgflash/det/setRbin  5   0.25  --->  5 rings of 0.25 radl
0059 
0060      (MaxBin = 500 in both directions)
0061 
0062 In ExGflashEventAction class the arrays corresponded slices and rings was
0063 created and filled with hists information. This arrays was use to fill
0064 histograms later.
0065 
0066 VISUALIZATION
0067 -------------
0068 
0069 The Visualization Manager is set in the main().
0070 The initialization of the drawing is done via the commands /vis/...
0071 in the macro vis.mac. To get visualization:
0072   /control/execute vis.mac
0073 
0074 
0075 HOW TO START ?
0076 --------------
0077 
0078 - Execute ExGflasha in 'batch' mode from macro files
0079  % ExGflasha   test.mac
0080 
0081 - Execute ExGflasha in 'interactive mode' with visualization
0082  % ExGflasha
0083    ....
0084   Idle> type your commands
0085   ....
0086   Idle> exit
0087 
0088 The GFLASH activated via:
0089 
0090 /GFlash/flag 1
0091 
0092 HISTOGRAMS
0093 ----------
0094 
0095    ExGflasha produces several histograms:
0096    The histograms defined in ExGflashHistoManager class
0097 
0098      Content of these histo:
0099 
0100       h0 : energy deposit       per event
0101       h1 : the number of hits  per event
0102       h2 : the energy per hit ( in MeV )
0103 
0104       p0 : longitudinal energy profile
0105       p1 : radial energy profile
0106 
0107       p2 : cumulated longitudinal energy profile
0108       p3 : cumulated radial energy profile
0109 
0110  To define the output file name with histograms, use the UI command :
0111 
0112    "/analysys/setFileName name"
0113 
0114 MACROS
0115 ------
0116 The macros to run in batch mode:
0117 
0118 test.mac - default macro for example testing
0119 
0120 run01.mac - show how redefine the histograms
0121 
0122 csi1.mac - macro which produce profiles in CsI Material
0123 
0124 test0.mac - profile comparison, long run without GFLASH
0125 test1.mac - profile comparison, long run with GFLASH on