\section{Ali\-HLTPHOSFile\-Writer Class Reference}
\label{classAliHLTPHOSFileWriter}\index{AliHLTPHOSFileWriter@{AliHLTPHOSFileWriter}}
{\tt \#include $<$Ali\-HLTPHOSFile\-Writer.h$>$}

Inheritance diagram for Ali\-HLTPHOSFile\-Writer::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classAliHLTPHOSFileWriter}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Ali\-HLTPHOSFile\-Writer} ()
\item 
virtual {\bf $\sim$Ali\-HLTPHOSFile\-Writer} ()
\item 
void {\bf Make\-Filename} (int event\-Nr, const {\bf Ali\-HLTComponent\-Data\-Type} \&data\-Type)
\item 
void {\bf Set\-Directory} (string \&directory)
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf f\-Current\-Evnt\-Cnt}
\item 
FILE $\ast$ {\bf f\-Current\-File}
\item 
string {\bf f\-Directory}
\item 
string {\bf f\-Current\-Filename}
\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item 
{\bf Ali\-HLTPHOSFile\-Writer} (const {\bf Ali\-HLTPHOSFile\-Writer} \&)
\item 
{\bf Ali\-HLTPHOSFile\-Writer} \& {\bf operator=} (const {\bf Ali\-HLTPHOSFile\-Writer} \&)
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!AliHLTPHOSFileWriter@{AliHLTPHOSFileWriter}}
\index{AliHLTPHOSFileWriter@{AliHLTPHOSFileWriter}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSFile\-Writer::Ali\-HLTPHOSFile\-Writer ()}\label{classAliHLTPHOSFileWriter_a0}




Definition at line 8 of file Ali\-HLTPHOSFile\-Writer.cxx.

\footnotesize\begin{verbatim}8                                           :fCurrentEvntCnt(0), fCurrentFile(0), fDirectory(""), fCurrentFilename("")
9 {
10 
11 }
\end{verbatim}\normalsize 


\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!~AliHLTPHOSFileWriter@{$\sim$AliHLTPHOSFileWriter}}
\index{~AliHLTPHOSFileWriter@{$\sim$AliHLTPHOSFileWriter}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSFile\-Writer::$\sim${\bf Ali\-HLTPHOSFile\-Writer} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classAliHLTPHOSFileWriter_a1}




Definition at line 14 of file Ali\-HLTPHOSFile\-Writer.cxx.

\footnotesize\begin{verbatim}15 {
16 
17 }
\end{verbatim}\normalsize 


\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!AliHLTPHOSFileWriter@{AliHLTPHOSFileWriter}}
\index{AliHLTPHOSFileWriter@{AliHLTPHOSFileWriter}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Ali\-HLTPHOSFile\-Writer::Ali\-HLTPHOSFile\-Writer (const {\bf Ali\-HLTPHOSFile\-Writer} \&)\hspace{0.3cm}{\tt  [private]}}\label{classAliHLTPHOSFileWriter_d0}


Never to be called 

\subsection{Member Function Documentation}
\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!MakeFilename@{MakeFilename}}
\index{MakeFilename@{MakeFilename}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSFile\-Writer::Make\-Filename (int {\em event\-Nr}, const {\bf Ali\-HLTComponent\-Data\-Type} \& {\em data\-Type})}\label{classAliHLTPHOSFileWriter_a2}




Definition at line 27 of file Ali\-HLTPHOSFile\-Writer.cxx.

References f\-Current\-Filename, f\-Directory, Ali\-HLTComponent\-Data\-Type::f\-ID, Ali\-HLTComponent\-Data\-Type::f\-Origin, k\-Ali\-HLTComponent\-Data\-Typef\-IDsize, and k\-Ali\-HLTComponent\-Data\-Typef\-Origin\-Size.

\footnotesize\begin{verbatim}28 {
29   int charPos =fDirectory.size() +1;
30 
31   fCurrentFilename.erase(charPos);
32 
33   char tmpOr[kAliHLTComponentDataTypefOriginSize+1];
34   char tmpID[kAliHLTComponentDataTypefIDsize+1];
35   char tmpEvntNr[30];
36 
37   for(int i = 0; i< kAliHLTComponentDataTypefOriginSize; i++)
38     {
39       tmpOr[i] = dataType.fOrigin[i]; 
40     }
41   tmpOr[kAliHLTComponentDataTypefOriginSize] = '\0';
42 
43   for(int j = 0; j< kAliHLTComponentDataTypefIDsize; j++)
44     {
45       tmpID[j] = dataType.fID[j]; 
46     }
47   tmpID[kAliHLTComponentDataTypefIDsize] = '\0';
48 
49   fCurrentFilename.insert(charPos, tmpOr);
50   charPos+= kAliHLTComponentDataTypefOriginSize;
51   fCurrentFilename.insert(charPos, tmpID);
52   charPos = fCurrentFilename.size();
53   sprintf(tmpEvntNr,"_%.16d", eventNr);
54   fCurrentFilename.insert(charPos, tmpEvntNr);
55   cout <<"AliHLTPHOSFileWriterComponent::MakeFilename, filename = " << fCurrentFilename <<endl;
56   
57 }
\end{verbatim}\normalsize 


\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!operator=@{operator=}}
\index{operator=@{operator=}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Ali\-HLTPHOSFile\-Writer}\& Ali\-HLTPHOSFile\-Writer::operator= (const {\bf Ali\-HLTPHOSFile\-Writer} \&)\hspace{0.3cm}{\tt  [inline, private]}}\label{classAliHLTPHOSFileWriter_d1}




Definition at line 27 of file Ali\-HLTPHOSFile\-Writer.h.

\footnotesize\begin{verbatim}28     {
29       return *this;
30     };
\end{verbatim}\normalsize 


\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!SetDirectory@{SetDirectory}}
\index{SetDirectory@{SetDirectory}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Ali\-HLTPHOSFile\-Writer::Set\-Directory (string \& {\em directory})}\label{classAliHLTPHOSFileWriter_a3}




Definition at line 21 of file Ali\-HLTPHOSFile\-Writer.cxx.

\footnotesize\begin{verbatim}22 {
23 
24 }
\end{verbatim}\normalsize 




\subsection{Member Data Documentation}
\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!fCurrentEvntCnt@{fCurrentEvntCnt}}
\index{fCurrentEvntCnt@{fCurrentEvntCnt}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf Ali\-HLTPHOSFile\-Writer::f\-Current\-Evnt\-Cnt}\hspace{0.3cm}{\tt  [protected]}}\label{classAliHLTPHOSFileWriter_p0}




Reimplemented in {\bf Ali\-HLTPHOSCell\-Energies\-File\-Writer} {\rm (p.\,\pageref{classAliHLTPHOSCellEnergiesFileWriter_r0})}.

Definition at line 20 of file Ali\-HLTPHOSFile\-Writer.h.\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!fCurrentFile@{fCurrentFile}}
\index{fCurrentFile@{fCurrentFile}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}FILE$\ast$ {\bf Ali\-HLTPHOSFile\-Writer::f\-Current\-File}\hspace{0.3cm}{\tt  [protected]}}\label{classAliHLTPHOSFileWriter_p1}




Definition at line 21 of file Ali\-HLTPHOSFile\-Writer.h.\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!fCurrentFilename@{fCurrentFilename}}
\index{fCurrentFilename@{fCurrentFilename}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}string {\bf Ali\-HLTPHOSFile\-Writer::f\-Current\-Filename}\hspace{0.3cm}{\tt  [protected]}}\label{classAliHLTPHOSFileWriter_p3}




Definition at line 23 of file Ali\-HLTPHOSFile\-Writer.h.

Referenced by Make\-Filename().\index{AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}!fDirectory@{fDirectory}}
\index{fDirectory@{fDirectory}!AliHLTPHOSFileWriter@{Ali\-HLTPHOSFile\-Writer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}string {\bf Ali\-HLTPHOSFile\-Writer::f\-Directory}\hspace{0.3cm}{\tt  [protected]}}\label{classAliHLTPHOSFileWriter_p2}




Definition at line 22 of file Ali\-HLTPHOSFile\-Writer.h.

Referenced by Make\-Filename().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
{\bf Ali\-HLTPHOSFile\-Writer.h}\item 
{\bf Ali\-HLTPHOSFile\-Writer.cxx}\end{CompactItemize}
