Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StandardCerenkovModel.hh
Go to the documentation of this file.
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// G4StandardCerenkovModel
29//
30// Class description:
31// The classical Cerenkov gamma emission assuming infinite media.
32// The model is active only inside defined list of logical volumes
33//
34// Created 25.05.2025 V.Ivanchenko on base of G4Cerenkov class
35//
36// --------------------------------------------------------------------
37
38#ifndef G4StandardCerenkovModel_h
39#define G4StandardCerenkovModel_h 1
40
41#include "G4VXRayModel.hh"
42#include "globals.hh"
43#include "G4LogicalVolume.hh"
45
46#include <vector>
47
50class G4Step;
51class G4Track;
52
54{
55public:
57
58 // the default copy constructor is used by G4GeneralCerenkov class
60
61 ~G4StandardCerenkovModel() override;
62
66
67 void InitialiseModel() override;
68
69 G4bool StepLimitForVolume(G4double& limit) override;
70
71 void SampleXRays(std::vector<G4Track*>& out, const G4Step&) override;
72
73 void ModelDescription(std::ostream& outFile) const override;
74
75private:
76
77 G4double AverageNumberOfPhotons(const G4double charge, const G4double beta,
78 const G4double n) const
79 {
80 return fRfact*charge*charge*std::max(1.0 - 1.0/(beta*n), 0.0);
81 }
82
83 static std::vector<G4double>* fBetaLim;
84 static std::vector<std::vector<G4double>* >* fMeanNumberOfPhotons;
85 static std::vector<std::vector<std::vector<G4double>* >* >* fIntegral;
86 static std::vector<G4MaterialPropertyVector*>* fRindex;
87
88 const G4ParticleDefinition* fParticle{nullptr};
89 const G4ParticleDefinition* fPhoton{nullptr};
90 G4double fPreStepKinE{0.0};
91 G4double fMass{0.0};
92 G4double fCharge{0.0};
93 G4double fMeanNPhotons{0.0};
94 G4double fRfact{1.0};
95
96 G4bool isInitializer{false};
97 G4bool isInitialized{false};
98};
99
100#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
void SampleXRays(std::vector< G4Track * > &out, const G4Step &) override
G4StandardCerenkovModel & operator!=(const G4StandardCerenkovModel &right)=delete
G4bool StepLimitForVolume(G4double &limit) override
void ModelDescription(std::ostream &outFile) const override
G4StandardCerenkovModel & operator=(const G4StandardCerenkovModel &right)=delete
G4StandardCerenkovModel & operator==(const G4StandardCerenkovModel &right)=delete
G4StandardCerenkovModel(const G4StandardCerenkovModel &)=default
G4VXRayModel(const G4String &nam)