]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONContourMaker.cxx
o Updates by Remi
[u/mrichter/AliRoot.git] / MUON / AliMUONContourMaker.cxx
index 534f454d49b157697699f203549d10566dcc7a1b..3442155d777eb39f5e987611e60ea2cfcaa4eae9 100644 (file)
 ClassImp(AliMUONContourMaker)
 /// \endcond
 
-namespace
-{
-  void PrintSegments(const TObjArray& array)
-  {
-    TIter next(&array);
-    AliMUONSegment* s;
-    Int_t i(0);
-    while ( ( s = static_cast<AliMUONSegment*>(next()) ) )
-    {
-      cout << Form("i=%d %s",i,s->AsString()) << endl;
-      ++i;
-    }
-  }
-}
-
 //_____________________________________________________________________________
 AliMUONContourMaker::AliMUONContourMaker() 
 {
@@ -105,7 +90,7 @@ AliMUONContourMaker::CreateContour(const TObjArray& polygons, const char* name)
   
   if ( polygons.GetLast() == 0 ) 
   {
-    AliCodeTimerAuto("Trivial case",0);
+    AliCodeTimerAuto("Trivial case",1);
     contour = new AliMUONContour(name);
     pol = static_cast<AliMUONPolygon*>(polygons.First());
     contour->Add(*pol);
@@ -125,10 +110,8 @@ AliMUONContourMaker::CreateContour(const TObjArray& polygons, const char* name)
   
   if ( polygonVerticalEdges.GetLast()+1 < 2 ) 
   {
-    AliError(Form("Got too few edges here for createContour %s",name));
     polygons.Print();
-    TObject* o(0x0);
-    o->Print();
+    AliFatal(Form("Got too few edges here for createContour %s",name));
   }
   
   // Find the vertical edges of the merged contour. This is the meat of the algorithm...