Changeset 2996 in Sophya for trunk/SophyaLib/Manual/sophya.tex
- Timestamp:
- Jun 29, 2006, 6:21:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Manual/sophya.tex
r2919 r2996 170 170 171 171 \section{Using Sophya} 172 The organisation of SOPHYA directories and some of the associated 173 utility programs are described in this section. 172 174 Basic usage of Sophya classes are described in in the following sections. 173 175 Complete Sophya documentation can be found at our web site … … 186 188 In order to use the shared libraries, the {\bf LD\_LIBRARY\_PATH} variable 187 189 should contain the Sophya shared library path 188 ({\tt \$SOPHYABASE/slb }). \\189 On Sil ocon Graphics machines (IRIX64) , the default SOPHYA configuration190 correspond to the 64 bit architecture.190 ({\tt \$SOPHYABASE/slb }). 191 On Silicon Graphics machines with IRIX64 operating system, 192 the default SOPHYA configuration correspond to the 64 bit architecture. 191 193 The environment variable { \bf LD\_LIBRARY64\_PATH } defines 192 194 the shared library path in this case and should contain ({\tt \$SOPHYABASE/slb }. 195 On IBM machines with AIX, the {\bf LIBPATH} environment variables 196 contains the shared libraries serach path. 197 198 When using the dynamic load services in SOPHYA ({\tt PDynLinkMgr} 199 class), in runcxx or (s)piapp applications for example, the shared 200 library search path must contain the current working directory ( 201 dot . in unix). 193 202 194 203 The configure script creates links for external libraries include files in : … … 267 276 \end{verbatim} 268 277 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 281 with FitsIOServer module and cfitsio libraries, or libextsophya.so} 282 module which can be used 283 to analyse the content of FITS files. It can list the FITS headers, the appropriate 284 SOPHYA-FITS handler (implementing {\tt FitsHandlerInterface}) class, and the list of 285 all registered FITS handlers. 286 \begin{verbatim} 287 csh> scanfits -h 288 SophyaInitiator::SophyaInitiator() BaseTools Init 289 PIOPersist::Initialize() Starting Sophya Persistence management service 290 SOPHYA 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} 269 298 270 299 \newpage … … 435 464 \end{verbatim} 436 465 437 \subsection{ Using DVList}438 \index{DVList} \index{MuTyV} 466 \subsection{DVList, MuTyV and TimeStamp classes} 467 \index{DVList} \index{MuTyV} \index{TimeStamp} 439 468 \begin{figure}[hbt] 469 \dclsa{MuTyV} 440 470 \dclsbb{AnyDataObj}{DVList} 441 471 \dclsbb{PPersist}{\tclsc{ObjFileIO}{DVList}} … … 446 476 capable of holding string, integer, float or complex values, 447 477 providing easy conversion methods between these objects. 478 {\bf MuTyV} objects can also hold {\bf TimeStamp } objects. 448 479 \begin{verbatim} 449 480 // Using MuTyV objects … … 462 493 \end{verbatim} 463 494 495 \begin{figure}[hbt] 496 \dclsbb{AnyDataObj}{TimeStamp} 497 \end{figure} 498 % 499 The {\bf TimeStamp} class represent date and time and provides 500 many standard operations, such as Initialisation from strings, 501 conversion to strings and time interval computations. \\ 502 Usage example: 503 \begin{verbatim} 504 // Create a object with the current date and time and prints it to cout 505 TimeStamp ts; 506 cout << ts << endl; 507 // Create an object with a specified date and time 508 TimeStamp ts2("01/01/1905","00:00:00"); 509 // Get the number of days since 0 Jan 1901 510 cout << ts2.ToDays() << endl; 511 512 // Combined use of TimeStamp and MuTyV 513 string s; 514 TimeStamp ts; // Current date/time 515 MuTyV mvt = ts; 516 s = mvt; // s contains the current date in string format 517 cout << s << endl; 518 \end{verbatim} 519 464 520 \subsection{\tcls{SegDataBlock} , \tcls{SwSegDataBlock}} 465 521 \begin{figure}[hbt] … … 471 527 type {\bf T} with reference sharing in memory. The array can be extended 472 528 (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. 529 defined by \tcls{SegDBInterface}. 530 \item[] \tcls{SwSegDataBlock} Implements the same \tcls{SegDBInterface} 531 using a data swapper object. Data swappers implement the interface defined in 532 (\tcls{DataSwapperInterface} class. \tcls{SwSegDataBlock} can 533 thus be used to handle arrays with very large number of objects. 534 These classes handles reference sharing. 477 535 \end{itemize} 478 536 … … 958 1016 \section{Module HiStats} 959 1017 \begin{figure}[hbt] 960 \dclsccc{AnyDataObj}{Histo}{HProf} 1018 \dclsbb{AnyDataObj}{Histo} 1019 \dclscc{Histo}{HProf} 1020 \dclscc{Histo}{HistoErr} 961 1021 \dclsbb{AnyDataObj}{Histo2D} 962 \dclsbb{AnyDataObj}{Ntuple}963 1022 \caption{partial class diagram for histograms and ntuples} 964 1023 \end{figure}
Note:
See TracChangeset
for help on using the changeset viewer.