Warning, /geant4/examples/extended/parameterisations/gflash/gflash1/README.md is written in an unsupported language. File is not indexed.
0001 \page Examplegflash1 Example gflash1
0002
0003 ## Geometry and SD
0004
0005 This example uses only the mass geometry, with each crystal defined as a volume,
0006 with parametrisation attached to the envelope in the mass geometry.
0007 Geometry and sensitive detector are defined in:
0008 - ExGflash1DetectorConstruction
0009 - ExGflash1SensitiveDetector
0010
0011 ## Details of implementation
0012
0013 To use GFLASH the user has to implement the following:
0014
0015 - ExGflash1DetectorConstruction::ConstructSDandField() : \n
0016 Here GFLASH has to be initialized and assigend to the envelope,
0017 where it should be active (here our calorimeter = caloLog )
0018 ```cpp
0019 // **********************************************
0020 // * Initializing shower modell
0021 // ***********************************************
0022 G4cout << "Creating shower parameterization models" << G4endl;
0023 fFastShowerModel = new GFlashShowerModel("fFastShowerModel", fRegion);
0024 fParameterisation = new GFlashHomoShowerParameterisation(pbWO4);
0025 fFastShowerModel->SetParameterisation(*fParameterisation);
0026 fParticleBounds = new GFlashParticleBounds();
0027 fFastShowerModel->SetParticleBounds(*fParticleBounds);
0028 fHitMaker = new GFlashHitMaker();
0029 fFastShowerModel->SetHitMaker(*fHitMaker);
0030 G4cout<<"end shower parameterization."<<G4endl;
0031 // **********************************************
0032 ```
0033
0034 - ExGflash1SensitiveDetector: \n
0035 It is mandatory to use G4VGFlashSensitiveDetector as (additional)
0036 base class for the sensitive detector.
0037 Here it is necessary to implement a seperate
0038 interface, where the GFlash spots are processed.
0039 (ProcessHits(G4GFlashSpot*aSpot ,G4TouchableHistory* ROhist))
0040 The separate interface is used, because the GFLASH spots contains
0041 (naturally) less information than the full simulation.
0042
0043 ## Macros
0044
0045 - vis.mac - macro for use in interactive mode (default, if no arguments are specified)
0046 - test.mac - macro for tests: 50 GeV electrons are shot in the direction of the detector
0047 (along z axis), 10 times. As they enter the parametrisation envelope,
0048 the GFlash parametrisation is invoked and energy is deposited.
0049 The results are printed out:
0050 - energy in the most central crystal
0051 - energy in 3x3 crystals
0052 - energy in 5x5 crystals
0053 - number of created deposits
0054 - simulation time per event
0055
0056 See also [Category "parameterisations/gflash"](../../html/Examples_gflash.html) documentation.