[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 |
|
---|
[3019] | 25 | // Module version number - 2.0 , Jul 2006
|
---|
| 26 | #define MOD_VERS 2.0
|
---|
| 27 |
|
---|
[920] | 28 | /*!
|
---|
| 29 | \class SOPHYA::HiStatsInitiator
|
---|
| 30 | \ingroup HiStats
|
---|
[2808] | 31 | This class performs the initialisation for HiStats module.
|
---|
| 32 | More specifically, it registers PPF handlers for the following classes :
|
---|
| 33 | - Histo
|
---|
| 34 | - HProf
|
---|
| 35 | - HistoErr
|
---|
| 36 | - Histo2D
|
---|
| 37 | - NTuple
|
---|
| 38 | - XNTuple
|
---|
| 39 | - DataTable
|
---|
| 40 | - SwPPFDataTable
|
---|
| 41 |
|
---|
| 42 | If the system linker/loader handles correctly static object initialisation, there
|
---|
| 43 | is no action required when writing programs. If not, an instance of the class must
|
---|
| 44 | be present before any other operation on the libray classes.
|
---|
[920] | 45 | */
|
---|
[2808] | 46 |
|
---|
[763] | 47 | HiStatsInitiator::HiStatsInitiator()
|
---|
| 48 | : NToolsInitiator()
|
---|
| 49 | {
|
---|
| 50 | FgInit++;
|
---|
| 51 | if (FgInit > 1) return;
|
---|
| 52 |
|
---|
| 53 | // Enregistrement des classes PPersist du modules HiStats
|
---|
| 54 |
|
---|
| 55 | PPRegister(ObjFileIO<Histo>);
|
---|
[809] | 56 | DObjRegister(ObjFileIO<Histo>, Histo);
|
---|
[763] | 57 | PPRegister(ObjFileIO<Histo2D>);
|
---|
[809] | 58 | DObjRegister(ObjFileIO<Histo2D>, Histo2D);
|
---|
[763] | 59 | PPRegister(ObjFileIO<HProf>);
|
---|
[809] | 60 | DObjRegister(ObjFileIO<HProf>, HProf);
|
---|
[2603] | 61 | PPRegister(ObjFileIO<HistoErr>);
|
---|
| 62 | DObjRegister(ObjFileIO<HistoErr>, HistoErr);
|
---|
[763] | 63 |
|
---|
| 64 | PPRegister(ObjFileIO<NTuple>);
|
---|
[809] | 65 | DObjRegister(ObjFileIO<NTuple>, NTuple);
|
---|
[763] | 66 | PPRegister(ObjFileIO<XNTuple>);
|
---|
[809] | 67 | DObjRegister(ObjFileIO<XNTuple>, XNTuple);
|
---|
[763] | 68 |
|
---|
[2699] | 69 | PPRegister(ObjFileIO<BaseDataTable>);
|
---|
| 70 | DObjRegister(ObjFileIO<BaseDataTable>, DataTable);
|
---|
| 71 | DObjRegister(ObjFileIO<BaseDataTable>, SwPPFDataTable);
|
---|
[2688] | 72 |
|
---|
[3019] | 73 | SophyaInitiator::RegisterModule("HiStats", MOD_VERS); // Module name and version number registration
|
---|
| 74 |
|
---|
[763] | 75 | }
|
---|
| 76 |
|
---|
| 77 | HiStatsInitiator::~HiStatsInitiator()
|
---|
| 78 | {
|
---|
| 79 | FgInit--;
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
| 84 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
| 85 | static HiStatsInitiator histatsinit;
|
---|
| 86 |
|
---|