Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:22:31

0001 // ********************************************************************
0002 // * License and Disclaimer                                           *
0003 // *                                                                  *
0004 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0005 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0006 // * conditions of the Geant4 Software License,  included in the file *
0007 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0008 // * include a list of copyright holders.                             *
0009 // *                                                                  *
0010 // * Neither the authors of this software system, nor their employing *
0011 // * institutes,nor the agencies providing financial support for this *
0012 // * work  make  any representation or  warranty, express or implied, *
0013 // * regarding  this  software system or assume any liability for its *
0014 // * use.  Please see the license in the file  LICENSE  and URL above *
0015 // * for the full disclaimer and the limitation of liability.         *
0016 // *                                                                  *
0017 // * This  code  implementation is the result of  the  scientific and *
0018 // * technical work of the GEANT4 collaboration.                      *
0019 // * By using,  copying,  modifying or  distributing the software (or *
0020 // * any work based  on the software)  you  agree  to acknowledge its *
0021 // * use  in  resulting  scientific  publications,  and indicate your *
0022 // * acceptance of all terms of the Geant4 Software license.          *
0023 // ********************************************************************
0024 //
0025 //
0026 /// \file ExGflashDetectorConstruction.hh
0027 /// \brief Definition of the ExGflashDetectorConstruction class
0028 //
0029 #ifndef ExGflashDetectorConstruction_h
0030 #define ExGflashDetectorConstruction_h 1
0031 
0032 #include "ExGflashSensitiveDetector.hh"
0033 
0034 #include "G4Cache.hh"
0035 #include "G4ThreeVector.hh"
0036 #include "G4VUserDetectorConstruction.hh"
0037 #include "globals.hh"
0038 
0039 class G4LogicalVolume;
0040 class G4VPhysicalVolume;
0041 class G4Material;
0042 class G4Region;
0043 
0044 class GFlashHomoShowerParameterisation;
0045 class GFlashShowerModel;
0046 class GFlashHitMaker;
0047 class GFlashParticleBounds;
0048 class ExGflashMessenger;
0049 
0050 class ExGflashDetectorConstruction : public G4VUserDetectorConstruction
0051 {
0052   public:
0053     ExGflashDetectorConstruction();
0054     ~ExGflashDetectorConstruction() override;
0055 
0056     G4VPhysicalVolume* Construct() override;
0057     void ConstructSDandField() override;
0058 
0059     void SetLBining(G4ThreeVector);
0060     void SetRBining(G4ThreeVector);
0061     void SetVerbose(G4int val) { fVerbose = val; }
0062 
0063     void SetMaterial(G4String mat);
0064 
0065     G4int GetVerbose() const { return fVerbose; }
0066 
0067     G4int GetnLtot() const { return fNLtot; }
0068     G4int GetnRtot() const { return fNRtot; }
0069     G4double GetdLradl() const { return fDLradl; }
0070     G4double GetdRradl() const { return fDRradl; }
0071 
0072     G4double GetSDRadLen() const { return fSDRadLen; }
0073 
0074   private:
0075     G4int fNbOfCrystals{10};  // cube of nb x nb crystals
0076 
0077     G4double fCrystalWidth;  // x,y size
0078     G4double fCrystalLength;  // z size
0079 
0080     G4LogicalVolume* fCrystal_log{nullptr};
0081     G4Material* fDetMat{nullptr};
0082     G4Region* fRegion{nullptr};
0083 
0084     G4double fSDRadLen;  // SD material Rad Lenght
0085 
0086     G4int fVerbose{0};
0087     G4int fNLtot{40}, fNRtot{50};  // nb of bins: longitudinal and radial
0088     G4double fDLradl{0.5}, fDRradl{0.1};  // bin thickness (in radl unit)
0089 
0090     ExGflashMessenger* fGflashMessenger;
0091 
0092     inline static G4ThreadLocal GFlashShowerModel* fFastShowerModel = nullptr;
0093     inline static G4ThreadLocal GFlashHomoShowerParameterisation* fParameterisation = nullptr;
0094     inline static G4ThreadLocal GFlashParticleBounds* fParticleBounds = nullptr;
0095     inline static G4ThreadLocal GFlashHitMaker* fHitMaker = nullptr;
0096 };
0097 
0098 #endif