[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
|
---|
| 19 | This module contains histograms
|
---|
| 20 | */
|
---|
| 21 |
|
---|
[763] | 22 | int HiStatsInitiator::FgInit = 0;
|
---|
| 23 |
|
---|
[920] | 24 | /*!
|
---|
| 25 | \class SOPHYA::HiStatsInitiator
|
---|
| 26 | \ingroup HiStats
|
---|
| 27 | Histograms initiator
|
---|
| 28 | */
|
---|
[763] | 29 | HiStatsInitiator::HiStatsInitiator()
|
---|
| 30 | : NToolsInitiator()
|
---|
| 31 | {
|
---|
| 32 | FgInit++;
|
---|
| 33 | if (FgInit > 1) return;
|
---|
| 34 |
|
---|
| 35 | // Enregistrement des classes PPersist du modules HiStats
|
---|
| 36 |
|
---|
| 37 | PPRegister(ObjFileIO<Histo>);
|
---|
[809] | 38 | DObjRegister(ObjFileIO<Histo>, Histo);
|
---|
[763] | 39 | PPRegister(ObjFileIO<Histo2D>);
|
---|
[809] | 40 | DObjRegister(ObjFileIO<Histo2D>, Histo2D);
|
---|
[763] | 41 | PPRegister(ObjFileIO<HProf>);
|
---|
[809] | 42 | DObjRegister(ObjFileIO<HProf>, HProf);
|
---|
[2603] | 43 | PPRegister(ObjFileIO<HistoErr>);
|
---|
| 44 | DObjRegister(ObjFileIO<HistoErr>, HistoErr);
|
---|
[763] | 45 |
|
---|
| 46 | PPRegister(ObjFileIO<NTuple>);
|
---|
[809] | 47 | DObjRegister(ObjFileIO<NTuple>, NTuple);
|
---|
[763] | 48 | PPRegister(ObjFileIO<XNTuple>);
|
---|
[809] | 49 | DObjRegister(ObjFileIO<XNTuple>, XNTuple);
|
---|
[763] | 50 |
|
---|
[2699] | 51 | PPRegister(ObjFileIO<BaseDataTable>);
|
---|
| 52 | DObjRegister(ObjFileIO<BaseDataTable>, DataTable);
|
---|
| 53 | DObjRegister(ObjFileIO<BaseDataTable>, SwPPFDataTable);
|
---|
[2688] | 54 |
|
---|
[763] | 55 | }
|
---|
| 56 |
|
---|
| 57 | HiStatsInitiator::~HiStatsInitiator()
|
---|
| 58 | {
|
---|
| 59 | FgInit--;
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
| 64 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
| 65 | static HiStatsInitiator histatsinit;
|
---|
| 66 |
|
---|