[763] | 1 | // Classe d'initialisation du module HiStats
|
---|
| 2 | // (Histogram and Statistics)
|
---|
| 3 |
|
---|
[2615] | 4 | #include "sopnamsp.h"
|
---|
[763] | 5 | #include "machdefs.h"
|
---|
| 6 | #include "histinit.h"
|
---|
| 7 |
|
---|
| 8 | #include "histos.h"
|
---|
| 9 | #include "histos2.h"
|
---|
| 10 | #include "hisprof.h"
|
---|
[2603] | 11 | #include "histerr.h"
|
---|
[763] | 12 | #include "ntuple.h"
|
---|
| 13 | #include "xntuple.h"
|
---|
[2688] | 14 | #include "datatable.h"
|
---|
[2699] | 15 | #include "swppfdtable.h"
|
---|
[763] | 16 |
|
---|
[920] | 17 | /*!
|
---|
| 18 | \defgroup HiStats HiStats module
|
---|
[2808] | 19 | This module contains histograms (1D, 2D) and
|
---|
| 20 | classes for management of data sets as tables (NTuple, DataTable ...)
|
---|
[920] | 21 | */
|
---|
| 22 |
|
---|
[763] | 23 | int HiStatsInitiator::FgInit = 0;
|
---|
| 24 |
|
---|
[920] | 25 | /*!
|
---|
| 26 | \class SOPHYA::HiStatsInitiator
|
---|
| 27 | \ingroup HiStats
|
---|
[2808] | 28 | This class performs the initialisation for HiStats module.
|
---|
| 29 | More specifically, it registers PPF handlers for the following classes :
|
---|
| 30 | - Histo
|
---|
| 31 | - HProf
|
---|
| 32 | - HistoErr
|
---|
| 33 | - Histo2D
|
---|
| 34 | - NTuple
|
---|
| 35 | - XNTuple
|
---|
| 36 | - DataTable
|
---|
| 37 | - SwPPFDataTable
|
---|
| 38 |
|
---|
| 39 | If the system linker/loader handles correctly static object initialisation, there
|
---|
| 40 | is no action required when writing programs. If not, an instance of the class must
|
---|
| 41 | be present before any other operation on the libray classes.
|
---|
[920] | 42 | */
|
---|
[2808] | 43 |
|
---|
[763] | 44 | HiStatsInitiator::HiStatsInitiator()
|
---|
| 45 | : NToolsInitiator()
|
---|
| 46 | {
|
---|
| 47 | FgInit++;
|
---|
| 48 | if (FgInit > 1) return;
|
---|
| 49 |
|
---|
| 50 | // Enregistrement des classes PPersist du modules HiStats
|
---|
| 51 |
|
---|
| 52 | PPRegister(ObjFileIO<Histo>);
|
---|
[809] | 53 | DObjRegister(ObjFileIO<Histo>, Histo);
|
---|
[763] | 54 | PPRegister(ObjFileIO<Histo2D>);
|
---|
[809] | 55 | DObjRegister(ObjFileIO<Histo2D>, Histo2D);
|
---|
[763] | 56 | PPRegister(ObjFileIO<HProf>);
|
---|
[809] | 57 | DObjRegister(ObjFileIO<HProf>, HProf);
|
---|
[2603] | 58 | PPRegister(ObjFileIO<HistoErr>);
|
---|
| 59 | DObjRegister(ObjFileIO<HistoErr>, HistoErr);
|
---|
[763] | 60 |
|
---|
| 61 | PPRegister(ObjFileIO<NTuple>);
|
---|
[809] | 62 | DObjRegister(ObjFileIO<NTuple>, NTuple);
|
---|
[763] | 63 | PPRegister(ObjFileIO<XNTuple>);
|
---|
[809] | 64 | DObjRegister(ObjFileIO<XNTuple>, XNTuple);
|
---|
[763] | 65 |
|
---|
[2699] | 66 | PPRegister(ObjFileIO<BaseDataTable>);
|
---|
| 67 | DObjRegister(ObjFileIO<BaseDataTable>, DataTable);
|
---|
| 68 | DObjRegister(ObjFileIO<BaseDataTable>, SwPPFDataTable);
|
---|
[2688] | 69 |
|
---|
[763] | 70 | }
|
---|
| 71 |
|
---|
| 72 | HiStatsInitiator::~HiStatsInitiator()
|
---|
| 73 | {
|
---|
| 74 | FgInit--;
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
| 79 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
| 80 | static HiStatsInitiator histatsinit;
|
---|
| 81 |
|
---|