Changeset 2297 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 08/01/03 11:33:07 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2274 r2297 222 222 } 223 223 224 // ------------------------------------------------------------------------ 225 // 226 // Use x and y in millimeters 227 // 228 Int_t MHCamera::Fill(Axis_t x, Axis_t y, Stat_t w) 229 { 230 for (Int_t idx=0; idx<fNcells-2; idx++) 231 { 232 MHexagon hex((*fGeomCam)[idx]); 233 if (hex.DistanceToPrimitive(x, y)>0) 234 continue; 235 236 SetUsed(idx); 237 return Fill(idx, w); 238 } 239 return -1; 240 } 241 224 242 Stat_t MHCamera::GetMean(Int_t axis) const 225 243 { … … 839 857 } 840 858 841 TPaveStats *MHCamera::GetStat s()859 TPaveStats *MHCamera::GetStatisticBox() 842 860 { 843 861 TObject *obj = 0; … … 857 875 void MHCamera::UpdateLegend(Float_t min, Float_t max, Bool_t islog) 858 876 { 859 TPaveStats *stats = GetStat s();877 TPaveStats *stats = GetStatisticBox(); 860 878 861 879 const Float_t hndc = 0.92 - (stats ? stats->GetY1NDC() : 1); … … 992 1010 // ------------------------------------------------------------------------ 993 1011 // 994 // Function introduced (31-01-03) WILL BE REMOVED IN THE FUTURE! DON'T995 // USE IT!996 1012 // 997 1013 Int_t MHCamera::GetPixelIndex(Int_t px, Int_t py) const -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r2274 r2297 45 45 void SetRange(); 46 46 47 TPaveStats *GetStat s();47 TPaveStats *GetStatisticBox(); 48 48 49 49 Int_t GetPixelIndex(Int_t px, Int_t py) const; … … 74 74 75 75 Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); } 76 77 Int_t Fill(Axis_t x, Axis_t y, Stat_t w); 76 78 77 79 //void AddPixContent(Int_t idx) const { AddBinContent(idx+1); } … … 146 148 147 149 //void SetStatusBar(TGStatusBar *bar) { fStatusBar = bar; } 150 151 const MGeomCam &GetGeomCam() const { return *fGeomCam; } 148 152 149 153 ClassDef(MHCamera, 1) // Displays the magic camera -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r2173 r2297 32 32 // 33 33 ///////////////////////////////////////////////////////////////////////////// 34 35 34 #include "MHStarMap.h" 36 35 36 #include <TH2.h> 37 37 #include <TStyle.h> // gStyle 38 38 #include <TColor.h> // SetRGB -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r2043 r2297 6 6 #endif 7 7 8 #ifndef ROOT_TH2 9 #include <TH2.h> 10 #endif 11 8 class TH2F; 12 9 class MHillas; 13 10 … … 35 32 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 36 33 37 TH1 *GetHistByName(const TString name) { return fStarMap; }34 TH1 *GetHistByName(const TString name) { return (TH1*)fStarMap; } 38 35 39 36 TH2F *GetHist() { return fStarMap; }
Note:
See TracChangeset
for help on using the changeset viewer.