\documentclass[dvips,a4paper,twoside,10pt]{article}
\usepackage{latexsym}
\usepackage{graphicx} 
\usepackage{fancyheadings}
\usepackage{amssymb}
\usepackage{epsfig}
\usepackage{times}
\usepackage{float}
\usepackage{pstricks}
\usepackage{pst-grad}
\usepackage{mathptm}
\usepackage{subfigure}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage[english]{babel}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                    Formattazione della pagina (v. anche copertina.tex)                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\hoffset}{-0.5cm}
\setlength{\textwidth}{30pc}
\setlength{\textheight}{46pc}
\setlength{\oddsidemargin}{9.5mm}
\setlength{\evensidemargin}{32.5mm}
%
\setlength{\topmargin}{7mm}
\pagestyle{empty}
\renewcommand{\sectionmark}[1]%
                  {\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]%
      {\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]%
      {\fancyplain{}{\bfseries\thepage}}
\cfoot{}
\pagestyle{empty}
\renewcommand{\topfraction}{0.85}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.75}
%
\fussy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                           Contenuti                                                                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

%
% title
%
\thispagestyle{empty}
\title{The Calorimeter Quick--look Output Interpretation}
\author{Emiliano Mocchiutti}
\maketitle
\begin{center}
\vspace{-0.6cm}(Software v. 3.00)
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The aim of this document is to describe the output of the calorimeter quick--look software. Each output figure is described, constraints to the distribution are shown and a a brief description on how to recognize possible problems is reported.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Description of figures}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{description}

\item FIGURE C1:\\
{\it \bf Description:}\\
Calorimeter status, checking for errors coming from the DSP and errors occurred during the unpacking of data.\\
{\it \bf NOMINAL:}\\
No ``red'' errors. The number of events must be the same for the four different sections and the preamplifiers can be fully transmitted only in COMPRESS or FULL mode. In that case the number of preamplifier transmission should not exceed half of the total number of COMPRESS and FULL mode events on each section.\\
{\it \bf STANDARD situations:} \\
- ``CRC errors on data'' on all the four sections of the order of some percent of data;\\
- ``Missing section'' errors of the order of some percent of data;\\
- ``Latch--up alarm'' of the order of some percent of data. \\
NO ACTIONS to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- only one calorimeter section gives a lot of CRC errors;\\
- high number of ``Missing section'' or ``CRC errors on data''; \\
- latch--up alarm always on the same plane on most of the events; \\
- one (or more) section always missing or pad empty, no response from one or more sections; \\
- any other ``red'' error. \\ 
ACTION: call specialist.
\\
\\

\item FIGURE C2:\\
{\it \bf Description:}\\
DSP counter versus unpacker counter.\\
{\it \bf NOMINAL:}\\
Linear dependence.\\
{\it \bf STANDARD situations:} \\
- flat line, in case of a partial RAW data acquisition this is nominal;\\
- ``no dsp infos'', in case of RAW data acquisition this is nominal;\\
- more segments not passing through zero is normal behaviour for different runs.
NO ACTIONS to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- non linear dependence;\\
- big gaps in the linear plots.\\
ACTION: call specialist.

\item FIGURES C3, C4, C5:\\
{\it \bf Description:}\\
Difference between the four calorimeter DSP counters.\\
{\it \bf NOMINAL:}\\
Figures C3, C4 and C5 are NOT shown.\\
{\it \bf STANDARD situations:} \\
- in case of errors in figure C1 this three figures will be shown.\\
NO ACTIONS to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- no errors in figure C1 and figures C3, C4 and C5 shown.\\
ACTION: call specialist.

\item FIGURE C6:\\
{\it \bf Description:}\\
In full mode difference between RAW and COMPRESS data.\\
{\it \bf NOMINAL:}\\
The figure C6 should NEVER be shown.\\
{\it \bf NON--STANDARD situations:} \\
- The figure is shown. \\
ACTION: call specialist.

\item FIGURE C7:\\
{\it \bf Description:}\\
Number of strip hit as calculated by the quick--look software using compressed data. Two peaks are expected: the noise peack at about 15 hit and the non-interacting particle peak at aout 60 hit.\\
{\it \bf NOMINAL:}\\
The two peaks are inside the yellow areas.\\
{\it \bf STANDARD situations:} \\
- during calorimeter warming up the two peaks could be translated to sligthly higher values.\\
- no figure and C8 figure is present (no DSP mode data available);\\
NO ACTIONS to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- more than two peaks;\\
- peaks outside yellow areas even after long time from PAMELA switching on;
- figures C7 and C8 are both missing;\\
- only data at zero hit.\\
ACTION: call specialist.

\item FIGURE C8:\\
{\it \bf Description:}\\
Number of strip hit as calculated by the quick--look software (strip with signal greater than zero) using raw data. One peak is expected centered to the number of working strips.\\
{\it \bf NOMINAL:}\\
The peak coincide with the yellow line (at 4223 hit).\\
{\it \bf STANDARD situations:} \\
- no figure and C8 figure is present (no RAW mode data available);\\
- more than one peak and errors in figure C1;\\
NO ACTIONS to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- more than one peak and no errors in figure C1;\\
- figures C7 and C8 are both missing;\\
- only data at zero hit.\\
ACTION: call specialist.

\item FIGURE C9:\\
{\it \bf Description:}\\
In full or compress mode the distribution of the common noise of preamplifiers as calculated by the DSP (baselines) is shown.\\
{\it \bf NOMINAL:}\\
Most of the data should be inside the yellow region.\\
{\it \bf STANDARD situations:} \\
- The distribution spreads over a larger range of ADC values. The file contains calibrations too distant in time or the calorimeter has just been switched on. 
- Signal at about 32000 ADC channels. Latch--up in one or more viwes.\\
ACTION: check after a calibration, if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- Only data at zero or at about 32000. All data suffered CRC errors? Are the calorimeter planes switched on?  is the calorimeter HV working? are data arriving from the other detectors? \\
ACTION: call specialist.

\item FIGURE C10:\\
{\it \bf Description:}\\
In full or compress mode the energy distribution in ADC channels is shown. If there are no compress or full data this pad will remain empty. \\
{\it \bf NOMINAL:}\\
Most of the data should be inside the yellow regions.\\
{\it \bf STANDARD situations:} \\
- The distribution spreads over a large range of ADC values. The file contains calibrations too distant in time or the calorimeter has just been switched on. Check again in the following files.\\
- Small peak at about 32000. A not working strip sometimes can give that value, not a problem till the number of entries of the peak is smaller or equal to the number of collected events in DSP mode.\\
NO ACTION to be taken.\\
{\it \bf NON--STANDARD situations:} \\
- Only data at zero or at about 32000. All data suffered CRC errors? Are the calorimeter planes switched on?  is the calorimeter HV working? are data arriving from the other detectors?\\
ACTION: call specialist.

\item FIGURE C11:\\
{\it \bf Description:}\\
Number of strip hit as calculated online by the DSP. Two peaks are expected: the noise peack at about 15 hit and the non-interacting particle peak at aout 60 hit. The pad is empty if only raw data are aquired.\\
{\it \bf NOMINAL:}\\
The two peaks should be inside the yellow areas.\\
{\it \bf STANDARD situations:} \\
- More than two peaks or peaks at higer values than 70 or peaks not centered where expected.\\
ACTION: Check data after a calibration.\\
{\it \bf NON--STANDARD situations:} \\
- Only data at zero hit. All data suffered CRC errors? Are the calorimeter planes switched on? is the calorimeter HV working? \\
ACTION: call specialist.\\

\item FIGURE C12:\\
{\it \bf Description:}\\
In raw mode the energy distribution in ADC channels is shown. If there are no raw data this pad will remain empty. \\
{\it \bf NOMINAL:}\\
Most of the data should be inside the yellow regions.\\
{\it \bf STANDARD situations:} \\
- Peak at zero or at about 32000 ADC channels. CRC errors? Missing sections? Latch--up alarms?\\
ACTION: Check in figure C1, check again after a calibration.\\ 
{\it \bf NON--STANDARD situations:} \\
- Only data at zero or at about 32000. All data suffered CRC errors? Are the calorimeter planes switched on?  is the calorimeter HV working? are data arriving from the other detectors?\\
ACTION: call specialist.\\

\item FIGURE C13:\\
{\it \bf Description:}\\
The RMS of calorimeter strips obtained during a calibration procedure (color view).\\
{\it \bf NOMINAL:}\\
This figure is NOT shown by default. There should be no white planes (latch--up) and no white strips (dead strips). The number of ``bad'' strips can vary and could be a maximum of about 25/30 in each panel (50/60 in total). Usually the two panels must be bluish, some green strips (about 15/20 in each panel), some red strips (about 5/10 in each panel), some black strips (about 5/10 in each panel). No violet strips should be seen.\\
{\it \bf STANDARD situations:} \\
- one (or more) white plane(s); latch--up alarms?\\
- a black and white plane; latch--up alarm from a plane during calibration?\\
- a lot of white or red strips; problems during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- one panel has eleven planes white interleaved with normally coloured panels. One section is missing.\\
- all white.\\
ACTION: call specialist.\\

\item FIGURE C14:\\
{\it \bf Description:}\\
The pedestals of calorimeter strips (ADC channels) obtained during a calibration procedure.\\
{\it \bf NOMINAL:}\\
Most of values inside yellow region.\\
{\it \bf STANDARD situations:} \\
- some hits outside yellow region;\\
- about hundred consecutive values at zero; latch--up alarm from a plane during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- eleven set of hundred planes at zero. One section is missing.\\
- all zero.\\
ACTION: call specialist.\\

\item FIGURE C15:\\
{\it \bf Description:}\\
The RMS of calorimeter strips (ADC channels) obtained during a calibration procedure.\\
{\it \bf NOMINAL:}\\
Most of values inside yellow region.\\
{\it \bf STANDARD situations:} \\
- some hits outside yellow region;\\
- about hundred consecutive values at zero; latch--up alarm from a plane during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- eleven set of hundred planes at zero. One section is missing.\\
- all zero.\\
ACTION: call specialist.\\

\item FIGURE C16:\\
{\it \bf Description:}\\
Bad strips during a calibration procedure (not used in baseline calculation).\\
{\it \bf NOMINAL:}\\
No more than 50 hits.\\
{\it \bf NON--STANDARD situations:} \\
- all black.\\
- no hits.\\
ACTION: call specialist.\\

\item FIGURE C17:\\
{\it \bf Description:}\\
The thresholds (ADC channels) used during a calibration procedure.\\
{\it \bf NOMINAL:}\\
Most of values inside yellow region.\\
{\it \bf STANDARD situations:} \\
- some hits outside yellow region;\\
- about six consecutive values at zero or 255; latch--up alarm from a plane during calibration?\\
- about six consecutive values at higer values; noise on one plane during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- eleven set of hundred planes at zero or 255. One section is missing.\\
- all zero.\\
ACTION: call specialist.\\

\item FIGURE C18:\\
{\it \bf Description:}\\
Strip variance (ADC channels) during a calibration procedure.\\
{\it \bf NOMINAL:}\\
Most of values inside yellow region.\\
{\it \bf STANDARD situations:} \\
- some hits outside yellow region;\\
- about six consecutive values at zero or 255; latch--up alarm from a plane during calibration?\\
- about six consecutive values at higer values; noise on one plane during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- eleven set of hundred planes at zero or 255. One section is missing.\\
- all zero.\\
ACTION: call specialist.\\

\item FIGURE C18:\\
{\it \bf Description:}\\
Baselines (ADC channels) obtained during a calibration procedure.\\
{\it \bf NOMINAL:}\\
Most of values inside yellow region.
{\it \bf STANDARD situations:} \\
- some hits outside yellow region;\\
- about six consecutive values at zero or 32000; latch--up alarm from a plane during calibration?\\
- about six consecutive values at higer values; noise on one plane during calibration?\\
ACTION: check a following calibration if problem persist contact specialist.\\
{\it \bf NON--STANDARD situations:} \\
- eleven set of hundred planes at zero or 32000. One section is missing.\\
- all zero.\\
ACTION: call specialist.\\

\item FIGURE C20:\\
{\it \bf Description:}\\
Calorimeter calibration status, checking for errors coming from the DSP and errors occurred during the calibration procedure.\\
{\it \bf NOMINAL:}\\
No ``red'' errors. The number of calibrations must be the same for the four different sections.\\
{\it \bf NON--STANDARD situations:} \\
- different number of calibrations for different sections.\\
- any ``red'' error. \\ 
ACTION: call specialist.
\\
\end{description}
\end{document}


