\HeaderA{getNameType}{Get Chip Name and Type}{getNameType}
\keyword{manip}{getNameType}
\begin{Description}\relax
Get chip name and type from ROOT scheme file.
\end{Description}
\begin{Usage}
\begin{verbatim}
getNameType(rootfile)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{rootfile}] name of ROOT scheme file, including full path.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Extracts the chip name and type directly from \code{\LinkA{ROOT}{ROOT}} scheme file \code{rootfile}.
\end{Details}
\begin{Value}
a \code{list} with parameters:
\begin{ldescription}
\item[\code{chipname}] chip name.
\item[\code{chiptype}] chip type, either \sQuote{GeneChip} or \sQuote{ExonChip}.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Christian Stratowa
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getChipName}{getChipName}}, \code{\LinkA{getChipType}{getChipType}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## correct usage
getNameType(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
## incorrect usage
getNameType(paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))
\end{ExampleCode}
\end{Examples}

