Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2934)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2935)
@@ -4,4 +4,7 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/01/28: Sebastian Raducci
+   * manalysis/MArrivalTime.[h,cc]:
+     - removed all the code relative to the cluster evaluation
 
  2004/01/27: Markus Gaug
Index: /trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc
===================================================================
--- /trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc	(revision 2934)
+++ /trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc	(revision 2935)
@@ -45,5 +45,4 @@
 using namespace std;
 
-#warning Commented out all usage of fPixelCehcked - THIS WILL CRASH YOUR PROGRAM!
 
 // --------------------------------------------------------------------------
@@ -79,113 +78,5 @@
     fData[i] = t;
 }
-
-// -------------------------------------------------------------------------
-//
-// Finds the clusters with similar Arrival Time
-//
-// PRELIMINARY!! For now the Arrival Time is not the one calculated with
-//               the splines, but it's the Max Slice Idx
-//
-// TEST!!        This method is used only for test. Do not use it until
-//               it becomes stable
-//
-void MArrivalTime::EvalClusters(const MRawEvtData &evt, const MGeomCam &geom)
-{
-    const Int_t n = geom.GetNumPixels();
-
-    fData2.Set(n);
-    fData3.Set(n);
-    fData4.Set(n);
-    fData5.Set(n);
-
-    fData2.Reset(-1);
-    fData3.Reset(-1);
-    fData4.Reset(-1);
-    fData5.Reset(-1);
-
-    MRawEvtPixelIter pixel((MRawEvtData*)&evt);
-
-// Array that says if a pixel has been already checked or not
-
-//    for (Int_t i = 0; i < n; i++)
-//        fPixelChecked[i] = kFALSE;
-
-// This fakeData array will be subsituted with the fData Array.
-    fakeData.Set(n);
-    fakeData.Reset();
-   
-    while ( pixel.Next() )
-    {
-        fakeData[pixel.GetPixelId()]=pixel.GetIdxMaxHiLoGainSample();
-    }
-// End of fakeData preparation
-    *fLog << warn << "fin qui bene" << endl;
-// Max dimension of cluster
-    Short_t dimCluster;
-
-    while ( pixel.Next() )
-    {
-        /*
-	if (!fPixelChecked[pixel.GetPixelId()])
-	{
-	    dimCluster = 0;
-            fCluster.Set(n);
-            fCluster.Reset(-1);
-            fCluster[dimCluster]=pixel.GetPixelId();
-	    dimCluster++;
-
-	    CheckNeighbours(evt,geom,
-			    pixel.GetPixelId(), &dimCluster);
-
-	    if (dimCluster > 4)
-            {
-		for (Int_t i = 0; i < dimCluster; i++)
-		    fData5[fCluster[i]]=fakeData[fCluster[i]];
-	    }
-	    if (dimCluster > 3)
-            {
-		for (Int_t i = 0; i < dimCluster; i++)
-		    fData4[fCluster[i]]=fakeData[fCluster[i]];
-	    }
-	    if (dimCluster > 2)
-            {
-		for (Int_t i = 0; i < dimCluster; i++)
-		    fData3[fCluster[i]]=fakeData[fCluster[i]];
-	    }
-	    if (dimCluster > 1)
-            {
-		for (Int_t i = 0; i < dimCluster; i++)
-		    fData2[fCluster[i]]=fakeData[fCluster[i]];
-	    }            
-	} */
-    }
-
-}
-
-// --------------------------------------------------------------------------
-//
-// Function to check the nearest neighbour pixels arrivaltime
-//
-void MArrivalTime::CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
-                                   Short_t idx, Short_t *dimCluster)
-{
-    Byte_t numNeighbors=geom[idx].GetNumNeighbors();
-    //fPixelChecked[idx] = kTRUE;
-
-    for (Byte_t i=0x00; i < numNeighbors; i++)
-    {
-
-        /*
-	if (!fPixelChecked[geom[idx].GetNeighbor(i)] &&
-            fakeData[idx] == fakeData[geom[idx].GetNeighbor(i)])
-	{    
-	    fCluster[*dimCluster]=geom[idx].GetNeighbor(i);    
-	    *dimCluster++;
-            CheckNeighbours(evt, geom,
-			    geom[idx].GetNeighbor(i), dimCluster);
-                            }
-                            */
-    }
-}
+      
 // --------------------------------------------------------------------------
 //
@@ -203,16 +94,4 @@
         val = fData[idx];
         break;
-    case 2:
-        val = fData2[idx];
-        break;
-    case 3:
-        val = fData3[idx];
-        break;
-    case 4:
-        val = fData4[idx];
-        break;
-    case 5:
-        val = fData5[idx];
-        break;
     }
 
Index: /trunk/MagicSoft/Mars/manalysis/MArrivalTime.h
===================================================================
--- /trunk/MagicSoft/Mars/manalysis/MArrivalTime.h	(revision 2934)
+++ /trunk/MagicSoft/Mars/manalysis/MArrivalTime.h	(revision 2935)
@@ -19,13 +19,4 @@
  private:
     TArrayF fData;  // Stores the arrival times
- 
-    TArrayF fData2; // Clusters with at most 2 pix 
-    TArrayF fData3; // Clusters with at most 3 pix                      
-    TArrayF fData4; // Clusters with at most 4 pix                      
-    TArrayF fData5; // Clusters with at most 5 pix 
-
-    //Bool_t  *fPixelChecked; // For each pixel says if it's already been checked
-    TArrayS fCluster; // Idxs of the pixels in the current cluster
-    TArrayS fakeData; //Test purpose
 
 public:
@@ -37,8 +28,4 @@
     void   InitSize(Int_t i);
     UInt_t GetNumPixels() const { return fData.GetSize(); }
-
-    void EvalClusters(const MRawEvtData &evt, const MGeomCam &geom);
-    void CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
-                         Short_t idx, Short_t *dimCluster);
 
     void SetTime(const Int_t i, const Float_t time);
