// Geant4 simulation for MuSR // AUTHOR: Toni SHIROKA, Paul Scherrer Institut, PSI // DATE : 2008-05 // //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ // Muonium yields as a function of initial mu+ energies. // The method GetYields is used by MuFormation. // Id : yields.cc, v 1.1 // Author: Taofiq PARAISO, T. Shiroka // Date : 2007-12 // Notes : First implemented in Fortran by A. Hofer // C++ conversion by T.K. Paraiso 04-2005 // Slight modifications by T. Shiroka //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ #ifndef Yields_h #define Yield_h 1 #include "globals.hh" /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The Muonium Yield function as well as the parameters are taken from: M. Gonin, R. Kallenbach, P. Bochsler: "Charge exchange of hydrogen atoms in carbon foils at 0.4 - 120 keV", Rev.Sci.Instrum. 65 (3), March 1994 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ class Yields { public: Yields(); // Class constructor ~Yields(); // Class destructor void GetYields(double E, double mass, double yvector[]); private: // Some internal variables double Q_zero, Q_minus, D; double Yield_minus, Yield_zero, Yield_plus; double aux1, aux2, aux3; // Auxiliary variables }; #endif