23.2.2010 Kamil Sedlak

Several things were added in this version:
  1) varibale save_time() has been added to the root output tree
  2) possibility to read in field maps, in which varibles x,y,z
     increase differently than previously expected
     (see the description of "variableIncreasingOrder" in the
      "3DEOpera" paragraph of the documentation).
  3) Added "3DEOpera" format of the fieldmap
  4) Added file G4EqEMFieldWithSpin.cc_for_Geant4.9.2p02_only  that
     should be used only in the Geant version 4.9.2p02 (there was
     a bug in this file, which is not present for any other version of Geant4) 
  5) Examples 101.mac and 102.mac added, but its description has not
     been completed yet in the musrSim.pdf.
This commit is contained in:
2010-02-23 13:24:53 +00:00
parent 2f8ac8f904
commit 701f17857f
13 changed files with 969 additions and 11 deletions

View File

@ -1,4 +1,5 @@
\documentclass[twoside]{dis04}
\usepackage{epsfig}
%\def\runauthor{Kamil Sedl\'{a}k}
\def\runauthor{PSI}
% for the H1 collaboration}
@ -320,13 +321,19 @@ Three special volumes ``Target, M0, M1 and M2''.
The following lines specify the \emph{x, y, z, Field\_x, Field\_y, Field\_z}
values (non-compact format) or \emph{Field\_x, Field\_y, Field\_z} values
(compact format).\\
{\bf 3DBOpera} -- 3D magnetic field in the form of OPERA output.
{\bf 3DBOpera, 3DEOpera} -- 3D magnetic field in the form of OPERA output.
It is expected that the \emph{length unit} is 1\,m, and
the \emph{field normalisation factor} is 1. (Note that this default
normalisation is different from 2DBOpera and 2DBOperaXY options).
However, a different \emph{field normalisation factor} can be specified
in the field map file using the keyword ``fieldNormalisation \emph{number}''
before the line started with 0.\\
It is expected that the we first loop over the $z$ coordinate of the field map,
then (when $z$ changed from minimum to maximum) it is looped over $y$ coordinate,
and the highest-lever loop goes over $x$ coordinate. Hoever, if the order
of looping is reversed in the field map, it can be specified using the
keyword ``variableIncreasingOrder xyz'' placed in the field map before
the line started with 0.\\
The \emph{length unit} can be changed to 1\,cm by specifying ``[CENTIMETRE]''
after the ``0'' character in the field map file.\\
It is expected that the field map is defined in the full volume of the field.
@ -888,6 +895,7 @@ The list of variables that can be stored in the Root tree:
the given ``save'' volume. Save volumes can therefore be made of vacuum.
\item{\bf save\_detID[save\_n]} (array of Int\_t) -- ID number of the save volume.
\item{\bf save\_particleID[save\_n]} (array of Int\_t) -- particle ID of the particle that entered the save volume.
\item{\bf save\_time[save\_n]} (array of Double\_t) -- time when the particle enetered in the volume (in $\mu$s).
\item{\bf save\_x[save\_n], save\_y[save\_n], save\_z[save\_n]} (array of Double\_t) -- position of the particle where it
entered the save volume (``GetPreStepPoint()'') (in mm).
\item{\bf save\_px[save\_n], save\_py[save\_n], save\_pz[save\_n]} (array of Double\_t) -- momentum of the particle when it
@ -941,6 +949,24 @@ These are typically not interesting for the analysis of the results of the simul
``musrDetectorConstruction::SetColourOfLogicalVolume''.
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Example 1 -- Electrons passing through two scintillator tiles (101.mac)}
One of the easiest example to illustrate the basic features of the musrSim (and/or Geant4) is to
shoot electrons into a scintillator block, and to observe the energy deposited inside it.
Figure~\ref{vis101}
%
\begin{figure}[tb]\centering
\epsfig{file=pict/vis_101_c.eps,width=8cm,%\linewidth,%
%bbllx=83pt,bblly=330pt,bburx=538pt,bbury=513pt,
clip=}
\caption{A simple simulation of an electron passing through two
scintillator tiles.}
\label{vis101}
\end{figure}
%
illustrates a simple geometry made of an electron source and two blocks
of scintilator tiles with the dimensions of $3 \times 3 \times 2\,$mm,
which is defined in the macro file ``101.mac''.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%