source: trunk/MagicSoft/Mars/mhist/MHCamera.h@ 6979

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