Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4StandardCerenkovModel.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // --------------------------------------------------------------------
0027 //
0028 // G4StandardCerenkovModel
0029 //
0030 // Class description:
0031 // The classical Cerenkov gamma emission assuming infinite media.
0032 // The model is active only inside defined list of logical volumes
0033 //
0034 // Created 25.05.2025 V.Ivanchenko on base of G4Cerenkov class
0035 //
0036 // --------------------------------------------------------------------
0037 
0038 #ifndef G4StandardCerenkovModel_h
0039 #define G4StandardCerenkovModel_h 1
0040 
0041 #include "G4VXRayModel.hh"
0042 #include "globals.hh"
0043 #include "G4LogicalVolume.hh"
0044 #include "G4MaterialPropertyVector.hh"
0045 
0046 #include <vector>
0047 
0048 class G4MaterialCutsCouple;
0049 class G4ParticleDefinition;
0050 class G4Step;
0051 class G4Track;
0052 
0053 class G4StandardCerenkovModel : public G4VXRayModel
0054 {
0055 public:
0056   G4StandardCerenkovModel();
0057 
0058   // the default copy constructor is used by G4GeneralCerenkov class
0059   G4StandardCerenkovModel(const G4StandardCerenkovModel&) = default;
0060   
0061   ~G4StandardCerenkovModel() override;
0062 
0063   G4StandardCerenkovModel& operator=(const G4StandardCerenkovModel& right) = delete;
0064   G4StandardCerenkovModel& operator==(const G4StandardCerenkovModel& right) = delete;
0065   G4StandardCerenkovModel& operator!=(const G4StandardCerenkovModel& right) = delete;
0066 
0067   void InitialiseModel() override;
0068 
0069   G4bool StepLimitForVolume(G4double& limit) override;
0070 
0071   void SampleXRays(std::vector<G4Track*>& out, const G4Step&) override;
0072 
0073   void ModelDescription(std::ostream& outFile) const override;
0074   
0075 private:
0076 
0077   G4double AverageNumberOfPhotons(const G4double charge, const G4double beta,
0078                   const G4double n) const
0079   {
0080     return fRfact*charge*charge*std::max(1.0 - 1.0/(beta*n), 0.0);
0081   }
0082 
0083   static std::vector<G4double>* fBetaLim;
0084   static std::vector<std::vector<G4double>* >* fMeanNumberOfPhotons;
0085   static std::vector<std::vector<std::vector<G4double>* >* >* fIntegral;
0086   static std::vector<G4MaterialPropertyVector*>* fRindex;
0087 
0088   const G4ParticleDefinition* fParticle{nullptr};
0089   const G4ParticleDefinition* fPhoton{nullptr};
0090   G4double fPreStepKinE{0.0};
0091   G4double fMass{0.0};
0092   G4double fCharge{0.0};
0093   G4double fMeanNPhotons{0.0};
0094   G4double fRfact{1.0};
0095   
0096   G4bool isInitializer{false};
0097   G4bool isInitialized{false};
0098 };
0099 
0100 #endif