| [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 |  | 
|---|
| [205] | 16 | virtual void       Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax); | 
|---|
| [165] | 17 | virtual void       UpdateLimits(); | 
|---|
|  | 18 |  | 
|---|
| [344] | 19 | virtual void       SelectXY(const char* px, const char* py); | 
|---|
|  | 20 | virtual void       SelectWt(const char* pw=NULL, int nbins=10); | 
|---|
|  | 21 | virtual void       SelectErrBar(const char* erbx=NULL, const char* erby=NULL); | 
|---|
| [486] | 22 | virtual void       SelectLabel(const char* plabel=NULL); | 
|---|
| [165] | 23 |  | 
|---|
| [546] | 24 | inline  void       SetStats(bool fg=true) { stats = fg; } | 
|---|
| [344] | 25 | virtual void       AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax); | 
|---|
| [165] | 26 |  | 
|---|
|  | 27 | protected: | 
|---|
| [326] | 28 | NTupleInterface* mNT; | 
|---|
| [165] | 29 | bool mAdDO; | 
|---|
|  | 30 | int xK, yK;          // Index du nom de variable en X/Y ds le ntuple | 
|---|
|  | 31 | int xebK, yebK;      // Index du nom de variable en ErrBarX/Y ds le ntuple | 
|---|
| [333] | 32 | int wK;              // Index du nom de variable poids | 
|---|
| [486] | 33 | int lK;              // Index du nom de variable label (affiche en texte) | 
|---|
| [333] | 34 | double wMin, wMax;        // Valeurs de poids min/max | 
|---|
|  | 35 | int nWbins;               // Nombre de bins pour le poids (Wt) | 
|---|
| [544] | 36 | bool stats;               // true -> indication du nb de points | 
|---|
| [165] | 37 | }; | 
|---|
|  | 38 |  | 
|---|
|  | 39 | #endif | 
|---|
|  | 40 |  | 
|---|
|  | 41 |  | 
|---|
|  | 42 |  | 
|---|
|  | 43 |  | 
|---|