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"
|
---|
14 | #include "xntuple.h"
|
---|
15 | #include "generaldata.h"
|
---|
16 | #include "tmatrix.h"
|
---|
17 | #include "tvector.h"
|
---|
18 |
|
---|
19 | #include "cimage.h"
|
---|
20 |
|
---|
21 | #include "tabmath.h"
|
---|
22 | #include "dates.h"
|
---|
23 | #include "datime.h"
|
---|
24 |
|
---|
25 | int PeidaOutilsInitiator::FgInit = 0;
|
---|
26 |
|
---|
27 | PeidaOutilsInitiator::PeidaOutilsInitiator()
|
---|
28 | : PeidaInitiator()
|
---|
29 | {
|
---|
30 | FgInit++;
|
---|
31 | if (FgInit > 1) return;
|
---|
32 |
|
---|
33 | // Enregistrement des classes PPersist du modules Outils++
|
---|
34 |
|
---|
35 | PPRegister(OMatrix);
|
---|
36 | PPRegister(OVector);
|
---|
37 | PPRegister(ObjFileIO<Poly>);
|
---|
38 | PPRegister(ObjFileIO<Poly2>);
|
---|
39 | PPRegister(ObjFileIO<DVList>);
|
---|
40 | PPRegister(ObjFileIO<Histo>);
|
---|
41 | PPRegister(ObjFileIO<Histo2D>);
|
---|
42 | PPRegister(ObjFileIO<HProf>);
|
---|
43 |
|
---|
44 | PPRegister(ObjFileIO<NTuple>);
|
---|
45 | PPRegister(ObjFileIO<XNTuple>);
|
---|
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>);
|
---|
56 | PPRegister(FIO_TMatrix< complex<r_4> >);
|
---|
57 | PPRegister(FIO_TMatrix< complex<r_8> >);
|
---|
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>);
|
---|
67 | PPRegister(FIO_TVector< complex<r_4> >);
|
---|
68 | PPRegister(FIO_TVector< complex<r_8> >);
|
---|
69 |
|
---|
70 |
|
---|
71 | PPRegister(RzImage);
|
---|
72 | PPRegister(ImageU2);
|
---|
73 | PPRegister(ImageI2);
|
---|
74 | PPRegister(ImageI4);
|
---|
75 | PPRegister(ImageR4);
|
---|
76 |
|
---|
77 | //PPersistMgr::RegisterClass(OMatrix::classId, OMatrix::Create);
|
---|
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 |
|
---|
93 | PeidaOutilsInitiator::~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
|
---|
101 | static PeidaOutilsInitiator poutilsinit;
|
---|
102 |
|
---|