Index: /trunk/MagicDoku/strategy_mc_ana.tex
===================================================================
--- /trunk/MagicDoku/strategy_mc_ana.tex	(revision 772)
+++ /trunk/MagicDoku/strategy_mc_ana.tex	(revision 773)
@@ -3,5 +3,4 @@
 \usepackage{magic-tdas} 
 
-\setlength{\unitlength}{1.0cm}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% BEGIN DOCUMENT
@@ -207,4 +206,8 @@
 
 \end{enumerate}
+
+% &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+% &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
+% &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 
 \section{MC work}
@@ -227,35 +230,35 @@
 	\put (1, 11.5){{\sl Air shower programs}}
 	\put (1., 10.){\framebox(3.,1.){MMCS}}
-	\put (2., 10.){\vector(0.,-1.){.9} }
+	\put (2., 10.){\vector(0,-1){.9} }
 	\put (1., 8.){\framebox(3.,1.){reflector}}
-	\put (2., 8.){\vector(0.,-1.){.9}}
+	\put (2., 8.){\vector(0,-1){.9}}
 
 	\put (6, 10.){{\sl star background programs}}
-	\put (6.,8.){\framebox(3.,1.){starfieldadder}}
-	\put (6., 8.){\line(0., -1.){1.5}}
-	\put (10.,8.){\framebox(3.,1.){starresponse}}
-	\put (10., 8.){\line(0., -1.){1.5}}
-	\put (10., 6.5){\vector(-1.,0.){6.} }
+	\put (6.,8.){\framebox(3.,1.){starresponse}}
+	\put (6., 8.){\line(0, -1){1.5}}
+	\put (10.,8.){\framebox(3,1){starfieldadder}}
+	\put (10., 8.){\line(0, -1){1.5}}
+	\put (10., 6.5){\vector(-1,0){6.} }
 
 	\put (1., 6.){\framebox(3.,1.){camera}}
-	\put (2., 6.){\vector(3.,-1.){5.} }
+	\put (2., 6.){\vector(3,-1){5.} }
 
 	
 	
 	\put (14, 11.5){{\sl real data programs}}
-	\put (14, 8.){\framebox(3.,1.){MAGIC DAQ}}	
-	\put (15, 8.){\vector(0.,-1.){.9} }
+	\put (14, 8.){\framebox(3,1){MAGIC DAQ}}	
+	\put (15, 8.){\vector(0,-1){.9} }
 	\put (14, 6.){\framebox(3.,1.){MERPP}}	
-	\put (15., 6.){\vector(-3.,-1.){5.} }
+	\put (15., 6.){\vector(-3,-1){5.} }
 	
 	\put (8.75, 3.7){\oval(4.,1.)}	
 	\put (7., 3.5){MAGIC root file}	
-	\put (8., 3.2){\vector(0., -1.){1.0}}
+	\put (8., 3.2){\vector(0, -1){1.0}}
 
 	\put (7, 1.){\framebox(3.,1.){MARS}}
 
 	\thicklines
-	\put (5., 11.){\line(0., -1.){6.5}}	
-	\put (13., 12.){\line(0., -1.){7.5}}	
+	\put (5., 11.){\line(0, -1){6.5}}	
+	\put (13., 12.){\line(0, -1){7.5}}	
 
   \end{picture}  
@@ -294,8 +297,149 @@
 \label{sec_exist_progs}
 \subsubsection{MMCS - Magic Monte Carlo Simulation} 
-\subsubsection{reflector                          } 
+ 
+This program is based on a CORSIKA simulation. It is used to generate
+air showers for the MAGIC telecope. At the start one run of the 
+program, one has to define the details of the simulation. 
+One can specify the following parameters of an shower 
+(see also figure \ref{pic_shower}): 
+%
+\begin{enumerate}
+  \item the type of the particles in one run ($PartID$)
+  \item the energy range of the particles ($E_1, E_2$) 
+  \item the slope of the Energy spectra 
+  \item the range of the shower core on the ground $r_{core}$. 
+  \item the direction of the shower by setting the range of 
+	zenith angle ($\Theta_1, \Theta_2$) and 
+	azimuth angle  ($\phi_1, \phi_2$)
+\end{enumerate}
+%
+\begin{figure}[h]
+\setlength{\unitlength}{1.5cm}
+\begin{center} 
+  \begin{picture}(9.,6.)
+	\put (0., 0.){\framebox(9.,6.){}}
+
+	\thicklines
+	% telescope
+	\put (5., .5){\oval(.75, .75)[t]} 
+	\put (3., 1.){{\sl Telesope position}}	
+	\put (4.5, 1.){\vector(1, -1){0.5}}
+	% observation level 
+	\put (.5, .5){\line(1, 0){8}}
+	\put (.5, .6){{\sl Observation level}}	
+
+	% air shower
+	\put (4. , 5.5 ){\line(2, -3){3.3}}
+	\put (4.5, 5.5 ){{\sl Particle Type ($PartId$)}}
+	\put (4.5, 5.25){{\sl Energy ($E_1 < E < E_2$)}}
+	\put (4.5, 5.  ) {$\Theta_1 < \Theta < \Theta_2$}
+	\put (4.5, 4.75) {$\phi_1 < \phi < \phi_2$}
+	\put (7.5, .75){{\sl shower core}}
+	
+	\thinlines
+	\put (5., .25){\line(1,0){2.3}} 
+	\put (6.1, .25){{\sl $r_{Core}$}}
+	
+	\put (5., .5){\line(4,3){1.571}} 	
+	\put (6., 1.35){{\sl $p$}}
+
+  \end{picture}  
+\end{center} 
+  \caption {The parameter of an shower that are possible to define
+at the begin of an MMCS run.}
+\label{pic_shower} 
+\end{figure} 
+Other parameters, that will be important in the analysis later,
+can be calculated. I.e. the impact parameter $p$ is defined by 
+the direction 
+of the shower ($\Theta, \phi$) and the core position 
+($x_{core}, y_{core}$). 
+
+The program MMCS will track the whole shower development 
+through the atmosphere. All the cerenkov particles that hit a 
+sphere around the telesope (in the figure \ref{pic_shower} 
+drawn as the circle around the telecope position) are stored 
+on disk. It is important to recognize, that up to now no 
+information of the pointing of the telescope was taking into
+account.  
+This cerenkov photons are the input for the next program, 
+called reflector. 
+
+
+\subsubsection{reflector} 
+
+The aim of the reflector program is the 
+tracking of the cerenkov photons to the camera 
+of the MAGIC telescope. So this
+is the point where we introduce a specific pointing of 
+the telescope ($\Theta_{MAGIC}, \phi_{MAGIC}$).
+For all cerenkov photons the program 
+tests if the mirrors are hitten, calculates the 
+probability for the reflection and tracks them to the 
+mirror plane. All the photons that are hitting the 
+camera are written to disk (*.rfl)  
+with their important parameters 
+($x_{camera}, y_{camera}, \lambda, t_{arrival}$). 
+These parameters are the input from the shower simulation
+for the next program in the 
+MC simulation chain, the camera program. 
+
 \subsubsection{camera} 
+
+The camera program simulates the behaviour of the 
+PMTs and the electronic of the trigger and FAC system. 
+For each photon out of the reflector file (*.rfl) the 
+camera program calculates the probability to generate
+an photo electron out of the photo cathode. If a photo
+electrons was ejected, this will create a signal in the 
+trigger and FADC system of the hitted pixel. 
+You have to specify the
+parameter of the signal shaping 
+(shape, Amplitude, FWHM of signal)
+at the beginning of the 
+camera, seperatly for the trigger and the FADC system. 
+All signal from all photoelectrons are superimposed for
+each pixel. As an example you can see the output of 
+the trigger and FADC system in figure \ref{fig_trigger_fadc}. 
+\begin{figure}[h]
+
+ \caption{The response of one shower from the trigger (left) and 
+fadc system (right).}
+\label{fig_trigger_fadc}
+\end{figure}
+
+All these analog signals going into the trigger system are used 
+to check if for a given event a trigger signal was generated or 
+not. But before the start of the camera program on also has to
+set a few parameters of the trigger system like: 
+\begin{itemize}
+  \item diskriminator threshold
+  \item mulitplicity
+  \item topology 
+\end{itemize} 
+With this set of parameter the camera program will analyse
+if one event has triggered. For the triggered event all the FADC
+content will be writen on the file (*.root). In addition all the 
+information about the event ($PartID, E, \Theta$,...) and 
+information of trigger (FirstLevel, SecondLevel, ..) are also 
+be written to the file.
+
+One of the nice features of the camera program is the possiblity
+so simulate the NSB, the diffuse and the star light part of it. 
+But before doing this, on has to start other programs 
+(called starresponse and starfieldadder) that are describe 
+below.
+
+\subsubsection{starresponse}
+
+This program will simulate the analog response for stars of
+a given brightness $B$. 
+
+
 \subsubsection{starfieldadder}
-\subsubsection{starresponse}
+
+
+
+
 
 
