Index: trunk/MagicSoft/Mars/mhflux/MHThetaSqN.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHThetaSqN.cc	(revision 9337)
+++ trunk/MagicSoft/Mars/mhflux/MHThetaSqN.cc	(revision 9341)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MHThetaSqN.cc,v 1.10 2008-11-11 11:42:14 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MHThetaSqN.cc,v 1.11 2009-02-15 15:43:30 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -167,11 +167,10 @@
     }
 
-    MGeomCam *geom = (MGeomCam*)pl->FindObject("MGeomCam");
-    if (!geom)
+    fGeom = (MGeomCam*)pl->FindObject("MGeomCam");
+    if (!fGeom)
     {
         *fLog << err << "MGeomCam not found... abort." << endl;
         return kFALSE;
     }
-    fMm2Deg = geom->GetConvMm2Deg();
 
     if (fFit.GetScaleMode()==MAlphaFitter::kNone)
@@ -217,4 +216,6 @@
 Int_t MHThetaSqN::Fill(const MParContainer *par, const Stat_t weight)
 {
+    const Double_t fMm2Deg = fGeom->GetConvMm2Deg();
+
     const TVector2 norm(GetVec(fHillas->GetNormAxis(), 6));
     const TVector2 mean(GetVec(fHillas->GetMean(),     8));
Index: trunk/MagicSoft/Mars/mhflux/MHThetaSqN.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHThetaSqN.h	(revision 9337)
+++ trunk/MagicSoft/Mars/mhflux/MHThetaSqN.h	(revision 9341)
@@ -8,4 +8,5 @@
 class TVector2;
 
+class MGeomCam;
 class MTaskList;
 class MSrcPosCam;
@@ -14,8 +15,8 @@
 {
 private:
+    MGeomCam    *fGeom;      //! conversion mm to deg
     MParameterD *fDisp;      //!
     MSrcPosCam  *fSrcPosCam; //!
 
-    Double_t fMm2Deg;        //!
     Double_t fThetaSqCut;    //!
     Double_t fSignificanceCutLevel;
