Changeset 2996 in Sophya for trunk/SophyaLib/Manual


Ignore:
Timestamp:
Jun 29, 2006, 6:21:57 PM (19 years ago)
Author:
ansari
Message:

Quelques ajouts ds la doc generale SOPHYA (TimeStamp, scanfits ...) , Reza 29/6/2006

File:
1 edited

Legend:

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

    r2919 r2996  
    170170
    171171\section{Using Sophya}
     172The organisation of SOPHYA directories and some of the associated
     173utility programs are described in this section.
    172174Basic usage of Sophya classes are described in in the following sections.
    173175Complete Sophya documentation can be found at our web site
     
    186188In order to use the shared libraries, the {\bf LD\_LIBRARY\_PATH} variable
    187189should contain the Sophya shared library path
    188 ({\tt \$SOPHYABASE/slb }). \\
    189 On Silocon Graphics machines (IRIX64) , the default SOPHYA configuration
    190 correspond to the 64 bit architecture.
     190({\tt \$SOPHYABASE/slb }).
     191On Silicon Graphics machines with IRIX64 operating system,
     192the default SOPHYA configuration correspond to the 64 bit architecture.
    191193The environment variable { \bf LD\_LIBRARY64\_PATH } defines
    192194the shared library path in this case and should contain ({\tt \$SOPHYABASE/slb }.
     195On IBM machines with AIX, the {\bf LIBPATH} environment variables
     196contains the shared libraries serach path.
     197
     198When using the dynamic load services in SOPHYA ({\tt PDynLinkMgr}
     199class), in runcxx or (s)piapp applications for example, the shared
     200library search path must contain the current working directory (
     201dot . in unix).
    193202
    194203The configure script creates links for external libraries include files in :
     
    267276\end{verbatim}
    268277
     278\subsection{the scanppf program}
     279{\bf scanfits} is a SOPHYA program using the FitsIOServer
     280\footnote{FitsIOServer module uses the cfitsio library. scanfits has to be linked with
     281with FitsIOServer module and cfitsio libraries, or libextsophya.so}
     282module which can be used
     283to analyse the content of FITS files. It can list the FITS headers,  the appropriate
     284SOPHYA-FITS handler (implementing {\tt FitsHandlerInterface}) class, and the list of
     285all registered  FITS handlers.
     286\begin{verbatim}
     287csh> scanfits -h
     288 SophyaInitiator::SophyaInitiator() BaseTools Init
     289 PIOPersist::Initialize() Starting Sophya Persistence management service
     290SOPHYA Version  1.9 Revision 33 (V_Mar2006) -- Apr  3 2006 14:04:07 gcc 3.3 20030304 (Apple Computer, Inc. build 1495)
     291 Usage: scanfits [flags] filename
     292 flags = -V1 -lh -rd -header
     293   -V1 : Scan using old (V1) code version
     294   -lh : Print the list of registered handlers (FitsHandlerInterface)
     295   -rd : try to read each HDU data using appropriate handler
     296   -header : List header information
     297\end{verbatim}
    269298
    270299\newpage
     
    435464\end{verbatim}
    436465
    437 \subsection{Using DVList}
    438 \index{DVList} \index{MuTyV}
     466\subsection{DVList, MuTyV and TimeStamp classes}
     467\index{DVList} \index{MuTyV} \index{TimeStamp}
    439468\begin{figure}[hbt]
     469\dclsa{MuTyV}
    440470\dclsbb{AnyDataObj}{DVList}
    441471\dclsbb{PPersist}{\tclsc{ObjFileIO}{DVList}}
     
    446476capable of holding string, integer, float or complex values,
    447477providing easy conversion methods between these objects.
     478{\bf MuTyV} objects can also hold {\bf TimeStamp } objects.
    448479\begin{verbatim}
    449480// Using MuTyV objects
     
    462493\end{verbatim}
    463494
     495\begin{figure}[hbt]
     496\dclsbb{AnyDataObj}{TimeStamp}
     497\end{figure}
     498%
     499The {\bf TimeStamp} class represent date and time and provides
     500many standard operations, such as Initialisation from strings,
     501conversion to strings and time interval computations. \\
     502Usage example:
     503\begin{verbatim}
     504// Create a object with the current date and time and prints it to cout
     505TimeStamp ts;
     506cout << ts << endl;
     507// Create an object with a specified date and time
     508TimeStamp ts2("01/01/1905","00:00:00");
     509// Get the number of days since 0 Jan 1901
     510cout << ts2.ToDays() << endl;
     511
     512// Combined use of TimeStamp and MuTyV
     513string s;         
     514TimeStamp ts;      // Current date/time
     515MuTyV mvt = ts;
     516s = mvt;           // s contains the current date in string format
     517cout << s << endl;
     518\end{verbatim}
     519
    464520\subsection{\tcls{SegDataBlock} , \tcls{SwSegDataBlock}}
    465521\begin{figure}[hbt]
     
    471527type {\bf T} with reference sharing in memory. The array can be extended
    472528(increase in array size) with fixed segment size. It implements the interface
    473 defined by tcls{SegDBInterface}.
    474 \item[] \tcls{SwSegDataBlock} Implements the same tcls{SegDBInterface}
    475 using a data swapper (\tcls{DataSwapperInterface} .
    476 Can thus be used for very large objects.
     529defined by \tcls{SegDBInterface}.
     530\item[] \tcls{SwSegDataBlock} Implements the same \tcls{SegDBInterface}
     531using a data swapper object. Data swappers implement the interface defined in
     532(\tcls{DataSwapperInterface} class.  \tcls{SwSegDataBlock} can
     533thus be used to handle arrays with very large number of objects.
     534These classes handles reference sharing.
    477535\end{itemize}
    478536 
     
    9581016\section{Module HiStats}
    9591017\begin{figure}[hbt]
    960 \dclsccc{AnyDataObj}{Histo}{HProf}
     1018\dclsbb{AnyDataObj}{Histo}
     1019\dclscc{Histo}{HProf}
     1020\dclscc{Histo}{HistoErr}
    9611021\dclsbb{AnyDataObj}{Histo2D}
    962 \dclsbb{AnyDataObj}{Ntuple}
    9631022\caption{partial class diagram for histograms and ntuples}
    9641023\end{figure}
Note: See TracChangeset for help on using the changeset viewer.