Changeset 8024 for trunk


Ignore:
Timestamp:
10/08/06 15:36:17 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8023 r8024  
    4747     - removed a memory leak by removing the functions creating the
    4848       axes
     49
     50   * mcalib/MMcCalibrationCalc.cc, mmc/MMcConfigRunHeader.h:
     51     - return and use a const-reference to the TArrayF's
    4952
    5053
  • trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc

    r7188 r8024  
    224224      return kFALSE;
    225225    }
    226   TArrayF innerlightcoll = mcconfig->GetLightCollectionFactor();
    227   TArrayF outerlightcoll = mcconfig->GetLightCollectionFactorOuter();
     226  const TArrayF &innerlightcoll = mcconfig->GetLightCollectionFactor();
     227  const TArrayF &outerlightcoll = mcconfig->GetLightCollectionFactorOuter();
    228228
    229229  // In principle outer pixels seem to have a different average light
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h

    r7880 r8024  
    8484    void    SetMissPointingY(Float_t x) {fMissPointingY=x;}
    8585
    86     TArrayF GetLightCollectionFactor() const {return fLightCollectionFactor; }
    87     TArrayF GetLightCollectionFactorOuter() const
    88       {return fLightCollectionFactorOuter; }
     86    const TArrayF &GetLightCollectionFactor() const {return fLightCollectionFactor; }
     87    const TArrayF &GetLightCollectionFactorOuter() const {return fLightCollectionFactorOuter; }
    8988
    9089    Float_t GetMirrorFraction() const { return fMirrorFraction; }
    9190
    92     TArrayF GetIncidentTheta() const {return fIncidentTheta;}
     91    const TArrayF &GetIncidentTheta() const {return fIncidentTheta;}
    9392
    9493    void   AddMirror(Int_t id)
Note: See TracChangeset for help on using the changeset viewer.