Geant4 Cross Reference |
1 // 2 // ******************************************************************** 3 // * License and Disclaimer * 4 // * * 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. * 10 // * * 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitation of liability. * 17 // * * 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************************************** 25 // 26 // 27 28 // ******************************************************************** 29 // 30 // CaTS (Calorimetry and Tracking Simulation) 31 // 32 // Authors : Hans Wenzel 33 // Soon Yung Jun 34 // (Fermi National Accelerator Laboratory) 35 // 36 // History 37 // October 18th, 2021 : first implementation 38 // 39 // ******************************************************************** 40 // 41 /// \file RadiatorSD.hh 42 /// \brief Definition of the CaTS::RadiatorSD class 43 44 #pragma once 45 46 #include "G4VSensitiveDetector.hh" 47 #include "G4ScintillationTrackInformation.hh" 48 #include <G4MaterialPropertyVector.hh> 49 #include <G4String.hh> 50 #include <G4Types.hh> 51 class G4Step; 52 class G4Material; 53 class G4HCofThisEvent; 54 class G4MaterialPropertiesTable; 55 class G4PhysicsOrderedFreeVector; 56 class G4PhysicsTable; 57 class G4TouchableHistory; 58 59 class RadiatorSD : public G4VSensitiveDetector 60 { 61 public: 62 RadiatorSD(G4String name); 63 virtual ~RadiatorSD() = default; 64 // methods from base class 65 void Initialize(G4HCofThisEvent* hitCollection) final; 66 G4bool ProcessHits(G4Step* step, G4TouchableHistory* history) final; 67 void EndOfEvent(G4HCofThisEvent* hitCollection) final; 68 69 private: 70 const G4Material* aMaterial; 71 G4MaterialPropertiesTable* aMaterialPropertiesTable; 72 // 73 // properties related to Scintillation 74 // 75 G4MaterialPropertyVector* Fast_Intensity; 76 G4MaterialPropertyVector* Slow_Intensity; 77 G4double YieldRatio; // slowerRatio, 78 G4double FastTimeConstant; // TimeConstant, 79 G4double SlowTimeConstant; // slowerTimeConstant, 80 G4ScintillationType ScintillationType; 81 // 82 // properties related to Cerenkov 83 // 84 G4MaterialPropertyVector* Rindex; 85 G4PhysicsOrderedFreeVector* CerenkovAngleIntegrals; 86 const G4PhysicsTable* thePhysicsTable; 87 G4double Pmin{ 0 }; 88 G4double Pmax{ 0 }; 89 G4double dp{ 0 }; 90 G4double nMax{ 0 }; 91 G4bool first{ true }; 92 G4bool verbose{ false }; 93 G4int tCphotons{ 0 }; 94 G4int tSphotons{ 0 }; 95 #ifdef WITH_G4OPTICKS 96 // 97 // info needed for generating Cerenkov photons on the GPU; 98 // 99 G4double maxCos{ 0.0 }; 100 G4double maxSin2{ 0.0 }; 101 G4double beta{ 0.0 }; 102 G4double beta1{ 0.0 }; 103 G4double beta2{ 0.0 }; 104 G4double BetaInverse{ 0.0 }; 105 G4double MeanNumberOfPhotons1{ 0.0 }; 106 G4double MeanNumberOfPhotons2{ 0.0 }; 107 G4int Sphotons{ 0 }; // number of scintillation photons this step 108 G4int Cphotons{ 0 }; // number of Cerenkov photons this step 109 const G4double ScintillationTime{ 0.0 }; 110 const G4int scntId{ 1 }; 111 #endif 112 }; 113