Index: /trunk/MagicSoft/Mars/mtemp/mpisa/macros/AnalCurrents.C
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/mpisa/macros/AnalCurrents.C	(revision 4437)
+++ /trunk/MagicSoft/Mars/mtemp/mpisa/macros/AnalCurrents.C	(revision 4438)
@@ -130,9 +130,11 @@
     // of last count events
     if(count!=0)
+    {
 	for(Int_t i=0; i<gsNpix; i++)
 	    dcevt.AddPixel(i,val[i]/(Double_t)count,0);
 
-    cout << "Calling test_findstar function" << endl;
-    test_findstar(&dcevt);
+	cout << "Calling test_findstar function" << endl;
+	test_findstar(&dcevt);
+    }
 
     cout << "Number of averaged events stored into container = " << NumAverEvt << endl;
