Index: trunk/MagicSoft/Mars/macros/starfield.C
===================================================================
--- trunk/MagicSoft/Mars/macros/starfield.C	(revision 7727)
+++ trunk/MagicSoft/Mars/macros/starfield.C	(revision 7820)
@@ -41,32 +41,31 @@
 ///////////////////////////////////////////////////////////////////////////
 
-void ReadSetup(TString fname, MAstroCamera &cam)
+void ReadSetup(MAstroCamera &cam)
 {
-    MMcConfigRunHeader *config=0;
-    MGeomCam           *geom=0;
+    /*
+     // Name of a MC file having MGeomCam and MMcConfigRunHeader
+     TString fname = "../Mars/Gamma_zbin7_90_7_53395to53399_w0.root";
 
-    TFile file(fname);
-    TTree *tree = (TTree*)file.Get("RunHeaders");
-    tree->SetBranchAddress("MMcConfigRunHeader", &config);
-    if (tree->GetBranch("MGeomCam"))
-        tree->SetBranchAddress("MGeomCam", &geom);
-    tree->GetEntry(0);
+     MMcConfigRunHeader *config=0;
+     MGeomCam           *geom=0;
 
-    cam.SetMirrors(*config->GetMirrors());
-    cam.SetGeom(*geom);
+     TFile file(fname);
+     TTree *tree = (TTree*)file.Get("RunHeaders");
+     tree->SetBranchAddress("MMcConfigRunHeader", &config);
+     if (tree->GetBranch("MGeomCam"))
+         tree->SetBranchAddress("MGeomCam", &geom);
+     tree->GetEntry(0);
 
-    /* Alternative:
+     cam.SetMirrors(*config->GetMirrors());
+     cam.SetGeom(*geom);
+     */
 
-     MGeomCamMagic geom;
-     cam.SetGeom(geom);
-     cam.SetMirrors("magic.def");
-     */
+    MGeomCamMagic geom;
+    cam.SetGeom(geom);
+    cam.SetMirrors("resources/mirrors.def");
 }
 
 void starfield()
 {
-    // Name of a MC file having MGeomCam and MMcConfigRunHeader
-    TString fname = "../Mars/Gamma_zbin7_90_7_53395to53399_w0.root";
-
     // Time for which to get the picture
     MTime time;
@@ -87,5 +86,5 @@
     //MAstroCatalog stars;     // Use this top display a catalog
     MAstroCamera stars;        // Use this top display a catalog on top of a camera
-    ReadSetup(fname, stars);   // Use this top display a catalog on top of a camera
+    ReadSetup(stars);   // Use this top display a catalog on top of a camera
     stars.SetLimMag(6);
     stars.SetRadiusFOV(3);
