\section{lccd\-:\-:Simple\-File\-Handler Class Reference}
\label{classlccd_1_1SimpleFileHandler}\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}}


Implementation of \doxyref{Conditions\-Handler\-Base}{p.}{classlccd_1_1ConditionsHandlerBase} that reads the conditions data from an L\-C\-I\-O file.  




{\ttfamily \#include $<$Simple\-File\-Handler.\-hh$>$}

Inheritance diagram for lccd\-:\-:Simple\-File\-Handler\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classlccd_1_1SimpleFileHandler}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Simple\-File\-Handler} (const std\-::string \&file\-Name, const std\-::string \&{\bf name}, const std\-::string \&input\-Collection=\char`\"{}\char`\"{})
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
virtual void {\bf update} ({\bf L\-C\-C\-D\-Time\-Stamp} timestamp)
\begin{DoxyCompactList}\small\item\em Retrieves the conditions data on first call. \end{DoxyCompactList}\item 
virtual void {\bf register\-Default\-Collection} (lcio\-::\-L\-C\-Collection $\ast$col)
\begin{DoxyCompactList}\small\item\em Register a pointer to a default collection which will be passed to the \doxyref{I\-Conditions\-Change\-Listener}{p.}{classlccd_1_1IConditionsChangeListener} if no data can be found for a given time stamp. \end{DoxyCompactList}\item 
virtual lcio\-::\-L\-C\-Collection $\ast$ {\bf default\-Collection} ()
\begin{DoxyCompactList}\small\item\em The default collection registered with the handler. \end{DoxyCompactList}\item 
virtual lcio\-::\-L\-C\-Collection $\ast$ {\bf last\-Valid\-Collection} ()
\begin{DoxyCompactList}\small\item\em The last valid collection held by the handler. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bf \-\_\-file\-Name}\label{classlccd_1_1SimpleFileHandler_aaafc5e31ca305736f7bc190cdde9ccdd}

\begin{DoxyCompactList}\small\item\em Name of L\-C\-I\-O input file with conditions data. \end{DoxyCompactList}\item 
std\-::string {\bf \-\_\-input\-Collection}\label{classlccd_1_1SimpleFileHandler_a63b1c31949c223c4bc516ae15b2a34ff}

\begin{DoxyCompactList}\small\item\em Name of L\-C\-Collection in first event. \end{DoxyCompactList}\item 
bool {\bfseries \-\_\-first\-Call}\label{classlccd_1_1SimpleFileHandler_a1727d953a8e5713fbf954b5ee5047a94}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of \doxyref{Conditions\-Handler\-Base}{p.}{classlccd_1_1ConditionsHandlerBase} that reads the conditions data from an L\-C\-I\-O file. 

The conditions data has to be in the first event. The data will get an infinite validity time intervall assigned.\par
 This can be used, e.\-g. to read a set of calibration constants that will be used unaltered throughout the job.\par


Upon registering an \doxyref{I\-Conditions\-Change\-Listener}{p.}{classlccd_1_1IConditionsChangeListener} with this Conditions Handler the call-\/back method registered\-With\-Handler( I\-Conditions\-Handler$\ast$ ch ) will be called. Likewise calling \doxyref{remove\-Change\-Listener( I\-Conditions\-Change\-Listener$\ast$ cl)}{p.}{classlccd_1_1ConditionsHandlerBase_a3231c12576bf08b59d698d8575dd48b0} will call the call-\/back method de\-Registered\-With\-Handler( I\-Conditions\-Handler$\ast$ ch )

Note\-: The data isn't read from the file until \doxyref{update()}{p.}{classlccd_1_1SimpleFileHandler_ab6f581b8f1b6f0da93b66758c7f9edc1} is called. Note\-: The use of default Collections is not implemented for this Class.

\begin{DoxyAuthor}{Author}
F.\-Gaede, S.\-Aplin, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Simple\-File\-Handler.\-hh}{p.}{SimpleFileHandler_8hh_source},v 1.\-3 2007-\/04-\/27 13\-:21\-:31 gaede Exp 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}!Simple\-File\-Handler@{Simple\-File\-Handler}}
\index{Simple\-File\-Handler@{Simple\-File\-Handler}!lccd::SimpleFileHandler@{lccd\-::\-Simple\-File\-Handler}}
\subsubsection[{Simple\-File\-Handler}]{\setlength{\rightskip}{0pt plus 5cm}lccd\-::\-Simple\-File\-Handler\-::\-Simple\-File\-Handler (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{file\-Name, }
\item[{const std\-::string \&}]{name, }
\item[{const std\-::string \&}]{input\-Collection = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}\label{classlccd_1_1SimpleFileHandler_a2f9107e23aeb37fbff875d4c1d29c2f9}


Default constructor. 

You have to specify the following parameters\-:


\begin{DoxyParams}{Parameters}
{\em file\-Name} & the L\-C\-I\-O file that holds the conditions data. \\
\hline
{\em name} & of this conditions data set -\/ used, e.\-g. as collection name in update(\-L\-C\-Event$\ast$ evt) \\
\hline
{\em input\-Collection} & name of collection in input file -\/ if not given the name of this conditions data set is used \\
\hline
\end{DoxyParams}


References lccd\-::\-Conditions\-Handler\-Base\-::\-\_\-col, and \-\_\-input\-Collection.



\subsection{Member Function Documentation}
\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}!default\-Collection@{default\-Collection}}
\index{default\-Collection@{default\-Collection}!lccd::SimpleFileHandler@{lccd\-::\-Simple\-File\-Handler}}
\subsubsection[{default\-Collection}]{\setlength{\rightskip}{0pt plus 5cm}lcio\-::\-L\-C\-Collection $\ast$ lccd\-::\-Simple\-File\-Handler\-::default\-Collection (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classlccd_1_1SimpleFileHandler_a9e0ef2054259fb2166d7e1b5bb7b9b9e}


The default collection registered with the handler. 

\begin{DoxyWarning}{Warning}
Not implemented, use will cause exception to be thrown. 
\end{DoxyWarning}


Implements {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_aaad4aa711429174ef535f730a4cee6f2}.



References lccd\-::\-Conditions\-Handler\-Base\-::name().

\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}!last\-Valid\-Collection@{last\-Valid\-Collection}}
\index{last\-Valid\-Collection@{last\-Valid\-Collection}!lccd::SimpleFileHandler@{lccd\-::\-Simple\-File\-Handler}}
\subsubsection[{last\-Valid\-Collection}]{\setlength{\rightskip}{0pt plus 5cm}lcio\-::\-L\-C\-Collection $\ast$ lccd\-::\-Simple\-File\-Handler\-::last\-Valid\-Collection (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classlccd_1_1SimpleFileHandler_a02986b0266bcf24bb53cab0c397bb0dd}


The last valid collection held by the handler. 

\begin{DoxyWarning}{Warning}
Not implemented, use will cause exception to be thrown. 
\end{DoxyWarning}


Implements {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_af0ca1ede2e09725aeb68599af7c3af23}.



References lccd\-::\-Conditions\-Handler\-Base\-::name().

\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}!register\-Default\-Collection@{register\-Default\-Collection}}
\index{register\-Default\-Collection@{register\-Default\-Collection}!lccd::SimpleFileHandler@{lccd\-::\-Simple\-File\-Handler}}
\subsubsection[{register\-Default\-Collection}]{\setlength{\rightskip}{0pt plus 5cm}void lccd\-::\-Simple\-File\-Handler\-::register\-Default\-Collection (
\begin{DoxyParamCaption}
\item[{lcio\-::\-L\-C\-Collection $\ast$}]{col}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classlccd_1_1SimpleFileHandler_a049e57bd0e80733ea253a47c8c4c834d}


Register a pointer to a default collection which will be passed to the \doxyref{I\-Conditions\-Change\-Listener}{p.}{classlccd_1_1IConditionsChangeListener} if no data can be found for a given time stamp. 

\begin{DoxyWarning}{Warning}
Not implemented, use will cause exception to be thrown. 
\end{DoxyWarning}


Implements {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_a321cded6d463ec51b10191304440868b}.



References lccd\-::\-Conditions\-Handler\-Base\-::name().

\index{lccd\-::\-Simple\-File\-Handler@{lccd\-::\-Simple\-File\-Handler}!update@{update}}
\index{update@{update}!lccd::SimpleFileHandler@{lccd\-::\-Simple\-File\-Handler}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}void lccd\-::\-Simple\-File\-Handler\-::update (
\begin{DoxyParamCaption}
\item[{{\bf L\-C\-C\-D\-Time\-Stamp}}]{timestamp}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classlccd_1_1SimpleFileHandler_ab6f581b8f1b6f0da93b66758c7f9edc1}


Retrieves the conditions data on first call. 

Subsequent calls have no effect.\par
 Notifies all registered listeners on first call. 

Implements {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_aafbe952660e65887cd9290b4e62ae256}.



References lccd\-::\-Conditions\-Handler\-Base\-::\-\_\-col, \-\_\-file\-Name, \-\_\-input\-Collection, lccd\-::\-Conditions\-Handler\-Base\-::\-\_\-valid\-Since, lccd\-::\-Conditions\-Handler\-Base\-::\-\_\-valid\-Till, lccd\-::\-L\-C\-C\-D\-Minus\-Inf, lccd\-::\-L\-C\-C\-D\-Plus\-Inf, lccd\-::\-Conditions\-Handler\-Base\-::name(), and lccd\-::\-Conditions\-Handler\-Base\-::notify\-Listeners().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Simple\-File\-Handler.\-hh\item 
Simple\-File\-Handler.\-cc\end{DoxyCompactItemize}
