1 | /* ======================================================================== *\
|
---|
2 | ! $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.69 2009-02-11 12:25:42 tbretz Exp $
|
---|
3 | \* ======================================================================== */
|
---|
4 | #ifndef MARS_MHCamera
|
---|
5 | #define MARS_MHCamera
|
---|
6 |
|
---|
7 | #ifndef MARS_MAGIC
|
---|
8 | #include "MAGIC.h"
|
---|
9 | #endif
|
---|
10 | #ifndef ROOT_TArrayC
|
---|
11 | #include <TArrayC.h>
|
---|
12 | #endif
|
---|
13 | #ifndef ROOT_TArrayI
|
---|
14 | #include <TArrayI.h>
|
---|
15 | #endif
|
---|
16 | #ifndef ROOT_MArrayD
|
---|
17 | #include <MArrayD.h>
|
---|
18 | #endif
|
---|
19 | #ifndef ROOT_TClonesArray
|
---|
20 | #include <TClonesArray.h>
|
---|
21 | #endif
|
---|
22 | #ifndef ROOT_TH1
|
---|
23 | #include <TH1.h>
|
---|
24 | #endif
|
---|
25 | #ifndef ROOT_TCanvas
|
---|
26 | #include <TCanvas.h>
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | class TPaveStats;
|
---|
30 | class TProfile;
|
---|
31 |
|
---|
32 | class MGeomCam;
|
---|
33 | class MCamEvent;
|
---|
34 | class MRflEvtData;
|
---|
35 | class MCerPhotEvt;
|
---|
36 | class MImgCleanStd;
|
---|
37 |
|
---|
38 | class MHCamera : public TH1D
|
---|
39 | {
|
---|
40 | public:
|
---|
41 | enum {
|
---|
42 | // DO NOT USE BIT(14) (MStatusArray WORKAROUND!)
|
---|
43 | // BIT(15)/BIT(16)/BIT(17) used by TH1
|
---|
44 | kProfile = BIT(18), // FIXME: When changing change max/min!
|
---|
45 | kFreezed = BIT(19),
|
---|
46 | kNoLegend = BIT(20),
|
---|
47 | kNoScale = BIT(21),
|
---|
48 | kNoUnused = BIT(22),
|
---|
49 | kErrorMean = BIT(23)/*, // NO MORE BITS ALLOWED!
|
---|
50 | kSqrtVariance = BIT(21),
|
---|
51 | kSinglePixelProfile = BIT(22)*/
|
---|
52 | };
|
---|
53 | protected:
|
---|
54 | MGeomCam *fGeomCam; // pointer to camera geometry (y-axis)
|
---|
55 | TArrayC fUsed; // array containing flags
|
---|
56 | TArrayI fBinEntries; // number of entries per bin
|
---|
57 |
|
---|
58 | TList *fNotify; //!
|
---|
59 |
|
---|
60 | //#if ROOT_VERSION_CODE < ROOT_VERSION(4,00,03)
|
---|
61 | Bool_t fFreezed; //! Just a dummy!!!! ([Set,Is]Freezed)
|
---|
62 | //#endif
|
---|
63 |
|
---|
64 | Float_t fAbberation;
|
---|
65 |
|
---|
66 | void Init();
|
---|
67 | /*
|
---|
68 | Stat_t Profile(Stat_t val) const
|
---|
69 | {
|
---|
70 | if (!TestBit(kProfile))
|
---|
71 | return val;
|
---|
72 |
|
---|
73 | const Stat_t n = TH1D::GetEntries();
|
---|
74 | return n>0 ? val/n : val;
|
---|
75 | }
|
---|
76 | */
|
---|
77 | Int_t GetColor(Float_t val, Float_t min, Float_t max, Bool_t islog);
|
---|
78 |
|
---|
79 | void PaintIndices(Int_t type);
|
---|
80 | void Update(Bool_t islog, Bool_t isbox, Bool_t iscol, Bool_t issame);
|
---|
81 | void UpdateLegend(Float_t min, Float_t max, Bool_t islog);
|
---|
82 |
|
---|
83 | TPaveStats *GetStatisticBox();
|
---|
84 |
|
---|
85 | Int_t GetPixelIndex(Int_t px, Int_t py, Float_t conv=1) const;
|
---|
86 |
|
---|
87 | void PaintAxisTitle();
|
---|
88 |
|
---|
89 | enum {
|
---|
90 | kIsUsed = BIT(1)
|
---|
91 | };
|
---|
92 |
|
---|
93 | void ResetUsed(Int_t idx) { CLRBIT(fUsed[idx], kIsUsed); }
|
---|
94 |
|
---|
95 | Bool_t FindVal(const TArrayI &arr, Int_t val) const
|
---|
96 | {
|
---|
97 | const Int_t n = arr.GetSize();
|
---|
98 | if (n==0)
|
---|
99 | return kTRUE;
|
---|
100 |
|
---|
101 | const Int_t *p = arr.GetArray();
|
---|
102 | const Int_t *end = p+n;
|
---|
103 | while (p<end)
|
---|
104 | if (val==*p++)
|
---|
105 | return kTRUE;
|
---|
106 |
|
---|
107 | return kFALSE;
|
---|
108 | }
|
---|
109 | Bool_t MatchSector(Int_t idx, const TArrayI §or, const TArrayI &aidx) const;
|
---|
110 |
|
---|
111 | // This is a trick to remove TH1 entries from the context menu
|
---|
112 | TH1 *Rebin(Int_t ngroup=2, const char *newname="", const Double_t *bin=0) { return this; }
|
---|
113 | TH1 *Rebin(Int_t ngroup=2, const char *newname="") { return this; }
|
---|
114 | void DrawPanel() {}
|
---|
115 |
|
---|
116 | Int_t Fill(Axis_t x);
|
---|
117 | Int_t Fill(const char *name, Stat_t w) { return -1; }
|
---|
118 | void FillN(Int_t ntimes, const Axis_t *x, const Double_t *w, Int_t stride=1) {}
|
---|
119 | void FillN(Int_t, const Axis_t *, const Axis_t *, const Double_t *, Int_t) {}
|
---|
120 |
|
---|
121 | public:
|
---|
122 | MHCamera();
|
---|
123 | MHCamera(const MGeomCam &geom, const char *name="", const char *title="");
|
---|
124 | ~MHCamera();
|
---|
125 |
|
---|
126 | TObject *Clone(const char *newname="") const;
|
---|
127 |
|
---|
128 | void SetGeometry(const MGeomCam &geom, const char *name="", const char *title="");
|
---|
129 | const MGeomCam* GetGeometry() const { return fGeomCam; }
|
---|
130 |
|
---|
131 | Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }
|
---|
132 | void SetUsed(Int_t idx) { SETBIT(fUsed[idx], kIsUsed); }
|
---|
133 | void SetAllUsed() { fUsed.Reset(BIT(kIsUsed)); }
|
---|
134 |
|
---|
135 | UInt_t GetNumUsedSector(const TArrayI §or, const TArrayI &aidx) const;
|
---|
136 | UInt_t GetNumUsed() const { return GetNumUsedSector(TArrayI(), TArrayI()); }
|
---|
137 | UInt_t GetNumUsedSector(Int_t sector, Int_t aidx) const
|
---|
138 | {
|
---|
139 | return GetNumUsedSector(TArrayI(1, §or), TArrayI(1, &aidx));
|
---|
140 | }
|
---|
141 |
|
---|
142 |
|
---|
143 | Int_t Fill(Axis_t x, Axis_t y, Stat_t w);
|
---|
144 | Int_t Fill(Axis_t x, Stat_t w);
|
---|
145 |
|
---|
146 | //void AddPixContent(Int_t idx) const { AddBinContent(idx+1); }
|
---|
147 | //void AddPixContent(Int_t idx, Stat_t w) const { AddBinContent(idx+1, w); }
|
---|
148 |
|
---|
149 | // This is a trick to remove TH1 entries from the context menu
|
---|
150 | /*
|
---|
151 | void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1) { TH1::Add(h1, h2, c1, c2); }
|
---|
152 | void Add(TF1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
|
---|
153 | void Add(const TH1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
|
---|
154 | void Divide(TF1 *f1, Double_t c1=1) { TH1::Divide(f1, c1); }
|
---|
155 | void Divide(const TH1 *h1) { TH1::Divide(h1); }
|
---|
156 | void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Divide(h1, h2, c1, c2, option); }
|
---|
157 | void Multiply(TF1 *h1, Double_t c1=1) { TH1::Multiply(h1, c1); }
|
---|
158 | void Multiply(const TH1 *h1) { TH1::Multiply(h1); }
|
---|
159 | void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Multiply(h1, h2, c1, c2, option); }
|
---|
160 | */
|
---|
161 |
|
---|
162 | void FitPanel() { TH1::FitPanel(); }
|
---|
163 |
|
---|
164 | virtual Double_t GetPixContent(Int_t idx) const { return GetBinContent(idx+1); }
|
---|
165 | virtual void AddCamDifference(const MCamEvent &evt, const MCamEvent &evt2, Int_t type=0);
|
---|
166 | virtual void AddCamContent(const MCamEvent &evt, Int_t type=0, Stat_t weight=1);
|
---|
167 | virtual void AddCamContent(const MHCamera &evt, Int_t type=0);
|
---|
168 | virtual void AddCamContent(const TArrayD &arr, const TArrayC *used=NULL);
|
---|
169 | virtual void AddCamContent(const MArrayD &arr, const TArrayC *used=NULL);
|
---|
170 | virtual void SetCamContent(const MCamEvent &evt, Int_t type=0) { Reset(); AddCamContent(evt, type); }
|
---|
171 | virtual void SetCamContent(const MHCamera &cam, Int_t type=0) { Reset(); AddCamContent(cam, type); }
|
---|
172 | virtual void SetCamContent(const TArrayD &evt, const TArrayC *used=NULL) { Reset(); AddCamContent(evt, used); }
|
---|
173 | virtual void SetCamContent(const MArrayD &evt, const TArrayC *used=NULL) { Reset(); AddCamContent(evt, used); }
|
---|
174 |
|
---|
175 | virtual void SetCamError(const MCamEvent &evt, Int_t type=0);
|
---|
176 | virtual void SetUsed(const TArrayC &arr);
|
---|
177 |
|
---|
178 | virtual void AddMedianShift(const MCamEvent &evt, Int_t type=0, Stat_t weight=1);
|
---|
179 | virtual void AddMeanShift(const MCamEvent &evt, Int_t type=0, Stat_t weight=1);
|
---|
180 |
|
---|
181 | virtual void CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0, Bool_t isabove=kTRUE);
|
---|
182 | virtual void CntCamContent(const MCamEvent &evt, TArrayD threshold, Int_t type=0, Bool_t isabove=kTRUE);
|
---|
183 | virtual void CntCamContent(const TArrayD &evt, Double_t threshold, Bool_t ispos=kTRUE);
|
---|
184 | virtual void CntCamContent(const MCamEvent &event, Int_t type1, const MCamEvent &thresevt, Int_t type2, Double_t threshold, Bool_t isabove);
|
---|
185 |
|
---|
186 | virtual void SetMaxCamContent(const MCamEvent &evt, Int_t type=0);
|
---|
187 | virtual void SetMinCamContent(const MCamEvent &evt, Int_t type=0);
|
---|
188 |
|
---|
189 | Stat_t GetBinContent(Int_t bin) const;
|
---|
190 | Stat_t GetBinContent(Int_t binx, Int_t biny) const { return GetBinContent(binx); }
|
---|
191 | Stat_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const { return GetBinContent(binx); }
|
---|
192 | Stat_t GetBinError(Int_t bin) const;
|
---|
193 | Stat_t GetBinError(Int_t binx, Int_t biny) const { return GetBinError(binx); }
|
---|
194 | Stat_t GetBinError(Int_t binx, Int_t biny, Int_t binz) const { return GetBinError(binx); }
|
---|
195 |
|
---|
196 | Double_t GetMinimum(Bool_t ball) const { return GetMinimumSectors(TArrayI(), TArrayI(), ball); }
|
---|
197 | Double_t GetMaximum(Bool_t ball) const { return GetMaximumSectors(TArrayI(), TArrayI(), ball); }
|
---|
198 |
|
---|
199 | Double_t GetMinimum(Double_t gt) const { return GetMinimumSectors(TArrayI(), TArrayI(), kFALSE); } // FIXME: To be done: Minimum greater than
|
---|
200 | Double_t GetMaximum(Double_t lt) const { return GetMaximumSectors(TArrayI(), TArrayI(), kFALSE); } // FIXME: To be done: Maximum lower than
|
---|
201 |
|
---|
202 | Double_t GetMinimum() const { return GetMinimum(0.0); } // FIXME: To be done: Minimum greater than
|
---|
203 | Double_t GetMaximum() const { return GetMaximum(0.0); } // FIXME: To be done: Maximum lower than
|
---|
204 |
|
---|
205 | Double_t GetMinimumSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
206 | {
|
---|
207 | return GetMinimumSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
208 | }
|
---|
209 | Double_t GetMaximumSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
210 | {
|
---|
211 | return GetMaximumSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
212 | }
|
---|
213 | Double_t GetMinimumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball=kFALSE) const;
|
---|
214 | Double_t GetMaximumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball=kFALSE) const;
|
---|
215 |
|
---|
216 | Int_t GetNumBinsAboveThreshold(Double_t t=0) const;
|
---|
217 | Int_t GetNumBinsBelowThreshold(Double_t t=0) const;
|
---|
218 |
|
---|
219 | void SetLevels(const TArrayF &arr);
|
---|
220 |
|
---|
221 | void FillRandom(const char *fname, Int_t ntimes=5000) { TH1::FillRandom(fname, ntimes); }
|
---|
222 | void FillRandom(TH1 *h, Int_t ntimes=5000) { TH1::FillRandom(h, ntimes); }
|
---|
223 | void FillRandom();
|
---|
224 |
|
---|
225 | void PrintInfo() const { Print(""); } // *MENU*
|
---|
226 | void Reset(Option_t *);
|
---|
227 | void Reset() { Reset(""); } // *MENU*
|
---|
228 | TH1 *DrawCopy() const/* { gPad=NULL; return TH1D::DrawCopy(); }*/; // *MENU*
|
---|
229 | TH1 *DrawCopy(Option_t *o) const { return TH1D::DrawCopy(o); }
|
---|
230 |
|
---|
231 | void Print(Option_t *) const;
|
---|
232 | void Paint(Option_t *option="");
|
---|
233 | void Draw(Option_t *option="");
|
---|
234 | TObject *DrawClone(Option_t *option="") const;
|
---|
235 | void DrawProjection (Int_t fit=0) const;
|
---|
236 | void DrawRadialProfile() const;
|
---|
237 | void DrawAzimuthProfile() const;
|
---|
238 |
|
---|
239 | void SavePrimitive(ostream &out, Option_t *);
|
---|
240 | void SavePrimitive(ofstream &out, Option_t *);
|
---|
241 | Int_t DistancetoPrimitive(Int_t px, Int_t py);
|
---|
242 | char *GetObjectInfo(Int_t px, Int_t py) const;
|
---|
243 | void ExecuteEvent(Int_t event, Int_t px, Int_t py);
|
---|
244 | void SetDrawOption(Option_t *option); //*MENU*
|
---|
245 |
|
---|
246 | void SetPalette(Int_t ncolors, Int_t *colors);
|
---|
247 |
|
---|
248 | void SetPrettyPalette(); // *MENU*
|
---|
249 | void SetDeepBlueSeaPalette(); // *MENU*
|
---|
250 | void SetInvDeepBlueSeaPalette(); // *MENU*
|
---|
251 |
|
---|
252 | void SetFreezed(Bool_t f=kTRUE) { f ? SetBit(kFreezed) : ResetBit(kFreezed); } // *TOGGLE* *GETTER=IsFreezed
|
---|
253 | Bool_t IsFreezed() const { return TestBit(kFreezed); }
|
---|
254 | //void SetOptStat(Int_t os=-1) { fOptStat = os; } // *MENU*
|
---|
255 |
|
---|
256 | void SetErrorSpread(Bool_t f=kTRUE) { f ? ResetBit(kErrorMean) : SetBit(kErrorMean); } // *TOGGLE* *GETTER=IsErrorSpread
|
---|
257 | Bool_t IsErrorSpread() const { return !TestBit(kErrorMean); }
|
---|
258 |
|
---|
259 | void SetAbberation(Float_t f=0.0713) { fAbberation=f; } // *MENU*
|
---|
260 |
|
---|
261 | void SetAutoScale() { fMinimum = fMaximum = -1111; } // *MENU*
|
---|
262 | void SetMinMax(Double_t min=-1111, Double_t max=-1111) { SetMinimum(min); SetMaximum(max); } // *MENU*
|
---|
263 |
|
---|
264 | void AddNotify(TObject *event);
|
---|
265 |
|
---|
266 | Stat_t GetMean(Bool_t ball) const { return GetMeanSectors(TArrayI(), TArrayI(), ball); }
|
---|
267 | Stat_t GetMedian(Bool_t ball) const { return GetMedianSectors(TArrayI(), TArrayI(), ball); }
|
---|
268 | Stat_t GetRMS(Bool_t ball) const { return GetRmsSectors(TArrayI(), TArrayI(), ball); }
|
---|
269 | Stat_t GetDev(Bool_t ball) const { return GetDevSectors(TArrayI(), TArrayI(), ball); }
|
---|
270 |
|
---|
271 | Stat_t GetMean(Int_t=0) const { return GetMeanSectors(TArrayI(), TArrayI(), kFALSE); }
|
---|
272 | Stat_t GetMedian(Int_t=0) const { return GetMedianSectors(TArrayI(), TArrayI(), kFALSE); }
|
---|
273 | Stat_t GetRMS(Int_t=0) const { return GetRmsSectors(TArrayI(), TArrayI(), kFALSE); }
|
---|
274 | Stat_t GetDev(Int_t=0) const { return GetRmsSectors(TArrayI(), TArrayI(), kFALSE); }
|
---|
275 |
|
---|
276 | Stat_t GetMeanSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
277 | {
|
---|
278 | return GetMeanSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
279 | }
|
---|
280 | Stat_t GetMedianSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
281 | {
|
---|
282 | return GetMedianSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
283 | }
|
---|
284 | Stat_t GetRmsSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
285 | {
|
---|
286 | return GetRmsSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
287 | }
|
---|
288 | Stat_t GetDevSector(Int_t sector, Int_t aidx, Bool_t ball=kFALSE) const
|
---|
289 | {
|
---|
290 | return GetDevSectors(TArrayI(1, §or), TArrayI(1, &aidx), ball);
|
---|
291 | }
|
---|
292 |
|
---|
293 | Stat_t GetMeanSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all=kFALSE) const;
|
---|
294 | Stat_t GetMedianSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all=kFALSE) const;
|
---|
295 | Stat_t GetRmsSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all=kFALSE) const;
|
---|
296 | Stat_t GetDevSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all=kFALSE) const;
|
---|
297 |
|
---|
298 | UInt_t GetNumPixels() const;
|
---|
299 |
|
---|
300 | TH1D *Projection(const char *name="_proj", const Int_t nbins=50) const
|
---|
301 | {
|
---|
302 | return ProjectionS(TArrayI(), TArrayI(), name,nbins);
|
---|
303 | }
|
---|
304 | TH1D *ProjectionS(Int_t sector, Int_t aidx, const char *name="_proj", const Int_t nbins=50) const
|
---|
305 | {
|
---|
306 | return ProjectionS(TArrayI(1, §or), TArrayI(1, &aidx), name, nbins);
|
---|
307 | }
|
---|
308 | TH1D *ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name="_proj", const Int_t nbins=50) const;
|
---|
309 |
|
---|
310 | TProfile *RadialProfile(const char *name="_rad", Int_t nbins=25) const { return RadialProfileS(TArrayI(), TArrayI(), name, nbins);}
|
---|
311 | TProfile *RadialProfileS(Int_t sector, Int_t aidx, const char *name="_rad", const Int_t nbins=25) const
|
---|
312 | {
|
---|
313 | return RadialProfileS(TArrayI(1, §or), TArrayI(1, &aidx), name, nbins);
|
---|
314 | }
|
---|
315 | TProfile *RadialProfileS(const TArrayI §or, const TArrayI &aidx, const char *name="_rad", const Int_t nbins=25) const;
|
---|
316 |
|
---|
317 | TProfile *AzimuthProfile(const char *name="_az", Int_t nbins=25) const { return AzimuthProfileA(TArrayI(), name, nbins); }
|
---|
318 | TProfile *AzimuthProfile(Int_t aidx, const char *name="_az", const Int_t nbins=25) const
|
---|
319 | {
|
---|
320 | return AzimuthProfileA(TArrayI(1, &aidx), name, nbins);
|
---|
321 | }
|
---|
322 | TProfile *AzimuthProfileA(const TArrayI &aidx, const char *name="_az", const Int_t nbins=25) const;
|
---|
323 |
|
---|
324 | void CamDraw(TCanvas &c, const Int_t x, const Int_t y,
|
---|
325 | const Int_t fit, const Int_t rad=0, const Int_t azi=0,
|
---|
326 | TObject *notify=NULL);
|
---|
327 |
|
---|
328 | const MGeomCam &GetGeomCam() const { return *fGeomCam; }
|
---|
329 |
|
---|
330 | ClassDef(MHCamera, 1) // Displays the magic camera
|
---|
331 | };
|
---|
332 |
|
---|
333 | #endif
|
---|
334 |
|
---|
335 | /* ------------ OK ---------------
|
---|
336 | virtual void Browse(TBrowser *b);
|
---|
337 | virtual void FillRandom(const char *fname, Int_t ntimes=5000);
|
---|
338 | virtual void FillRandom(TH1 *h, Int_t ntimes=5000);
|
---|
339 |
|
---|
340 | virtual Int_t GetQuantiles(Int_t nprobSum, Double_t *q, const Double_t *probSum=0);
|
---|
341 | virtual Axis_t GetRandom();
|
---|
342 | virtual void GetStats(Stat_t *stats) const;
|
---|
343 | virtual Stat_t GetSumOfWeights() const;
|
---|
344 | virtual Int_t GetSumw2N() const {return fSumw2.fN;}
|
---|
345 | virtual Stat_t GetRMS(Int_t axis=1) const;
|
---|
346 |
|
---|
347 | virtual Int_t GetNbinsX() const {return fXaxis.GetNbins();}
|
---|
348 | virtual Int_t GetNbinsY() const {return fYaxis.GetNbins();}
|
---|
349 | virtual Int_t GetNbinsZ() const {return fZaxis.GetNbins();}
|
---|
350 |
|
---|
351 | // ------------- to check -------------------
|
---|
352 |
|
---|
353 | virtual Double_t ComputeIntegral();
|
---|
354 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
|
---|
355 | virtual void Draw(Option_t *option="");
|
---|
356 | virtual TH1 *DrawCopy(Option_t *option="") const;
|
---|
357 | virtual TH1 *DrawNormalized(Option_t *option="", Double_t norm=1) const;
|
---|
358 | virtual Int_t BufferEmpty(Bool_t deleteBuffer=kFALSE);
|
---|
359 | virtual void Eval(TF1 *f1, Option_t *option="");
|
---|
360 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
|
---|
361 | virtual void FillN(Int_t ntimes, const Axis_t *x, const Double_t *w, Int_t stride=1);
|
---|
362 | virtual void FillN(Int_t, const Axis_t *, const Axis_t *, const Double_t *, Int_t) {;}
|
---|
363 | virtual Int_t FindBin(Axis_t x, Axis_t y=0, Axis_t z=0);
|
---|
364 | virtual TObject *FindObject(const char *name) const;
|
---|
365 | virtual TObject *FindObject(const TObject *obj) const;
|
---|
366 | virtual Int_t Fit(const char *formula ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0); // *MENU*
|
---|
367 | virtual Int_t Fit(TF1 *f1 ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0);
|
---|
368 | virtual void FitPanel(); // *MENU*
|
---|
369 | TH1 *GetAsymmetry(TH1* h2, Double_t c2=1, Double_t dc2=0);
|
---|
370 | Int_t GetBufferLength() const {return (Int_t)fBuffer[0];}
|
---|
371 | Int_t GetBufferSize () const {return fBufferSize;}
|
---|
372 | const Double_t *GetBuffer() const {return fBuffer;}
|
---|
373 | static Int_t GetDefaultBufferSize();
|
---|
374 | virtual Double_t *GetIntegral() {return fIntegral;}
|
---|
375 |
|
---|
376 | TList *GetListOfFunctions() const { return fFunctions; }
|
---|
377 |
|
---|
378 | virtual Int_t GetNdivisions(Option_t *axis="X") const;
|
---|
379 | virtual Color_t GetAxisColor(Option_t *axis="X") const;
|
---|
380 | virtual Color_t GetLabelColor(Option_t *axis="X") const;
|
---|
381 | virtual Style_t GetLabelFont(Option_t *axis="X") const;
|
---|
382 | virtual Float_t GetLabelOffset(Option_t *axis="X") const;
|
---|
383 | virtual Float_t GetLabelSize(Option_t *axis="X") const;
|
---|
384 | virtual Float_t GetTitleOffset(Option_t *axis="X") const;
|
---|
385 | virtual Float_t GetTitleSize(Option_t *axis="X") const;
|
---|
386 | virtual Float_t GetTickLength(Option_t *axis="X") const;
|
---|
387 | virtual Float_t GetBarOffset() const {return Float_t(0.001*Float_t(fBarOffset));}
|
---|
388 | virtual Float_t GetBarWidth() const {return Float_t(0.001*Float_t(fBarWidth));}
|
---|
389 | virtual Int_t GetContour(Double_t *levels=0);
|
---|
390 | virtual Double_t GetContourLevel(Int_t level) const;
|
---|
391 | virtual Double_t GetContourLevelPad(Int_t level) const;
|
---|
392 |
|
---|
393 | virtual void GetCenter(Axis_t *center) const {fXaxis.GetCenter(center);}
|
---|
394 | TDirectory *GetDirectory() const {return fDirectory;}
|
---|
395 | virtual Stat_t GetEntries() const;
|
---|
396 | virtual TF1 *GetFunction(const char *name) const;
|
---|
397 | virtual Int_t GetDimension() const { return fDimension; }
|
---|
398 | virtual void GetLowEdge(Axis_t *edge) const {fXaxis.GetLowEdge(edge);}
|
---|
399 | virtual Double_t GetMaximum() const;
|
---|
400 | virtual Int_t GetMaximumBin() const;
|
---|
401 | virtual Int_t GetMaximumBin(Int_t &locmax, Int_t &locmay, Int_t &locmaz) const;
|
---|
402 | virtual Double_t GetMaximumStored() const {return fMaximum;}
|
---|
403 | virtual Double_t GetMinimum() const;
|
---|
404 | virtual Int_t GetMinimumBin() const;
|
---|
405 | virtual Int_t GetMinimumBin(Int_t &locmix, Int_t &locmiy, Int_t &locmiz) const;
|
---|
406 | virtual Double_t GetMinimumStored() const {return fMinimum;}
|
---|
407 | virtual Stat_t GetMean(Int_t axis=1) const;
|
---|
408 | virtual Double_t GetNormFactor() const {return fNormFactor;}
|
---|
409 | virtual char *GetObjectInfo(Int_t px, Int_t py) const;
|
---|
410 | Option_t *GetOption() const {return fOption.Data();}
|
---|
411 |
|
---|
412 | TVirtualHistPainter *GetPainter();
|
---|
413 |
|
---|
414 | TAxis *GetXaxis() const;
|
---|
415 | TAxis *GetYaxis() const;
|
---|
416 | TAxis *GetZaxis() const;
|
---|
417 | virtual Stat_t Integral(Option_t *option="") const;
|
---|
418 | virtual Stat_t Integral(Int_t binx1, Int_t binx2, Option_t *option="") const;
|
---|
419 | virtual Stat_t Integral(Int_t, Int_t, Int_t, Int_t, Option_t * ="") const {return 0;}
|
---|
420 | virtual Stat_t Integral(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Option_t * ="" ) const {return 0;}
|
---|
421 | virtual Double_t KolmogorovTest(TH1 *h2, Option_t *option="") const;
|
---|
422 | virtual void LabelsDeflate(Option_t *axis="X");
|
---|
423 | virtual void LabelsInflate(Option_t *axis="X");
|
---|
424 | virtual void LabelsOption(Option_t *option="h", Option_t *axis="X");
|
---|
425 | virtual Int_t Merge(TCollection *list);
|
---|
426 | virtual void Multiply(TF1 *h1, Double_t c1=1);
|
---|
427 | virtual void Multiply(const TH1 *h1);
|
---|
428 | virtual void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option=""); // *MENU*
|
---|
429 | virtual void Paint(Option_t *option="");
|
---|
430 | virtual void Print(Option_t *option="") const;
|
---|
431 | virtual void PutStats(Stat_t *stats);
|
---|
432 | virtual TH1 *Rebin(Int_t ngroup=2, const char*newname=""); // *MENU*
|
---|
433 | virtual void RebinAxis(Axis_t x, Option_t *axis="X");
|
---|
434 | virtual void Rebuild(Option_t *option="");
|
---|
435 | virtual void RecursiveRemove(TObject *obj);
|
---|
436 | virtual void Reset(Option_t *option="");
|
---|
437 | virtual void SavePrimitive(ofstream &out, Option_t *option);
|
---|
438 | virtual void Scale(Double_t c1=1);
|
---|
439 | virtual void SetAxisColor(Color_t color=1, Option_t *axis="X");
|
---|
440 | virtual void SetAxisRange(Axis_t xmin, Axis_t xmax, Option_t *axis="X");
|
---|
441 | virtual void SetBarOffset(Float_t offset=0.25) {fBarOffset = Short_t(1000*offset);}
|
---|
442 | virtual void SetBarWidth(Float_t width=0.5) {fBarWidth = Short_t(1000*width);}
|
---|
443 | virtual void SetBinContent(Int_t bin, Stat_t content);
|
---|
444 | virtual void SetBinContent(Int_t binx, Int_t biny, Stat_t content);
|
---|
445 | virtual void SetBinContent(Int_t binx, Int_t biny, Int_t binz, Stat_t content);
|
---|
446 | virtual void SetBinError(Int_t bin, Stat_t error);
|
---|
447 | virtual void SetBinError(Int_t binx, Int_t biny, Stat_t error);
|
---|
448 | virtual void SetBinError(Int_t binx, Int_t biny, Int_t binz, Stat_t error);
|
---|
449 | virtual void SetBins(Int_t nx, Axis_t xmin, Axis_t xmax);
|
---|
450 | virtual void SetBins(Int_t nx, Axis_t xmin, Axis_t xmax, Int_t ny, Axis_t ymin, Axis_t ymax);
|
---|
451 | virtual void SetBins(Int_t nx, Axis_t xmin, Axis_t xmax, Int_t ny, Axis_t ymin, Axis_t ymax,
|
---|
452 | Int_t nz, Axis_t zmin, Axis_t zmax);
|
---|
453 | virtual void SetBinsLength(Int_t = -1) { } //refefined in derived classes
|
---|
454 | virtual void SetBuffer(Int_t buffersize, Option_t *option="");
|
---|
455 | virtual void SetCellContent(Int_t binx, Int_t biny, Stat_t content);
|
---|
456 | virtual void SetCellError(Int_t binx, Int_t biny, Stat_t content);
|
---|
457 | virtual void SetContent(const Stat_t *content);
|
---|
458 | virtual void SetContour(Int_t nlevels, const Double_t *levels=0);
|
---|
459 | virtual void SetContourLevel(Int_t level, Double_t value);
|
---|
460 | static void SetDefaultBufferSize(Int_t buffersize=1000);
|
---|
461 | virtual void SetDirectory(TDirectory *dir);
|
---|
462 | virtual void SetEntries(Stat_t n) {fEntries = n;};
|
---|
463 | virtual void SetError(const Stat_t *error);
|
---|
464 | virtual void SetLabelColor(Color_t color=1, Option_t *axis="X");
|
---|
465 | virtual void SetLabelFont(Style_t font=62, Option_t *axis="X");
|
---|
466 | virtual void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X");
|
---|
467 | virtual void SetLabelSize(Float_t size=0.02, Option_t *axis="X");
|
---|
468 |
|
---|
469 | virtual void SetMaximum(Double_t maximum=-1111); // *MENU*
|
---|
470 | virtual void SetMinimum(Double_t minimum=-1111); // *MENU*
|
---|
471 | virtual void SetName(const char *name); // *MENU*
|
---|
472 | virtual void SetNameTitle(const char *name, const char *title);
|
---|
473 | virtual void SetNdivisions(Int_t n=510, Option_t *axis="X");
|
---|
474 | virtual void SetNormFactor(Double_t factor=1) {fNormFactor = factor;}
|
---|
475 | virtual void SetStats(Bool_t stats=kTRUE);
|
---|
476 | virtual void SetOption(Option_t *option=" ") {fOption = option;}
|
---|
477 | virtual void SetTickLength(Float_t length=0.02, Option_t *axis="X");
|
---|
478 | virtual void SetTitleOffset(Float_t offset=1, Option_t *axis="X");
|
---|
479 | virtual void SetTitleSize(Float_t size=0.02, Option_t *axis="X");
|
---|
480 | virtual void SetTitle(const char *title);
|
---|
481 | virtual void SetXTitle(const char *title) {fXaxis.SetTitle(title);}
|
---|
482 | virtual void SetYTitle(const char *title) {fYaxis.SetTitle(title);}
|
---|
483 | virtual void SetZTitle(const char *title) {fZaxis.SetTitle(title);}
|
---|
484 | virtual void Smooth(Int_t ntimes=1); // *MENU*
|
---|
485 | static void SmoothArray(Int_t NN, Double_t *XX, Int_t ntimes=1);
|
---|
486 | static Double_t SmoothMedian(Int_t n, Double_t *a);
|
---|
487 | virtual void Sumw2();
|
---|
488 | void UseCurrentStyle();
|
---|
489 |
|
---|
490 | ClassDef(TH1,4) //1-Dim histogram base class
|
---|
491 | };
|
---|
492 |
|
---|
493 | */
|
---|