Index: trunk/MagicSoft/Mars/mtemp/mifae/Changelog
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/Changelog	(revision 4293)
+++ trunk/MagicSoft/Mars/mtemp/mifae/Changelog	(revision 4294)
@@ -18,4 +18,22 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+  2004/06/15  Javier Lopez
+    * library/MSrcPosFromStars.[h,cc]
+      - Task to compute the position of a source from
+        the positions of several stars.
+
+    * library/MHPSFFromStars.[h,cc]
+      - Histogram task that holds and fills the histograms of 
+        positioning and point spread function of an star.
+
+    * macros/distancebetweenstars.C
+      - Add macros that show in an histogram the distance between
+        the stars in a field of view. 
+
+    * macros/psffromstars.C
+      - Add task that show the point spread funtion and positon of
+        the most central star in the field of view. This information
+        is compute using the MFindStars tool.
 
  2004/06/11 Ester Aliu 
Index: trunk/MagicSoft/Mars/mtemp/mifae/library/IFAELinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/library/IFAELinkDef.h	(revision 4293)
+++ trunk/MagicSoft/Mars/mtemp/mifae/library/IFAELinkDef.h	(revision 4294)
@@ -18,4 +18,6 @@
 #pragma link C++ class MFHVNotNominal+;
 #pragma link C++ class MCalibrateDC+;
+#pragma link C++ class MHPSFFromStars+;
+#pragma link C++ class MSrcPosFromStars+;
 
 #endif
Index: trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc	(revision 4293)
+++ trunk/MagicSoft/Mars/mtemp/mifae/library/MCalibrateDC.cc	(revision 4294)
@@ -51,5 +51,5 @@
 using namespace std;
 
-MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) : fMinDCAllowed(0.5) //[ua]
+MCalibrateDC::MCalibrateDC(TString filename, const char *name, const char *title) 
 {
   fName  = name  ? name  : "MCalibrateDC";
Index: trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile	(revision 4293)
+++ trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile	(revision 4294)
@@ -44,5 +44,6 @@
 	   -I../../../mcamera \
 	   -I../../../mastro \
-	   -I../../../mhist
+	   -I../../../mhist \
+	   -I../../
 
 
@@ -60,5 +61,7 @@
         MIslandClean.cc \
         MFHVNotNominal.cc \
-        MCalibrateDC.cc
+        MCalibrateDC.cc \
+        MHPSFFromStars.cc \
+        MSrcPosFromStars.cc
 
 ############################################################
Index: trunk/MagicSoft/Mars/mtemp/mifae/macros/findstars.C
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mifae/macros/findstars.C	(revision 4293)
+++ trunk/MagicSoft/Mars/mtemp/mifae/macros/findstars.C	(revision 4294)
@@ -47,5 +47,5 @@
 
 
-void findstars(const TString filename="dc_2004_03_19_00_36_50_20781_Mrk421.root", const TString directory="/nfs/magic/CaCodata/rootdata/Mrk421/Period015/2004_03_19/", const UInt_t numEvents = 0)
+void findstars(const TString filename="dc_2004_03_17_01_16_51_20440_Mrk421.root", const TString directory="/nfs/magic/CaCodata/rootdata/Mrk421/Period015/2004_03_17/", const UInt_t numEvents = 0)
 {
 
@@ -81,35 +81,31 @@
   MGeomApply geomapl;
   TString continuoslightfile = 
-    "/nfs/magic/CaCodata/rootdata/Miscellaneous/Period016/2004_04_16/dc_2004_04_16_04_46_18_22368_Off3c279-2CL100.root";
+    //    "/home/Javi/mnt_magic_data/CaCo/rootdata/Miscellaneous/Period016/2004_04_16/dc_2004_04_16_04_46_18_22368_Off3c279-2CL100.root";
+     "/nfs/magic/CaCodata/rootdata/Miscellaneous/Period016/2004_04_16/dc_2004_04_16_04_46_18_22368_Off3c279-2CL100.root";
+
+  Float_t mindc = 0.9; //[uA]
   MCalibrateDC dccal;
   dccal.SetFileName(continuoslightfile);
-  
+  dccal.SetMinDCAllowed(mindc);
 
-  const Int_t numblind = 12;
-  const Short_t x[numblind] = {  8,  27,
-                               507, 508, 509, 510, 511,
-                               543, 559, 560, 561, 567};
+  const Int_t numblind = 5;
+  const Short_t x[numblind] = { 47, 124, 470, 475, 571};
   const TArrayS blindpixels(numblind,(Short_t*)x);
   Float_t ringinterest = 100; //[mm]
-  Float_t tailcut = 3.5;
-  UInt_t integratedevents = 10;
+  Float_t tailcut = 2.5;
+  UInt_t integratedevents = 1;
 
   MFindStars findstars;
-  //  findstars.SetBlindPixels(blindpixels);
+  findstars.SetBlindPixels(blindpixels);
   findstars.SetRingInterest(ringinterest);
   findstars.SetDCTailCut(tailcut);
   findstars.SetNumIntegratedEvents(integratedevents);
-  findstars.SetMinuitPrintOutLevel(0);
+  findstars.SetMinuitPrintOutLevel(-1);
 
-  // prints
-  MPrint pdc("MCameraDC");
-  MPrint pstar("MStarLocalCam");
   
   tlist.AddToList(&geomapl);
   tlist.AddToList(&read);
   tlist.AddToList(&dccal);
-  //  tlist.AddToList(&pdc, "Currents");
   tlist.AddToList(&findstars, "Currents");
-  //  tlist.AddToList(&pstar, "Currents");
 
   //
