Changeset 9851 for trunk/Mars/mbadpixels


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/mbadpixels/MHBadPixels.cc

    r9153 r9851  
    8080    fBinsPix->SetEdges(578, -0.5, 577.5);    // pixel id
    8181
    82     SetBinning(fBadId, fBinsTheta, fBinsPix);
    83     SetBinning(fBadN,  fBinsTheta, fBinsPix);
     82    SetBinning(*fBadId, *fBinsTheta, *fBinsPix);
     83    SetBinning(*fBadN,  *fBinsTheta, *fBinsPix);
    8484
    8585    //-----------------------------------------
     
    151151    const UInt_t npix1 = fPedPhot->GetSize()+1;
    152152    //*fLog << "MHBadPixels::SetupFill(); npix1 = " << npix1 << endl;
    153     MBinning binspix("BinningPixel");
    154     binspix.SetEdges(npix1, -0.5, npix1-0.5);
     153    const MBinning binspix(npix1, -0.5, npix1-0.5);
    155154
    156155    // Set binnings in histograms
    157     SetBinning(fBadId, binstheta, &binspix);
    158     SetBinning(fBadN,  binstheta, &binspix);
     156    SetBinning(*fBadId, *binstheta, binspix);
     157    SetBinning(*fBadN,  *binstheta, binspix);
    159158
    160159    *fLog << "MHBadPixels::SetupFill(); binnings were set" << endl;
Note: See TracChangeset for help on using the changeset viewer.