Changeset 2297 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 08/01/03 11:33:07 (21 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.