// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4TransitionRadiation.cc,v 1.10 2010/10/14 18:38:21 vnivanch Exp $ // GEANT4 tag $Name: xrays-V09-03-05 $ // // G4TransitionRadiation class -- implementation file // GEANT 4 class implementation file --- Copyright CERN 1995 // CERN Geneva Switzerland // For information related to this code, please, contact // CERN, CN Division, ASD Group // History: // 1st version 11.09.97 V. Grichine (Vladimir.Grichine@cern.ch ) // 2nd version 16.12.97 V. Grichine // 3rd version 28.07.05, P.Gumplinger add G4ProcessType to constructor #include #include "G4TransitionRadiation.hh" #include "G4Material.hh" #include "G4EmProcessSubType.hh" // Local constants const G4int G4TransitionRadiation::fSympsonNumber = 100 ; const G4int G4TransitionRadiation::fGammaNumber = 15 ; const G4int G4TransitionRadiation::fPointNumber = 100 ; /////////////////////////////////////////////////////////////////////// // // Constructor for selected couple of materials // G4TransitionRadiation:: G4TransitionRadiation( const G4String& processName, G4ProcessType type ) : G4VDiscreteProcess(processName, type) { SetProcessSubType(fTransitionRadiation); // fMatIndex1 = pMat1->GetIndex() ; // fMatIndex2 = pMat2->GetIndex() ; } ////////////////////////////////////////////////////////////////////// // // Destructor // G4TransitionRadiation::~G4TransitionRadiation() {} /////////////////////////////////////////////////////////////////// // // Sympson integral of TR spectral-angle density over energy between // the limits energy 1 and energy2 at fixed varAngle = 1 - std::cos(Theta) G4double G4TransitionRadiation::IntegralOverEnergy( G4double energy1, G4double energy2, G4double varAngle ) const { G4int i ; G4double h , sumEven = 0.0 , sumOdd = 0.0 ; h = 0.5*(energy2 - energy1)/fSympsonNumber ; for(i=1;i