Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:13

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 // Class for description of  transition radiation generated
0027 // by  charged particle crossed interface between material 1
0028 // and material 2 (1 -> 2). Transition radiation could be of kind:
0029 // - optical back
0030 // - optical forward
0031 // - X-ray   forward (for relativistic case Tkin/mass >= 10^2)
0032 //
0033 // GEANT 4 class header file --- Copyright CERN 1995
0034 //
0035 // History:
0036 // 18.12.97, V. Grichine (Vladimir.Grichine@cern.ch)
0037 // 02.02.00, V.Grichine, new data fEnergy and fVarAngle for double
0038 //                       numerical integration in inherited classes
0039 // 03.06.03, V.Ivanchenko fix compilation warnings
0040 // 28.07.05, P.Gumplinger add G4ProcessType to constructor
0041 
0042 #ifndef G4TransitionRadiation_h
0043 #define G4TransitionRadiation_h
0044 
0045 #include "globals.hh"
0046 #include "G4ParticleDefinition.hh"
0047 #include "G4Step.hh"
0048 #include "G4Track.hh"
0049 #include "G4VDiscreteProcess.hh"
0050 #include "G4VParticleChange.hh"
0051 
0052 class G4TransitionRadiation : public G4VDiscreteProcess
0053 {
0054  public:
0055   explicit G4TransitionRadiation(const G4String& processName = "TR",
0056                                  G4ProcessType type = fElectromagnetic);
0057 
0058   virtual ~G4TransitionRadiation();
0059 
0060   G4TransitionRadiation(const G4TransitionRadiation& right) = delete;
0061   G4TransitionRadiation& operator=(const G4TransitionRadiation& right) = delete;
0062 
0063   // Methods
0064 
0065   G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
0066 
0067   virtual G4double GetMeanFreePath(const G4Track&, G4double,
0068                                    G4ForceCondition* condition) override;
0069 
0070   virtual G4VParticleChange* PostStepDoIt(const G4Track&,
0071                                           const G4Step&) override;
0072 
0073   virtual void ProcessDescription(std::ostream&) const override;
0074   virtual void DumpInfo() const override { ProcessDescription(G4cout); };
0075 
0076   virtual G4double SpectralAngleTRdensity(G4double energy,
0077                                           G4double varAngle) const = 0;
0078 
0079   G4double IntegralOverEnergy(G4double energy1, G4double energy2,
0080                               G4double varAngle) const;
0081 
0082   G4double IntegralOverAngle(G4double energy, G4double varAngle1,
0083                              G4double varAngle2) const;
0084 
0085   G4double AngleIntegralDistribution(G4double varAngle1,
0086                                      G4double varAngle2) const;
0087 
0088   G4double EnergyIntegralDistribution(G4double energy1, G4double energy2) const;
0089 
0090  protected:
0091   // Local constants
0092   // Accuracy of Sympson integration
0093   static constexpr G4int fSympsonNumber = 100;
0094   static constexpr G4int fGammaNumber   = 15;
0095   static constexpr G4int fPointNumber   = 100;
0096 
0097   G4double fGamma;
0098   G4double fEnergy;
0099   G4double fVarAngle;
0100 
0101   G4double fMinEnergy;  //  min TR energy
0102   G4double fMaxEnergy;  //  max TR energy
0103   G4double fMaxTheta;   //  max theta of TR quanta
0104 
0105   G4double fSigma1;  // plasma energy Sq of matter1
0106   G4double fSigma2;  // plasma energy Sq of matter2
0107 
0108   G4int fMatIndex1;  // index of the 1st material
0109   G4int fMatIndex2;  // index of the 2nd material
0110 };
0111 
0112 #endif  // G4TransitionRadiation_h