| 1 | // Classe d'initialisation du module HiStats
|
|---|
| 2 | // (Histogram and Statistics)
|
|---|
| 3 |
|
|---|
| 4 | #include "sopnamsp.h"
|
|---|
| 5 | #include "machdefs.h"
|
|---|
| 6 | #include "histinit.h"
|
|---|
| 7 |
|
|---|
| 8 | #include "histos.h"
|
|---|
| 9 | #include "histos2.h"
|
|---|
| 10 | #include "hisprof.h"
|
|---|
| 11 | #include "histerr.h"
|
|---|
| 12 | #include "ntuple.h"
|
|---|
| 13 | #include "xntuple.h"
|
|---|
| 14 | #include "datatable.h"
|
|---|
| 15 | #include "swppfdtable.h"
|
|---|
| 16 |
|
|---|
| 17 | /*!
|
|---|
| 18 | \defgroup HiStats HiStats module
|
|---|
| 19 | This module contains histograms
|
|---|
| 20 | */
|
|---|
| 21 |
|
|---|
| 22 | int HiStatsInitiator::FgInit = 0;
|
|---|
| 23 |
|
|---|
| 24 | /*!
|
|---|
| 25 | \class SOPHYA::HiStatsInitiator
|
|---|
| 26 | \ingroup HiStats
|
|---|
| 27 | Histograms initiator
|
|---|
| 28 | */
|
|---|
| 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>);
|
|---|
| 38 | DObjRegister(ObjFileIO<Histo>, Histo);
|
|---|
| 39 | PPRegister(ObjFileIO<Histo2D>);
|
|---|
| 40 | DObjRegister(ObjFileIO<Histo2D>, Histo2D);
|
|---|
| 41 | PPRegister(ObjFileIO<HProf>);
|
|---|
| 42 | DObjRegister(ObjFileIO<HProf>, HProf);
|
|---|
| 43 | PPRegister(ObjFileIO<HistoErr>);
|
|---|
| 44 | DObjRegister(ObjFileIO<HistoErr>, HistoErr);
|
|---|
| 45 |
|
|---|
| 46 | PPRegister(ObjFileIO<NTuple>);
|
|---|
| 47 | DObjRegister(ObjFileIO<NTuple>, NTuple);
|
|---|
| 48 | PPRegister(ObjFileIO<XNTuple>);
|
|---|
| 49 | DObjRegister(ObjFileIO<XNTuple>, XNTuple);
|
|---|
| 50 |
|
|---|
| 51 | PPRegister(ObjFileIO<BaseDataTable>);
|
|---|
| 52 | DObjRegister(ObjFileIO<BaseDataTable>, DataTable);
|
|---|
| 53 | DObjRegister(ObjFileIO<BaseDataTable>, SwPPFDataTable);
|
|---|
| 54 |
|
|---|
| 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 |
|
|---|