[165] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | // Adaptateurs et Drawers divers pour Outils PEIDA++
|
---|
| 3 | // R. Ansari 06-08/98
|
---|
| 4 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
|
---|
| 5 |
|
---|
| 6 | #ifndef PIPODRW_H_SEEN
|
---|
| 7 | #define PIPODRW_H_SEEN
|
---|
| 8 |
|
---|
[495] | 9 | #include "machdefs.h"
|
---|
[165] | 10 | #include "pidrawer.h"
|
---|
| 11 | #include "parradapter.h"
|
---|
| 12 | #include "histos2.h"
|
---|
| 13 |
|
---|
[495] | 14 | #ifdef SANS_EVOLPLANCK
|
---|
[544] | 15 | #include "cvector.h"
|
---|
| 16 | #include "matrix.h"
|
---|
[495] | 17 | class GeneralFunction;
|
---|
| 18 | #else
|
---|
[544] | 19 | #include "tvector.h"
|
---|
| 20 | #include "tmatrix.h"
|
---|
[495] | 21 | namespace PlanckDPC {class GeneralFunction;}
|
---|
| 22 | #endif
|
---|
[165] | 23 |
|
---|
| 24 | class PIGFFDrawer : public PIDrawer {
|
---|
| 25 | public:
|
---|
| 26 | PIGFFDrawer(GeneralFunction*);
|
---|
| 27 | virtual ~PIGFFDrawer();
|
---|
| 28 |
|
---|
[205] | 29 | virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
|
---|
[165] | 30 | virtual void SetParms(double const*);
|
---|
| 31 | protected:
|
---|
| 32 | GeneralFunction* mFunc;
|
---|
| 33 | int mNParms;
|
---|
| 34 | double* mParms;
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | // Adaptateur de vecteurs Peida++ a P1DArrayAdapter
|
---|
| 39 | class POVectorAdapter : public P1DArrayAdapter {
|
---|
| 40 | public :
|
---|
| 41 | POVectorAdapter(Vector* v, bool ad=false);
|
---|
| 42 | virtual ~POVectorAdapter();
|
---|
[205] | 43 | virtual double Value(int i);
|
---|
[165] | 44 |
|
---|
| 45 | protected:
|
---|
| 46 | bool aDel;
|
---|
| 47 | Vector* mVec;
|
---|
| 48 | };
|
---|
| 49 |
|
---|
| 50 | // Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter
|
---|
| 51 | class POH2DAdapter : public P2DArrayAdapter {
|
---|
| 52 | public :
|
---|
| 53 | POH2DAdapter(Histo2D* h2d, bool ad=false);
|
---|
| 54 | virtual ~POH2DAdapter();
|
---|
| 55 |
|
---|
[205] | 56 | virtual double Value(int ix, int iy);
|
---|
[165] | 57 |
|
---|
| 58 | protected:
|
---|
| 59 | bool aDel;
|
---|
| 60 | Histo2D* mH2d;
|
---|
| 61 | };
|
---|
| 62 |
|
---|
| 63 | // Adaptateur de matrice Peida++ a P2DArrayAdapter
|
---|
| 64 | // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
|
---|
| 65 | class POMatrixAdapter : public P2DArrayAdapter {
|
---|
| 66 | public :
|
---|
| 67 | POMatrixAdapter(Matrix* mtx, bool ad=false);
|
---|
| 68 | virtual ~POMatrixAdapter();
|
---|
| 69 |
|
---|
[205] | 70 | virtual double Value(int ix, int iy);
|
---|
[165] | 71 |
|
---|
| 72 | protected:
|
---|
| 73 | bool aDel;
|
---|
| 74 | Matrix* mMtx;
|
---|
| 75 | };
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | #endif
|
---|