\page Examplegflash1 Example gflash1 ## Geometry and SD This example uses only the mass geometry, with each crystal defined as a volume, with parametrisation attached to the envelope in the mass geometry. Geometry and sensitive detector are defined in: - ExGflash1DetectorConstruction - ExGflash1SensitiveDetector ## Details of implementation To use GFLASH the user has to implement the following: - ExGflash1DetectorConstruction::ConstructSDandField() : \n Here GFLASH has to be initialized and assigend to the envelope, where it should be active (here our calorimeter = caloLog ) ```cpp // ********************************************** // * Initializing shower modell // *********************************************** G4cout << "Creating shower parameterization models" << G4endl; fFastShowerModel = new GFlashShowerModel("fFastShowerModel", fRegion); fParameterisation = new GFlashHomoShowerParameterisation(pbWO4); fFastShowerModel->SetParameterisation(*fParameterisation); fParticleBounds = new GFlashParticleBounds(); fFastShowerModel->SetParticleBounds(*fParticleBounds); fHitMaker = new GFlashHitMaker(); fFastShowerModel->SetHitMaker(*fHitMaker); G4cout<<"end shower parameterization."<