[344] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | // Module PI : Peida Interactive PINTuple et PINTupleWdg
|
---|
| 3 | // Traceur d objet de type NTupleInterface
|
---|
| 4 |
|
---|
[165] | 5 | #ifndef PINTUPLE_H
|
---|
| 6 | #define PINTUPLE_H
|
---|
| 7 |
|
---|
[326] | 8 | #include "ntupintf.h"
|
---|
[165] | 9 | #include "pidrawer.h"
|
---|
| 10 |
|
---|
| 11 | class PINTuple : public PIDrawer {
|
---|
| 12 | public:
|
---|
[326] | 13 | PINTuple(NTupleInterface* nt, bool ad);
|
---|
[165] | 14 | virtual ~PINTuple();
|
---|
| 15 |
|
---|
[1971] | 16 |
|
---|
[205] | 17 | virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax);
|
---|
[165] | 18 | virtual void UpdateLimits();
|
---|
| 19 |
|
---|
[344] | 20 | virtual void SelectXY(const char* px, const char* py);
|
---|
| 21 | virtual void SelectWt(const char* pw=NULL, int nbins=10);
|
---|
| 22 | virtual void SelectErrBar(const char* erbx=NULL, const char* erby=NULL);
|
---|
[486] | 23 | virtual void SelectLabel(const char* plabel=NULL);
|
---|
[165] | 24 |
|
---|
[546] | 25 | inline void SetStats(bool fg=true) { stats = fg; }
|
---|
[344] | 26 | virtual void AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax);
|
---|
[1971] | 27 |
|
---|
| 28 | // Methode de decodage des options
|
---|
| 29 | virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true);
|
---|
[1975] | 30 | // Texte d'aide des options disponibles
|
---|
| 31 | virtual void GetOptionsHelpInfo(string& info);
|
---|
[165] | 32 |
|
---|
| 33 | protected:
|
---|
[326] | 34 | NTupleInterface* mNT;
|
---|
[165] | 35 | bool mAdDO;
|
---|
| 36 | int xK, yK; // Index du nom de variable en X/Y ds le ntuple
|
---|
| 37 | int xebK, yebK; // Index du nom de variable en ErrBarX/Y ds le ntuple
|
---|
[333] | 38 | int wK; // Index du nom de variable poids
|
---|
[486] | 39 | int lK; // Index du nom de variable label (affiche en texte)
|
---|
[333] | 40 | double wMin, wMax; // Valeurs de poids min/max
|
---|
| 41 | int nWbins; // Nombre de bins pour le poids (Wt)
|
---|
[544] | 42 | bool stats; // true -> indication du nb de points
|
---|
[165] | 43 | };
|
---|
| 44 |
|
---|
| 45 | #endif
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 |
|
---|