Back to home page

EIC code displayed by LXR

 
 

    


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

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 // Process describing a straw tube radiator of X-ray transition radiation.
0029 // Thicknesses of plates and gas gaps are gamma distributed.
0030 // We suppose that:
0031 // formation zone ~ mean thickness << absorption length
0032 // for each material and in the range 1-100 keV. This allows us to simplify
0033 // interference effects in radiator stack (GetStackFactor method).
0034 //
0035 // History:
0036 // 22.04.05 V. Grichine, first version
0037 // 28.09.07, V.Ivanchenko general cleanup without change of algorithms
0038 //
0039 
0040 #ifndef G4StrawTubeXTRadiator_h
0041 #define G4StrawTubeXTRadiator_h 1
0042 
0043 #include "globals.hh"
0044 #include "G4LogicalVolume.hh"
0045 #include "G4Material.hh"
0046 #include "G4VXTRenergyLoss.hh"
0047 
0048 class G4SandiaTable;
0049 
0050 class G4StrawTubeXTRadiator : public G4VXTRenergyLoss
0051 {
0052  public:
0053   explicit G4StrawTubeXTRadiator(
0054     G4LogicalVolume* anEnvelope, G4Material*, G4Material*, G4double, G4double,
0055     G4Material*, G4bool unishut = false,
0056     const G4String& processName = "StrawTubeXTRadiator");
0057   ~G4StrawTubeXTRadiator();
0058 
0059   // Auxiliary functions for plate/gas material parameters
0060   G4double GetMediumFormationZone(G4double, G4double, G4double);
0061   void ComputeMediumPhotoAbsCof();
0062   G4double GetMediumLinearPhotoAbs(G4double);
0063   G4complex GetMediumComplexFZ(G4double, G4double, G4double);
0064 
0065   G4double GetStackFactor(G4double energy, G4double gamma,
0066                           G4double varAngle) override;
0067 
0068   void ProcessDescription(std::ostream&) const override;
0069   void DumpInfo() const override { ProcessDescription(G4cout); };
0070 
0071  protected:
0072   G4SandiaTable* fMediumPhotoAbsCof;
0073 
0074   G4double fSigma3;
0075 
0076   G4int fMatIndex3;
0077 };
0078 
0079 #endif