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 |
|
---|
9 | #include "machdefs.h"
|
---|
10 | #include "pidrawer.h"
|
---|
11 | #include "parradapter.h"
|
---|
12 | #include "histos2.h"
|
---|
13 |
|
---|
14 | #ifdef SANS_EVOLPLANCK
|
---|
15 | #include "cvector.h"
|
---|
16 | #include "matrix.h"
|
---|
17 | class GeneralFunction;
|
---|
18 | #else
|
---|
19 | #include "tvector.h"
|
---|
20 | #include "tmatrix.h"
|
---|
21 | namespace PlanckDPC {class GeneralFunction;}
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | class PIGFFDrawer : public PIDrawer {
|
---|
25 | public:
|
---|
26 | PIGFFDrawer(GeneralFunction*);
|
---|
27 | virtual ~PIGFFDrawer();
|
---|
28 |
|
---|
29 | virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
|
---|
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();
|
---|
43 | virtual double Value(int i);
|
---|
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 |
|
---|
56 | virtual double Value(int ix, int iy);
|
---|
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 |
|
---|
70 | virtual double Value(int ix, int iy);
|
---|
71 |
|
---|
72 | protected:
|
---|
73 | bool aDel;
|
---|
74 | Matrix* mMtx;
|
---|
75 | };
|
---|
76 |
|
---|
77 |
|
---|
78 | #endif
|
---|