Index: /trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C
===================================================================
--- /trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C	(revision 4706)
+++ /trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C	(revision 4707)
@@ -25,7 +25,10 @@
   MGeomCamMagic geomcam;
   MCameraDC     dccam;
-  MStarLocalCam starcam;
-
-  //$$$$$$$$$$$$$$$$ ww
+  MStarCam      starcam;
+
+  //$$$$$$$$$$$$$$$$ ww
+  MStarCam      sourcecam;
+  sourcecam.SetName("MSourceCam");
+
   MHTelAxisFromStars htelaxis;
   plist.AddToList(&htelaxis);
@@ -36,4 +39,5 @@
   plist.AddToList(&dccam);
   plist.AddToList(&starcam);
+  plist.AddToList(&sourcecam);
 
   // Reads the trees of the root file and the analysed branches
@@ -82,11 +86,19 @@
   MSourceDirections sdirs;
   sdirs.SetGeometryFile(geometryfile);
-  const Double_t ra  = MAstro::Hms2Rad(11, 4, 26);
+
+  const Double_t ra  = MAstro::Hms2Rad(11,  4, 26);
   const Double_t dec = MAstro::Dms2Rad(38, 12, 36);
   sdirs.SetRaDec(ra,dec);
   sdirs.AddDirection(ra,dec,1,"Mkn 421");
-  const Double_t ra  = MAstro::Hms2Rad(11, 4, 31);
+
+  const Double_t ra  = MAstro::Hms2Rad(11,  0, 50);
+  const Double_t dec = MAstro::Dms2Rad(39, 12, 44);
+  sdirs.AddDirection(ra,dec,1,"My_UMa 49");
+
+  const Double_t ra  = MAstro::Hms2Rad(11,  4, 31);
   const Double_t dec = MAstro::Dms2Rad(38, 14, 29);
   sdirs.AddDirection(ra,dec,1,"My_UMa 51");
+
+
   sdirs.SetRadiusFOV(3);
   //$$$$$$$$$$$$$$$$ ww
@@ -109,5 +121,5 @@
 
   //$$$$$$$$$$$$$$$$ ww
-  //Int_t InputType = 0;
+  Int_t InputType = 1;
   //findstars.SetUseCorrelatedGauss(kFALSE);
 
@@ -115,8 +127,8 @@
   //telaxis.FixRotationAngleAt(-1.0);
   //telaxis.FixScaleFactorAt(-1.0);
-  //telaxis.SetInputType(InputType);
+  telaxis.SetInputType(InputType);
 
   MFillH fillhisto("MHTelAxisFromStars[MHTelAxisFromStars]","");
-  //htelaxis.SetInputType(InputType);
+  htelaxis.SetInputType(InputType);
   //$$$$$$$$$$$$$$$$ ww
 
@@ -167,5 +179,11 @@
   while (tlist.Process())
     {
+      gLog << "---------------------------------------------" << endl;
+      gLog << "Macro : MStarPos content = " << endl;
       starcam.Print("namepossizchierr");
+      gLog << "---------------------------------------------" << endl;
+      gLog << "Macro : MSourcePos content = " << endl;
+      sourcecam.Print("namepossizchierr");
+      gLog << "---------------------------------------------" << endl;
 
       numevents++;
@@ -182,9 +200,9 @@
 	// This is how to iterate over stars found:
 	// 	  TIter Next(starlist);
-	// 	  MStarLocalPos* star;
+	// 	  MStarPos* star;
 	// 	  UInt_t starnum = 0;
 	// 	  cout << filename << " ";
 	// 	  cout << "Iterating over list" << endl;
-	// 	  while ((star=(MStarLocalPos*)Next())) 
+	// 	  while ((star=(MStarPos*)Next())) 
 	// 	    {
 	// 	      cout << "star[" << starnum << "] ";
@@ -217,7 +235,13 @@
   tlist.PrintStatistics();
     
+  plist.Print();
+
   //$$$$$$$$$$$$$$$$ ww
   
   gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl;
+  TObject *srccam = plist.FindObject("MSourceCam");
+
+  gLog << "srccam = " << srccam << endl;
+
   TObject *obj = plist.FindObject("MHTelAxisFromStars");
   if (obj)
