source: Sophya/trunk/SophyaLib/NTools/outilsinit.cc@ 753

Last change on this file since 753 was 718, checked in by ansari, 26 years ago

Ajout commentaire/variable ds DVList - Remplacement float/double par r_4 r_8
Ajout classe XNTuple (importe/adapte depuis PEIDA) - Reza 7 Fev 2000

File size: 2.3 KB
RevLine 
[220]1// Classe d'initialisation du module Outils++
2#include <unistd.h>
3
4#include "outilsinit.h"
5
6#include "matrix.h"
7#include "cvector.h"
8#include "poly.h"
9#include "dvlist.h"
10#include "histos.h"
11#include "histos2.h"
12#include "hisprof.h"
13#include "ntuple.h"
[718]14#include "xntuple.h"
[220]15#include "generaldata.h"
[490]16#include "tmatrix.h"
17#include "tvector.h"
[220]18
19#include "cimage.h"
20
21#include "tabmath.h"
22#include "dates.h"
23#include "datime.h"
24
25int PeidaOutilsInitiator::FgInit = 0;
26
27PeidaOutilsInitiator::PeidaOutilsInitiator()
28 : PeidaInitiator()
29{
30 FgInit++;
31 if (FgInit > 1) return;
32
33// Enregistrement des classes PPersist du modules Outils++
34
[508]35 PPRegister(OMatrix);
36 PPRegister(OVector);
[514]37 PPRegister(ObjFileIO<Poly>);
38 PPRegister(ObjFileIO<Poly2>);
[278]39 PPRegister(ObjFileIO<DVList>);
[490]40 PPRegister(ObjFileIO<Histo>);
41 PPRegister(ObjFileIO<Histo2D>);
42 PPRegister(ObjFileIO<HProf>);
[220]43
[490]44 PPRegister(ObjFileIO<NTuple>);
[718]45 PPRegister(ObjFileIO<XNTuple>);
[490]46 PPRegister(ObjFileIO<GeneralFitData>);
47
48 PPRegister(FIO_TMatrix<uint_1>);
49 PPRegister(FIO_TMatrix<uint_2>);
50 PPRegister(FIO_TMatrix<int_2>);
51 PPRegister(FIO_TMatrix<int_4>);
52 PPRegister(FIO_TMatrix<int_8>);
53 PPRegister(FIO_TMatrix<uint_8>);
54 PPRegister(FIO_TMatrix<r_4>);
55 PPRegister(FIO_TMatrix<r_8>);
[718]56 PPRegister(FIO_TMatrix< complex<r_4> >);
57 PPRegister(FIO_TMatrix< complex<r_8> >);
[490]58
59 PPRegister(FIO_TVector<uint_1>);
60 PPRegister(FIO_TVector<uint_2>);
61 PPRegister(FIO_TVector<int_2>);
62 PPRegister(FIO_TVector<int_4>);
63 PPRegister(FIO_TVector<int_8>);
64 PPRegister(FIO_TVector<uint_8>);
65 PPRegister(FIO_TVector<r_4>);
66 PPRegister(FIO_TVector<r_8>);
[718]67 PPRegister(FIO_TVector< complex<r_4> >);
68 PPRegister(FIO_TVector< complex<r_8> >);
[490]69
70
[244]71 PPRegister(RzImage);
72 PPRegister(ImageU2);
73 PPRegister(ImageI2);
74 PPRegister(ImageI4);
75 PPRegister(ImageR4);
[220]76
[508]77 //PPersistMgr::RegisterClass(OMatrix::classId, OMatrix::Create);
[220]78
79 int pnice;
80 char* snice = getenv("PEIDANICE");
81 if (!snice) pnice=8;
82 else pnice = atoi(snice);
83 nice(pnice);
84
85// TSidSetupLaSilla(); Old-Eros
86
87 gTimeZone = new TimeZone;
88
89 ptabFExp = new TabFExp;
90
91}
92
93PeidaOutilsInitiator::~PeidaOutilsInitiator()
94{
95 FgInit--;
96}
97
98
99// On met un objet initiator en statique, pour les loaders qui savent
100// appeler le constructeur des objets statiques Reza 08/98
101static PeidaOutilsInitiator poutilsinit;
102
Note: See TracBrowser for help on using the repository browser.