Index: trunk/MagicSoft/Mars/macros/readCalibration.C
===================================================================
--- trunk/MagicSoft/Mars/macros/readCalibration.C	(revision 4236)
+++ trunk/MagicSoft/Mars/macros/readCalibration.C	(revision 4237)
@@ -16,5 +16,5 @@
 !
 !
-!   Author(s): Markus Gaug, 11/2003 <mailto:markus@ifae.es>
+!   Author(s): Markus Gaug, 05/2004 <mailto:markus@ifae.es>
 !
 !   Copyright: MAGIC Software Development, 2000-2004
@@ -51,4 +51,8 @@
 static const Bool_t debug = kFALSE;
 //
+// Tell if you want to use the display:
+//
+static Bool_t useDisplay = kTRUE;
+//
 void readCalibration(const Int_t prun=pedrun, const Int_t crun=calrun)
 {
@@ -76,5 +80,10 @@
     }
 
-  MStatusDisplay *display = new MStatusDisplay;
+  MStatusDisplay = NULL;
+  
+  if (useDisplay)
+    display = new MStatusDisplay;
+
+
   MPedestalCam             pedcam;
   MCalibrationChargeCam    chargecam;  
@@ -94,7 +103,10 @@
     }
   
-  if (display->GetCanvas("Pedestals"))
-    display->Read();
-
+  if (useDisplay)
+    {
+      if (display->GetCanvas("Pedestals"))
+        display->Read();
+    }
+  
   cout << "Reading from file: " << calname << endl;
 
@@ -129,4 +141,5 @@
       }
 
+  if (useDisplay)
     display->Read();
     
@@ -145,11 +158,6 @@
     }
   
-  display->Read();
-
-  MCalibrationChargePix &pix = chargecam[100];
-  cout << pix.GetPheFFactorMethod() << endl;
-
-  MCalibrationChargePix &innpix = chargecam.GetAverageArea(0);
-  cout << innpix.GetPheFFactorMethod() << endl;
+  if (useDisplay)
+    display->Read();
 
   //
