\hypertarget{_display_configuration_parser_8cpp}{\section{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Eve/src/\-Display\-Configuration\-Parser.cpp File Reference}
\label{_display_configuration_parser_8cpp}\index{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Eve/src/\-Display\-Configuration\-Parser.\-cpp@{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Eve/src/\-Display\-Configuration\-Parser.\-cpp}}
}
{\ttfamily \#include \char`\"{}D\-D4hep/\-L\-C\-D\-D.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}D\-D4hep/\-L\-C\-D\-D\-Load.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}D\-D4hep/\-Printout.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}X\-M\-L/\-Conversions.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}X\-M\-L/\-X\-M\-L\-Elements.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}X\-M\-L/\-Document\-Handler.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}D\-D4hep/\-Det\-Factory\-Helper.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}D\-D\-Eve/\-Display.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}D\-D\-Eve/\-Display\-Configuration.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdexcept$>$}\\*
{\ttfamily \#include \char`\"{}T\-Eve\-Projections.\-h\char`\"{}}\\*
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_d_d4hep}{D\-D4hep}
\begin{DoxyCompactList}\small\item\em Namespace for the A\-I\-D\-A detector description toolkit. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{_display_configuration_parser_8cpp_af011e3dd8a5f08aa4b15220b381e17e1}{D\-E\-C\-L\-\_\-\-T\-A\-G}(x)~\hyperlink{class_d_d4hep_1_1_x_m_l_1_1_strng__t}{X\-M\-L\-::\-Strng\-\_\-t} u\-\_\-\#\#x(\#x)
\item 
\#define \hyperlink{_display_configuration_parser_8cpp_a3f6206c4c73a0ae9c3af699dc59798db}{add\-\_\-root\-\_\-enum}(x)~X\-M\-L\-::\-\_\-to\-Dictionary(X\-M\-L\-::\-Strng\-\_\-t(\#x),int(x))
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef \\*
\hyperlink{class_d_d4hep_1_1_display_configuration_ac43586ae2c70f106cc9027d452d383d7}{Display\-Configuration\-::\-Configurations} \hyperlink{namespace_d_d4hep_a88b4bb8cba5bc194ed6da21bbb2e4787}{D\-D4hep\-::\-Configurations}
\item 
typedef \\*
\hyperlink{class_d_d4hep_1_1_display_configuration_a38d6c82b57ac859a5d5cf67fe26f4920}{Display\-Configuration\-::\-View\-Configurations} \hyperlink{namespace_d_d4hep_a9c889ac82251df068ece7fbba1c2d1c0}{D\-D4hep\-::\-View\-Configurations}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static void \hyperlink{_display_configuration_parser_8cpp_a362cc8be7243b6aba32e188b359db533}{extract} (\hyperlink{class_d_d4hep_1_1_display_configuration_1_1_config}{Display\-Configuration\-::\-Config} \&c, \hyperlink{_det_factory_helper_8h_ac13b3c79d2bc9214ff0cf5b8dc43dda6}{xml\-\_\-h} \hyperlink{_volumes_8cpp_a8a9a1f93e9b09afccaec215310e64142}{e}, int typ)
\item 
static long \hyperlink{_display_configuration_parser_8cpp_a77c6fd79ca775f40667777decfd2d0fa}{setup\-\_\-\-D\-D\-Eve} (\hyperlink{_det_factory_helper_8h_a4412c5ae094c3d02833c4026ad178f7b}{lcdd\-\_\-t} \&lcdd, const \hyperlink{_det_factory_helper_8h_ac13b3c79d2bc9214ff0cf5b8dc43dda6}{xml\-\_\-h} \&\hyperlink{_volumes_8cpp_a8a9a1f93e9b09afccaec215310e64142}{e})
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\hypertarget{_display_configuration_parser_8cpp_a3f6206c4c73a0ae9c3af699dc59798db}{\index{Display\-Configuration\-Parser.\-cpp@{Display\-Configuration\-Parser.\-cpp}!add\-\_\-root\-\_\-enum@{add\-\_\-root\-\_\-enum}}
\index{add\-\_\-root\-\_\-enum@{add\-\_\-root\-\_\-enum}!DisplayConfigurationParser.cpp@{Display\-Configuration\-Parser.\-cpp}}
\subsubsection[{add\-\_\-root\-\_\-enum}]{\setlength{\rightskip}{0pt plus 5cm}\#define add\-\_\-root\-\_\-enum(
\begin{DoxyParamCaption}
\item[{}]{x}
\end{DoxyParamCaption}
)~X\-M\-L\-::\-\_\-to\-Dictionary(X\-M\-L\-::\-Strng\-\_\-t(\#x),int(x))}}\label{_display_configuration_parser_8cpp_a3f6206c4c73a0ae9c3af699dc59798db}


Referenced by setup\-\_\-\-D\-D\-Eve().

\hypertarget{_display_configuration_parser_8cpp_af011e3dd8a5f08aa4b15220b381e17e1}{\index{Display\-Configuration\-Parser.\-cpp@{Display\-Configuration\-Parser.\-cpp}!D\-E\-C\-L\-\_\-\-T\-A\-G@{D\-E\-C\-L\-\_\-\-T\-A\-G}}
\index{D\-E\-C\-L\-\_\-\-T\-A\-G@{D\-E\-C\-L\-\_\-\-T\-A\-G}!DisplayConfigurationParser.cpp@{Display\-Configuration\-Parser.\-cpp}}
\subsubsection[{D\-E\-C\-L\-\_\-\-T\-A\-G}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-E\-C\-L\-\_\-\-T\-A\-G(
\begin{DoxyParamCaption}
\item[{}]{x}
\end{DoxyParamCaption}
)~{\bf X\-M\-L\-::\-Strng\-\_\-t} u\-\_\-\#\#x(\#x)}}\label{_display_configuration_parser_8cpp_af011e3dd8a5f08aa4b15220b381e17e1}


Definition at line 64 of file Display\-Configuration\-Parser.\-cpp.



\subsection{Function Documentation}
\hypertarget{_display_configuration_parser_8cpp_a362cc8be7243b6aba32e188b359db533}{\index{Display\-Configuration\-Parser.\-cpp@{Display\-Configuration\-Parser.\-cpp}!extract@{extract}}
\index{extract@{extract}!DisplayConfigurationParser.cpp@{Display\-Configuration\-Parser.\-cpp}}
\subsubsection[{extract}]{\setlength{\rightskip}{0pt plus 5cm}static void extract (
\begin{DoxyParamCaption}
\item[{{\bf Display\-Configuration\-::\-Config} \&}]{c, }
\item[{{\bf xml\-\_\-h}}]{e, }
\item[{int}]{typ}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{_display_configuration_parser_8cpp_a362cc8be7243b6aba32e188b359db533}


Definition at line 84 of file Display\-Configuration\-Parser.\-cpp.



References \-\_\-\-U, D\-D4hep\-::\-Display\-Configuration\-::\-Defaults\-::alpha, D\-D4hep\-::\-X\-M\-L\-::\-Handle\-\_\-t\-::attr(), D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::\-Values\-::calo3d, D\-D4hep\-::\-Display\-Configuration\-::\-Defaults\-::color, D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::data, D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::\-Values\-::defaults, D\-D4hep\-::\-Display\-Configuration\-::\-Calo3\-D\-::dz, D\-D4hep\-::\-Display\-Configuration\-::\-Calo3\-D\-::emax, D\-D4hep\-::\-X\-M\-L\-::\-Handle\-\_\-t\-::has\-Attr(), D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::hits, D\-D4hep\-::\-Display\-Configuration\-::\-Defaults\-::load\-\_\-geo, D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::name, D\-D4hep\-::\-Display\-Configuration\-::\-Calo3\-D\-::rmin, D\-D4hep\-::\-Display\-Configuration\-::\-Defaults\-::show\-\_\-evt, D\-D4hep\-::\-Display\-Configuration\-::\-Calo3\-D\-::threshold, D\-D4hep\-::\-Display\-Configuration\-::\-Calo3\-D\-::tower\-H, D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::type, and D\-D4hep\-::\-Display\-Configuration\-::\-Config\-::use.

\hypertarget{_display_configuration_parser_8cpp_a77c6fd79ca775f40667777decfd2d0fa}{\index{Display\-Configuration\-Parser.\-cpp@{Display\-Configuration\-Parser.\-cpp}!setup\-\_\-\-D\-D\-Eve@{setup\-\_\-\-D\-D\-Eve}}
\index{setup\-\_\-\-D\-D\-Eve@{setup\-\_\-\-D\-D\-Eve}!DisplayConfigurationParser.cpp@{Display\-Configuration\-Parser.\-cpp}}
\subsubsection[{setup\-\_\-\-D\-D\-Eve}]{\setlength{\rightskip}{0pt plus 5cm}static long setup\-\_\-\-D\-D\-Eve (
\begin{DoxyParamCaption}
\item[{{\bf lcdd\-\_\-t} \&}]{lcdd, }
\item[{const {\bf xml\-\_\-h} \&}]{e}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{_display_configuration_parser_8cpp_a77c6fd79ca775f40667777decfd2d0fa}
Basic entry point to read display configuration files

\begin{DoxyAuthor}{Author}
M.\-Frank 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.\-0 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
01/06/2014 
\end{DoxyDate}


Definition at line 301 of file Display\-Configuration\-Parser.\-cpp.



References add\-\_\-root\-\_\-enum, e, and D\-D4hep\-::\-Geometry\-::\-L\-C\-D\-D\-::extension().

