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