Ignore:
Timestamp:
08/01/03 11:33:07 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2274 r2297  
    222222}
    223223
     224// ------------------------------------------------------------------------
     225//
     226// Use x and y in millimeters
     227//
     228Int_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
    224242Stat_t MHCamera::GetMean(Int_t axis) const
    225243{
     
    839857}
    840858
    841 TPaveStats *MHCamera::GetStats()
     859TPaveStats *MHCamera::GetStatisticBox()
    842860{
    843861    TObject *obj = 0;
     
    857875void MHCamera::UpdateLegend(Float_t min, Float_t max, Bool_t islog)
    858876{
    859     TPaveStats *stats = GetStats();
     877    TPaveStats *stats = GetStatisticBox();
    860878
    861879    const Float_t hndc   = 0.92 - (stats ? stats->GetY1NDC() : 1);
     
    9921010// ------------------------------------------------------------------------
    9931011//
    994 // Function introduced  (31-01-03)  WILL BE REMOVED IN THE FUTURE! DON'T
    995 // USE IT!
    9961012//
    9971013Int_t MHCamera::GetPixelIndex(Int_t px, Int_t py) const
Note: See TracChangeset for help on using the changeset viewer.