\hypertarget{namespace_d_d4hep_1_1_utilities}{\section{D\-D4hep\-:\-:Utilities Namespace Reference}
\label{namespace_d_d4hep_1_1_utilities}\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{namespace_d_d4hep_1_1_utilities_a61171c4258ed951d93ba11763da066fc}{find\-Node\-With\-Matrix} (T\-Geo\-Node $\ast$p, T\-Geo\-Node $\ast$n, T\-Geo\-H\-Matrix $\ast$mat, std\-::string $\ast$sub\-\_\-path=0)
\item 
std\-::pair$<$ bool, T\-Eve\-Element $\ast$ $>$ \hyperlink{namespace_d_d4hep_1_1_utilities_aa469540c9b22f32d6ac947c4fbe7a7dc}{create\-Eve\-Shape} (int level, int max\-\_\-level, T\-Eve\-Element $\ast$p, T\-Geo\-Node $\ast$n, T\-Geo\-H\-Matrix mat, const std\-::string \&node\-\_\-name)
\item 
std\-::pair$<$ bool, T\-Eve\-Element $\ast$ $>$ \hyperlink{namespace_d_d4hep_1_1_utilities_a8f334a7b469c25f5315745d8dceb0fa7}{Load\-Det\-Element} (\hyperlink{class_d_d4hep_1_1_geometry_1_1_det_element}{Geometry\-::\-Det\-Element} element, int levels, T\-Eve\-Element $\ast$parent)
\item 
void \hyperlink{namespace_d_d4hep_1_1_utilities_a93a4f08ad1e94bdda79153a858ab809b}{Make\-Nodes\-Visible} (T\-Eve\-Element $\ast$\hyperlink{_volumes_8cpp_a8a9a1f93e9b09afccaec215310e64142}{e}, bool visible, int level)
\begin{DoxyCompactList}\small\item\em Make a set of nodes starting from a top element (in-\/)visible with a given depth. \end{DoxyCompactList}\item 
void \hyperlink{namespace_d_d4hep_1_1_utilities_a39b86ff9be41d39a9569a9a45c9484c2}{Set\-Rnr\-Children} (\hyperlink{class_t_eve_element_list}{T\-Eve\-Element\-List} $\ast$l, bool b)
\begin{DoxyCompactList}\small\item\em Set the rendering flags for the object and the next level children. \end{DoxyCompactList}\item 
void \hyperlink{namespace_d_d4hep_1_1_utilities_a92896bc98df5b92fe16f7cfc74716442}{Set\-Rnr\-All} (\hyperlink{class_t_eve_element_list}{T\-Eve\-Element\-List} $\ast$l, bool b)
\begin{DoxyCompactList}\small\item\em Recursively set the rendering flags for the object ans its children. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\const char $\ast$ \hyperlink{namespace_d_d4hep_1_1_utilities_a4c0a9b81fbdf72442aa513ab684f4243}{Get\-Name} (\hyperlink{class_t}{T} $\ast$p)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{namespace_d_d4hep_1_1_utilities_aa469540c9b22f32d6ac947c4fbe7a7dc}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!create\-Eve\-Shape@{create\-Eve\-Shape}}
\index{create\-Eve\-Shape@{create\-Eve\-Shape}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{create\-Eve\-Shape}]{\setlength{\rightskip}{0pt plus 5cm}std\-::pair$<$ bool, T\-Eve\-Element $\ast$ $>$ D\-D4hep\-::\-Utilities\-::create\-Eve\-Shape (
\begin{DoxyParamCaption}
\item[{int}]{level, }
\item[{int}]{max\-\_\-level, }
\item[{T\-Eve\-Element $\ast$}]{p, }
\item[{T\-Geo\-Node $\ast$}]{n, }
\item[{T\-Geo\-H\-Matrix}]{mat, }
\item[{const std\-::string \&}]{node\-\_\-name}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_aa469540c9b22f32d6ac947c4fbe7a7dc}


Definition at line 77 of file Utilities.\-cpp.



References dd4hep\-::g, D\-D4hep\-::\-I\-N\-F\-O, D\-D4hep\-::\-Handle$<$ T $>$\-::is\-Valid(), D\-D4hep\-::printout(), and D\-D4hep\-::\-Geometry\-::\-Vis\-Attr\-::rgb().



Referenced by Load\-Det\-Element(), and D\-D4hep\-::\-Display\-::\-Load\-Geo\-Children().

\hypertarget{namespace_d_d4hep_1_1_utilities_a61171c4258ed951d93ba11763da066fc}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!find\-Node\-With\-Matrix@{find\-Node\-With\-Matrix}}
\index{find\-Node\-With\-Matrix@{find\-Node\-With\-Matrix}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{find\-Node\-With\-Matrix}]{\setlength{\rightskip}{0pt plus 5cm}int D\-D4hep\-::\-Utilities\-::find\-Node\-With\-Matrix (
\begin{DoxyParamCaption}
\item[{T\-Geo\-Node $\ast$}]{p, }
\item[{T\-Geo\-Node $\ast$}]{n, }
\item[{T\-Geo\-H\-Matrix $\ast$}]{mat, }
\item[{std\-::string $\ast$}]{sub\-\_\-path = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_a61171c4258ed951d93ba11763da066fc}


Definition at line 163 of file Utilities.\-cpp.



Referenced by D\-D4hep\-::\-Display\-::\-Load\-Geo\-Children().

\hypertarget{namespace_d_d4hep_1_1_utilities_a4c0a9b81fbdf72442aa513ab684f4243}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!Get\-Name@{Get\-Name}}
\index{Get\-Name@{Get\-Name}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{Get\-Name}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const char$\ast$ D\-D4hep\-::\-Utilities\-::\-Get\-Name (
\begin{DoxyParamCaption}
\item[{{\bf T} $\ast$}]{p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{namespace_d_d4hep_1_1_utilities_a4c0a9b81fbdf72442aa513ab684f4243}


Definition at line 45 of file Utilities.\-h.



Referenced by D\-D4hep\-::\-Simulation\-::\-Geant4\-Hit\-Collection\-::add(), D\-D4hep\-::\-Simulation\-::\-Geant4\-Sensitive\-Detector\-::create\-Collection(), D\-D4hep\-::\-Projection\-::\-Import\-Element(), D\-D4hep\-::\-View\-::\-Import\-Event\-Element(), D\-D4hep\-::\-Display\-::\-Load\-Geo\-Children(), D\-D4hep\-::\-Display\-::\-Make\-Nodes\-Visible(), D\-D4hep\-::\-Simulation\-::\-Geant4\-Sensitive\-Detector\-::name(), and D\-D4hep\-::\-Geometry\-::\-Vis\-Attr\-::to\-String().

\hypertarget{namespace_d_d4hep_1_1_utilities_a8f334a7b469c25f5315745d8dceb0fa7}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!Load\-Det\-Element@{Load\-Det\-Element}}
\index{Load\-Det\-Element@{Load\-Det\-Element}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{Load\-Det\-Element}]{\setlength{\rightskip}{0pt plus 5cm}std\-::pair$<$ bool, T\-Eve\-Element $\ast$ $>$ D\-D4hep\-::\-Utilities\-::\-Load\-Det\-Element (
\begin{DoxyParamCaption}
\item[{Geometry\-::\-Det\-Element}]{element, }
\item[{int}]{levels, }
\item[{T\-Eve\-Element $\ast$}]{parent}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_a8f334a7b469c25f5315745d8dceb0fa7}


Definition at line 189 of file Utilities.\-cpp.



References create\-Eve\-Shape(), e, D\-D4hep\-::\-Handle$<$ T $>$\-::is\-Valid(), D\-D4hep\-::\-Handle$<$ T $>$\-::name(), D\-D4hep\-::\-Geometry\-::\-Det\-Element\-::placement(), and D\-D4hep\-::\-Handle$<$ T $>$\-::ptr().



Referenced by D\-D4hep\-::\-View\-::\-Create\-Geometry(), and D\-D4hep\-::\-Display\-::\-Load\-Geo\-Children().

\hypertarget{namespace_d_d4hep_1_1_utilities_a93a4f08ad1e94bdda79153a858ab809b}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!Make\-Nodes\-Visible@{Make\-Nodes\-Visible}}
\index{Make\-Nodes\-Visible@{Make\-Nodes\-Visible}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{Make\-Nodes\-Visible}]{\setlength{\rightskip}{0pt plus 5cm}void D\-D4hep\-::\-Utilities\-::\-Make\-Nodes\-Visible (
\begin{DoxyParamCaption}
\item[{T\-Eve\-Element $\ast$}]{e, }
\item[{bool}]{visible, }
\item[{int}]{level}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_a93a4f08ad1e94bdda79153a858ab809b}


Make a set of nodes starting from a top element (in-\/)visible with a given depth. 



Definition at line 58 of file Utilities.\-cpp.



References e, s, Set\-Rnr\-All(), and Set\-Rnr\-Children().



Referenced by D\-D4hep\-::\-Display\-::\-Make\-Nodes\-Visible().

\hypertarget{namespace_d_d4hep_1_1_utilities_a92896bc98df5b92fe16f7cfc74716442}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!Set\-Rnr\-All@{Set\-Rnr\-All}}
\index{Set\-Rnr\-All@{Set\-Rnr\-All}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{Set\-Rnr\-All}]{\setlength{\rightskip}{0pt plus 5cm}void D\-D4hep\-::\-Utilities\-::\-Set\-Rnr\-All (
\begin{DoxyParamCaption}
\item[{{\bf T\-Eve\-Element\-List} $\ast$}]{l, }
\item[{bool}]{b}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_a92896bc98df5b92fe16f7cfc74716442}


Recursively set the rendering flags for the object ans its children. 



Definition at line 47 of file Utilities.\-cpp.



References e.



Referenced by Make\-Nodes\-Visible().

\hypertarget{namespace_d_d4hep_1_1_utilities_a39b86ff9be41d39a9569a9a45c9484c2}{\index{D\-D4hep\-::\-Utilities@{D\-D4hep\-::\-Utilities}!Set\-Rnr\-Children@{Set\-Rnr\-Children}}
\index{Set\-Rnr\-Children@{Set\-Rnr\-Children}!DD4hep::Utilities@{D\-D4hep\-::\-Utilities}}
\subsubsection[{Set\-Rnr\-Children}]{\setlength{\rightskip}{0pt plus 5cm}void D\-D4hep\-::\-Utilities\-::\-Set\-Rnr\-Children (
\begin{DoxyParamCaption}
\item[{{\bf T\-Eve\-Element\-List} $\ast$}]{l, }
\item[{bool}]{b}
\end{DoxyParamCaption}
)}}\label{namespace_d_d4hep_1_1_utilities_a39b86ff9be41d39a9569a9a45c9484c2}


Set the rendering flags for the object and the next level children. 



Definition at line 39 of file Utilities.\-cpp.



Referenced by Make\-Nodes\-Visible().

