Changeset 988 in Sophya for trunk/SophyaLib/Manual


Ignore:
Timestamp:
May 2, 2000, 3:43:27 PM (25 years ago)
Author:
ansari
Message:

Suite de la documentation (sophya.tex) - ajout de pmixer.tex et ex1.inc - Reza 2/5/2000

Location:
trunk/SophyaLib/Manual
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Manual/sophya.tex

    r978 r988  
    11\documentclass[twoside,11pt]{article}
    22%  Package standard : Utilisation de caracteres accentues, mode francais et graphique
     3\usepackage{url}
    34\usepackage[latin1]{inputenc}
    45\usepackage[T1]{fontenc}
     
    1112\usepackage{amssymb}
    1213
     14%  Definition pour Docs Sophya
    1315\usepackage{defsophya}
    1416
     
    1820
    1921\begin{titlepage}
     22%  The title page - top of the page with the title of the paper
    2023\titrehp{Sophya  \\ An overview }
     24%  Authors list
    2125\auteurs{
    22 R. Ansari     &  ansari@lal.in2p3.fr       \\
    23 G. Le Meur    &  lemeur@lal.in2p3.fr       \\
    24 C. Magneville &  cmv@hep.saclay.cea.fr     \\
    25 S. Versille   &  versille@lal.in2p3.fr     
     26R. Ansari            &  ansari@lal.in2p3.fr       \\
     27G. Le Meur           &  lemeur@lal.in2p3.fr       \\
     28C. Magneville        &  cmv@hep.saclay.cea.fr     \\
     29S. Henrot-Versille   &  versille@in2p3.fr     
    2630}
    2731% \auteursall
    28 \titrebp{2}
     32%  The title page - bottom of the page with the paper number
     33\titrebp{1}
    2934\end{titlepage}
    3035
     
    5964({\tt DataCard, DVList} \ldots).
    6065\item[] {\bf TArray/} template numerical arrays, vectors and matrices
    61 ({\tt PixelMap<T> SphericalMap<T>} \ldots) and few geometry
    62 handling utility classes.
     66({\tt PixelMap<T> SphericalMap<T>} \ldots)
    6367\item[] {\bf NTools/} Some standard numerical analysis tools
    6468(linear, and non linear parameter fitting, FFT, \ldots)
     
    7074CMB (Cosmic Microwave Background) data analysis problem:
    7175\begin{itemize}
    72 \item[] {\bf SkyMap/} Local and full sky maps
     76\item[] {\bf SkyMap/} Local and full sky maps, and few geometry
     77handling utility classes. \\
     78({\tt PixelMap<T>, LocalMap<T>, SphericalMap<T>, \ldots})
    7379\item[] {\bf SkyT/}
    7480classes for spectral emission and detector frequency response modelling \\
     
    8187external libraries:
    8288\begin{itemize}
    83 \item[] {\bf FitsIOSrever/} Classes for handling file input-output
     89\item[] {\bf FitsIOServer/} Classes for handling file input-output
    8490in FITS format using the cfitsio library.
    8591\item[] {\bf LinAlg/} Interface with Lapack linear algebra package
     
    96102analysis program framework and the interfaces with the objects
    97103in SOPHYA.  The {\bf PI/} \footnote{the PI package documentation
    98 is available from {\tt http://www.lal.in2p3.fr/recherche/eros/PeidaDoc/} }
     104is available from {\bf http://www.lal.in2p3.fr/recherche/eros/PeidaDoc/} }
    99105and {\bf PIext/} modules are not currently part
    100106of the SOPHYA CVS structure.
    101107\end{itemize}   
     108
     109\newpage
    102110
    103111\section{Using Sophya}
     
    140148csh> make trivial
    141149\end{verbatim}
    142 This command should compile the {\tt trivial.cc} file, producing
    143 {\tt \$HOME/`uname`-\$EROSCXX/Objs/trivial.o} and link it against the sophya
    144 libraries to produce {\tt \$HOME/`uname`-\$EROSCXX/Exec/trivial}.
     150This command should compile the {\tt trivial.cc} file,
     151and link it against the sophya libraries. The object and executable
     152file names are: \\
     153{\tt \$HOME/`uname`-\$EROSCXX/Objs/trivial.o} \\
     154{\tt \$HOME/`uname`-\$EROSCXX/Exec/trivial}.
    145155\par
    146156The file {\tt \$DPCBASEREP/Include/makefile\_example} provides another
    147157example makefile.
    148158
     159
     160\newpage
    149161
    150162\section{Building and installing Sophya}
     
    183195the external libraries directory tree has been set up in
    184196{\tt /usr/local/ExtLibs/}. \\[3mm]
    185 \centerline{\bf \large the use of GNU make is mandatory.}
     197\centerline{
     198          \rule{20mm}{0.5mm}
     199        {\bf \large the use of GNU make is mandatory}
     200        \rule{20mm}{0.5mm} }
     201
    186202\vspace*{3mm}
    187203\begin{verbatim}
     
    237253\end{verbatim}
    238254
    239 \section{Mgr/ module}
    240 This module contains scripts which can be used for ge
    241 blabla ...
    242 
    243 \section{SysTools module}
    244 This is a dclsa{AAAA} \\[2mm]
    245 \dclsa{AAA}
    246 This is a dclsb{BBBB}{BBBB} \\[2mm]
    247 \dclsbb{BBBB}{BBBB}
    248 This is a dclsc{CCCCC}{CCCCC}{CCCCC} \\[2mm]
    249 \dclsccc{\tcls{CCCCC}}{CCCCC}{CCCCC}
    250 
    251 
    252 \begin{figure}
    253 \dclsa{DataCard}
    254 \dclsbb{AnyDataObj}{NDataBlock$<$T$>$}
    255 \dclsccc{BaseArray}{TArray}{TMatrix}
    256 \dclsb{NDataBlock$<$T$>$}
    257 \dclscc{TArray}{TMatrix}
    258 \dclsc{\tcls{Tvector}}
    259 \caption{ Partial class diagram}
     255\subsection{Mgr module}
     256This module contains scripts which can be used for generating the
     257makefiles for each module.
     258\begin{itemize}
     259\item {\bf Makefile} Top level Makefile for builiding the libraries.
     260\item {\bf Makefile.h} contains the defintion of compilation flags for the
     261different compilers and systems. This file is used for building the
     262library and generating {\bf MakefileUser.h} (to be included in makefiles).
     263\item {\bf Makefile.slb} contains the rules for building shared libraries
     264for the different compilers and systems. (to be included in makefiles)
     265\item {\bf crerep\_sophya} c-shell script for creating the directory tree
     266under {\tt \$DPCBASEREP} and {\tt \$DPCDEVREP}
     267\item {\bf install\_sophya} c-shell script for installing the Sophya package.
     268Usually from {\tt \$DPCDEVREP} to {\tt \$DPCBASEREP}
     269\item {\bf mkmflien} c-shell script for making symbolic links or copying
     270include files to {\tt \$DPCDEVREP/Include} or {\tt \$DPCBASEREP/Include}
     271\item {\bf mkmf} c-shell script for generating module makefiles and the
     272top level makefile (named GNUmakefile)
     273\item {\bf mkmflib} c-shell script for generating each library module
     274makefile (named GNUmakefile)
     275\item {\bf mkmfprog} c-shell script for generating makefile for a module
     276containing the source for executable programs (named GNUmakefile).
     277\item {\bf mkmfPI} c-shell script for generating makefile for PI and PIext
     278modules (named GNUmakefile)
     279\item {\bf libdirs} List of Sophya modules without reference to external
     280libraries.
     281\item {\bf extlibdirs} List of Sophya modules with reference to external
     282libraries.
     283
     284\end{itemize}
     285 
     286\newpage
     287
     288\section{Learning Sophya through examples}
     289The examples here illustrates the basic
     290usage of Sophya classes. Sophya documentation can be found at our web site: \\
     291{\bf http://hfi-l2.in2p3.fr}.
     292
     293\subsection{Using classes in SysTools}
     294
     295{\bf SysTools} contains utility classes such as {\tt DataCards} or
     296{\tt DVlist}, an hierarchy of exception classes for Sophya, a template
     297class {\tcls{NDataBlock}} for handling reference counting on numerical
     298arrays, as well as classes providing the services for implementing simple
     299serialization. For simple programs, it is a good practice to handle
     300the exceptions at least at high level, in the {\tt main()} function.
     301The example below shows the exception handling and the usage
     302of Sophya persistence.
     303\vspace*{5mm}
     304
     305\begin{figure}[hbt]
     306\dclsa{PPersist}
     307\dclsbb{PIOPersist}{PInPersist}
     308\dclsb{POutPersist}
     309\caption{partial class diagram for classes handling persistencein Sophya}
    260310\end{figure}
    261311
    262 
    263 PixelMap<T> --- LocalMap<T>
    264                 SphericalMap<T>  --- SphereThetaPhi<T>
    265                                      SphereHEALPix<T>
    266 
     312\input{ex1.inc}
    267313
    268314\end{document}
Note: See TracChangeset for help on using the changeset viewer.