musrsim/geant4/TaoLEMuSR/doc/node28.html
2008-03-20 09:23:20 +00:00

124 lines
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with jLaTeX2HTML 2002-2-1 (1.70) JA patch-2.0
patched version by: Kenshi Muto, Debian Project.
* modified by: Shige TAKENO
LaTeX2HTML 2002-2-1 (1.70),
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Modifications of Geant4 code</TITLE>
<META NAME="description" CONTENT="Modifications of Geant4 code">
<META NAME="keywords" CONTENT="LEMuSR_Simulation">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="jLaTeX2HTML v2002-2-1 JA patch-2.0">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="LEMuSR_Simulation.css">
<LINK REL="previous" HREF="node27.html">
<LINK REL="up" HREF="node26.html">
<LINK REL="next" HREF="node29.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html365"
HREF="node29.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="file:/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html363"
HREF="node26.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="file:/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html359"
HREF="node27.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="file:/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html366"
HREF="node29.html">LESR mandatory classes</A>
<B> Up:</B> <A NAME="tex2html364"
HREF="node26.html">Installation of the LEMuSR</A>
<B> Previous:</B> <A NAME="tex2html360"
HREF="node27.html">Getting LEMuSR source code</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H4><A NAME="SECTION00142020000000000000">
Modifications of Geant4 code</A>
</H4>
The source code of Geant4 had to be optimized for the LEMuSR simulation. The following list reports all modifictations of Geant4 which are required by the simulation. It's important to copy those files frome the directory <I>G4MODIFIED</I> to their respective Geant4 directories.
<DL>
<DT></DT>
<DD><B><I>G4ParticleDefinition</I></B>: this library collects all the parameters needed to define a particle, like the mass, the charge, the spin etc. We modified the original version because it did not include the definition of the gyromagnetic ratio of the particles. Those one are needed when we want to compare the asymmetry spectra of muon and muonium for example.
<P>
Directory: particle/management
</DD>
<DT></DT>
<DD><B><I>G4Muonium</I></B>: is the class for muonium particle, which do not come directly with the original code.
<P>
Directory: particle/leptons
</DD>
<DT></DT>
<DD><B><I>G4FieldManager</I></B>: when a new field is created, we have to assign it to a given volume. This is done via the field manager, which stores the pointer to the field. For example, the electric field of the third lense will be assigned to the vacuum surounding the third lense. Each volume containing a field has a field manager.
<P>
During the transport of a particle, the field manager will be in charge of returning the pointer to the field and other parameter which the user can specify, like the minimal step size in the volume. We modified this class to be able to handle pointers for different types of field and added a boolean variable to set whereas the considered field has a magnetic component or not (mainly for spin precession).
<P>
Directory: geometry/magneticfield
</DD>
<DT></DT>
<DD><B><I>G4El_UsualEqRhs</I></B> and <B><I>G4El_MagEqRhs</I></B>: thoses classes define the motion equations in electric field and electromagnetic field.
<P>
Directory: geometry/magneticfield
</DD>
<DT></DT>
<DD><B><I>G4MultipleScattering52</I></B>: contains the parameters for the multiple scattering process. It was modified to be linked to the low energy muons scattering class implemented according to Meyer's algorithm.
<P>
Directory: processes/electromagnetic/standard/
</DD>
</DL>
After copying those classes in the indicated directories, it is recommanded to recompile the whole geant4 code.
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html365"
HREF="node29.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="file:/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html363"
HREF="node26.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="file:/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html359"
HREF="node27.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="file:/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html366"
HREF="node29.html">LESR mandatory classes</A>
<B> Up:</B> <A NAME="tex2html364"
HREF="node26.html">Installation of the LEMuSR</A>
<B> Previous:</B> <A NAME="tex2html360"
HREF="node27.html">Getting LEMuSR source code</A>
<!--End of Navigation Panel-->
<ADDRESS>
2005-12-21
</ADDRESS>
</BODY>
</HTML>