ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hparam_stock.h
Go to the documentation of this file.
1 
2 /* \file Hparam_stock.h
3  *
4  * typedef Hparam_stock_t
5  *
6  * class similar to the original Hparam.h used by THistPainterStock
7  *
8  * designed for need of THStock, but try to keep compatibility with the original
9  *
10  */
11 
12 //just a copy of the original Hparam.h
13 
14 // in fact a global structure, not thread-safe at all !!
15 // not sure send as parameter to THStock::PaintObject( Hapram )
16 
17 #ifndef _Hparam_stock_
18 #define _Hparam_stock_
19 
20 #ifndef ROOT_Rtypes
21 #include "Rtypes.h"
22 #endif
23 
24 // could be in a namespace ??
25 
26 typedef struct Hparam_stock_t {
27 //*-*- structure to store current histogram parameters
28 //*-* ===============================================
29 //*-*
30  Double_t xbinsize; //bin size in case of equidistant bins
31  Double_t xlowedge; //low edge of axis
32  Double_t xmin; //minimum value along X
33  Double_t xmax; //maximum value along X
34  Double_t ybinsize; //bin size in case of equidistant bins
35  Double_t ylowedge; //low edge of axis
36  Double_t ymin; //minimum value along y
37  Double_t ymax; //maximum value along y
38  Double_t zbinsize; //bin size in case of equidistant bins
39  Double_t zlowedge; //low edge of axis
40  Double_t zmin; //minimum value along Z
41  Double_t zmax; //maximum value along Z
42  Double_t factor; //multiplication factor (normalization)
43  Double_t allchan; //integrated sum of contents
44  Double_t baroffset; //offset of bin for bars or legos [0,1]
45  Double_t barwidth; //width of bin for bars and legos [0,1]
46  Int_t xfirst; //first bin number along X
47  Int_t xlast; //last bin number along X
48  Int_t yfirst; //first bin number along Y
49  Int_t ylast; //last bin number along Y
50  Int_t zfirst; //first bin number along Z
51  Int_t zlast; //last bin number along Z
52 
53  //add some stuff
54  //not really needed, only internal to PaintIni(), see later to delete
55  Int_t shift_futur; // when playing with slider in the futur
56  Int_t shift_left; // when the size of the data differ, for EMA and other, use in PaintLine()
57  //can make a nbbin, but not in the logic
59 
60 #endif // _Hparam_stock_
61 
struct Hparam_stock_t Hparam_stock_t
Double_t xmin
Definition: Hparam_stock.h:32
Double_t factor
Definition: Hparam_stock.h:42
Double_t allchan
Definition: Hparam_stock.h:43
Double_t ymin
Definition: Hparam_stock.h:36
Double_t ylowedge
Definition: Hparam_stock.h:35
Double_t xlowedge
Definition: Hparam_stock.h:31
Double_t ybinsize
Definition: Hparam_stock.h:34
Double_t barwidth
Definition: Hparam_stock.h:45
Double_t xbinsize
Definition: Hparam_stock.h:30
Double_t xmax
Definition: Hparam_stock.h:33
Double_t zmax
Definition: Hparam_stock.h:41
Double_t baroffset
Definition: Hparam_stock.h:44
Double_t zlowedge
Definition: Hparam_stock.h:39
Double_t zmin
Definition: Hparam_stock.h:40
Double_t zbinsize
Definition: Hparam_stock.h:38
Double_t ymax
Definition: Hparam_stock.h:37