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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mimage/MHHillas.cc

    r9350 r9851  
    157157
    158158
    159     ApplyBinning(*plist, "Width",  fWidth);
    160     ApplyBinning(*plist, "Length", fLength);
    161     ApplyBinning(*plist, "Dist",   fDistC);
    162     ApplyBinning(*plist, "Delta",  fDelta);
    163     ApplyBinning(*plist, "Size",   fSize);
     159    ApplyBinning(*plist, "Width",  *fWidth);
     160    ApplyBinning(*plist, "Length", *fLength);
     161    ApplyBinning(*plist, "Dist",   *fDistC);
     162    ApplyBinning(*plist, "Delta",  *fDelta);
     163    ApplyBinning(*plist, "Size",   *fSize);
    164164
    165165    const MBinning *bins = (MBinning*)plist->FindObject("BinningCamera");
     
    168168        const Float_t r = fGeomCam->GetMaxRadius()*fGeomCam->GetConvMm2Deg();
    169169
    170         MBinning b;
    171         b.SetEdges(61, -r, r);
    172         SetBinning(fCenter, &b, &b);
     170        const MBinning b(61, -r, r);
     171        SetBinning(*fCenter, b, b);
    173172    }
    174173    else
    175         SetBinning(fCenter, bins, bins);
     174        SetBinning(*fCenter, *bins, *bins);
    176175
    177176
Note: See TracChangeset for help on using the changeset viewer.