Changeset 9851 for trunk/Mars/mhist


Ignore:
Timestamp:
08/12/10 09:43:02 (14 years ago)
Author:
tbretz
Message:
Changed MH::SetBinning and similar functions to take references instead of pointers as arguments. For convenience wrappers for the old style functions are provided.
Location:
trunk/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamEventRot.cc

    r9369 r9851  
    128128        const Float_t r = fGeom->GetMaxRadius()*fGeom->GetConvMm2Deg();
    129129
    130         MBinning b;
    131         b.SetEdges(41, -r, r);
    132         SetBinning(&fHist, &b, &b);
     130        const MBinning b(41, -r, r);
     131        SetBinning(fHist, b, b);
    133132    }
    134133    else
    135         SetBinning(&fHist, bins, bins);
     134        SetBinning(fHist, *bins, *bins);
    136135
    137136    fPointPos = (MPointingPos*)plist->FindObject(AddSerialNumber("MPointingPos"));
  • trunk/Mars/mhist/MHStarMap.cc

    r9153 r9851  
    153153            r *= fMm2Deg;
    154154
    155         MBinning b;
    156         b.SetEdges(100, -r, r);
    157         SetBinning(fStarMap, &b, &b);
     155        const MBinning b(100, -r, r);
     156        SetBinning(*fStarMap, b, b);
    158157    }
    159158    else
    160         SetBinning(fStarMap, bins, bins);
     159        SetBinning(*fStarMap, *bins, *bins);
    161160
    162161    if (!geom)
Note: See TracChangeset for help on using the changeset viewer.