Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8023)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8024)
@@ -47,4 +47,7 @@
      - removed a memory leak by removing the functions creating the
        axes
+
+   * mcalib/MMcCalibrationCalc.cc, mmc/MMcConfigRunHeader.h:
+     - return and use a const-reference to the TArrayF's
 
 
Index: trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc	(revision 8023)
+++ trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc	(revision 8024)
@@ -224,6 +224,6 @@
       return kFALSE;
     }
-  TArrayF innerlightcoll = mcconfig->GetLightCollectionFactor();
-  TArrayF outerlightcoll = mcconfig->GetLightCollectionFactorOuter();
+  const TArrayF &innerlightcoll = mcconfig->GetLightCollectionFactor();
+  const TArrayF &outerlightcoll = mcconfig->GetLightCollectionFactorOuter();
 
   // In principle outer pixels seem to have a different average light 
Index: trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h
===================================================================
--- trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h	(revision 8023)
+++ trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.h	(revision 8024)
@@ -84,11 +84,10 @@
     void    SetMissPointingY(Float_t x) {fMissPointingY=x;}
 
-    TArrayF GetLightCollectionFactor() const {return fLightCollectionFactor; }
-    TArrayF GetLightCollectionFactorOuter() const 
-      {return fLightCollectionFactorOuter; }
+    const TArrayF &GetLightCollectionFactor() const {return fLightCollectionFactor; }
+    const TArrayF &GetLightCollectionFactorOuter() const {return fLightCollectionFactorOuter; }
 
     Float_t GetMirrorFraction() const { return fMirrorFraction; }
 
-    TArrayF GetIncidentTheta() const {return fIncidentTheta;}
+    const TArrayF &GetIncidentTheta() const {return fIncidentTheta;}
 
     void   AddMirror(Int_t id)
