00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // ------------------------------------------------------------ 00027 // GEANT 4 class header file 00028 // 00029 // History: 00030 // 30 July 2007 P.Gumplinger 00031 // Samples Radiative Pion Decay 00032 // Reference: 00033 // TRIUMF/PIENU Technote: 00034 // "Inclusion of pi->enug in the Monte Carlo" 00035 // by M. Blecher 00036 // 00037 // ------------------------------------------------------------ 00038 // 00039 // 00040 // 00041 // 00042 00043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00045 00046 #ifndef G4PionRadiativeDecayChannel_h 00047 #define G4PionRadiativeDecayChannel_h 1 00048 00049 #include "globals.hh" 00050 #include "Randomize.hh" 00051 #include "G4ThreeVector.hh" 00052 #include "G4VDecayChannel.hh" 00053 00054 class G4PionRadiativeDecayChannel : public G4VDecayChannel 00055 { 00056 // Class Decription 00057 // This class describes radiative pion decay kinemtics, but 00058 // gives incorrect energy spectrum for neutrino 00059 00060 public: // With Description 00061 00062 //Constructors 00063 G4PionRadiativeDecayChannel(const G4String& theParentName, 00064 G4double theBR); 00065 // Destructor 00066 virtual ~G4PionRadiativeDecayChannel(); 00067 00068 protected: 00069 // Copy constructor and assignment operator 00070 G4PionRadiativeDecayChannel(const G4PionRadiativeDecayChannel &); 00071 G4PionRadiativeDecayChannel & operator=(const G4PionRadiativeDecayChannel &); 00072 00073 protected: 00074 G4PionRadiativeDecayChannel(); 00075 00076 public: // With Description 00077 00078 virtual G4DecayProducts *DecayIt(G4double); 00079 00080 private: 00081 00082 G4double beta; 00083 00084 G4double cib; 00085 G4double csdp; 00086 G4double csdm; 00087 G4double cif; 00088 G4double cig; 00089 00090 G4double xl, yl, xu, yu, d2wmax; 00091 00092 G4double D2W(const G4double x, const G4double y); 00093 00094 }; 00095 00096 inline G4double G4PionRadiativeDecayChannel::D2W(const G4double x, 00097 const G4double y) 00098 { 00099 G4double d2w = cib*(1.-y)*(1.+((1.-x)*(1.-x)))/((x*x)*(x+y-1.)) + 00100 csdp*(1.-x)*((x+y-1.)*(x+y-1.)) + 00101 csdm*(1.-x)*((1.-y)*(1.-y)) + 00102 cif*(x-1.)*(1.-y)/x + 00103 cig*(1.-y)*(1.-x+(x*x)/(x+y-1.))/x; 00104 return d2w; 00105 } 00106 00107 #endif