ROOT logo
#ifndef ALIMUONCONTOURMAKERTEST_H
#define ALIMUONCONTOURMAKERTEST_H

/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice                               */

// $Id$

/// \ingroup evaluation
/// \class AliMUONContourMakerTest
/// \brief Test of ContourMaker classes
/// 
// author Laurent Aphecetche, Subatech

#ifndef ROOT_TObject
#  include "TObject.h"
#endif

class AliMpExMap;
class TObjArray;
class TString;
class AliMpMotifPosition;
class AliMUONContour;
class AliMUONPolygon;

class AliMUONContourMakerTest : public TObject
{
public:
  AliMUONContourMakerTest();
  virtual ~AliMUONContourMakerTest();
  
  void Exec(const Option_t* opt="ALL");

  void GetBoundingBox(const TObjArray& array, 
                      Double_t& xmin, Double_t& ymin, 
                      Double_t& xmax, Double_t& ymax,
                      Bool_t enlarge=kFALSE) const;
    
  void Plot(const AliMUONContour& contour, Int_t lineColor=5, Int_t lineWidth=4, Bool_t orientation=kFALSE) const;

  void Plot(const AliMUONPolygon& polygon, Int_t lineColor=5, Int_t lineWidth=4, Bool_t orientation=kFALSE) const;

  void PlotContours(const TObjArray& array, Bool_t orientations=kFALSE) const;

  void PlotSegments(const TObjArray& segments, Int_t lineColor=1, Int_t lineWidth=2, Bool_t orientations=kFALSE) const;
  
  void PrintAsPNG(const char* basename, const TObjArray& contourArray,
                  const TObjArray* contourVerticalEdges=0x0, 
                  const TObjArray* horizontals=0x0) const;
  
private:
  ClassDef(AliMUONContourMakerTest,1) // Test of AliMUONContourMaker
};

#endif
 AliMUONContourMakerTest.h:1
 AliMUONContourMakerTest.h:2
 AliMUONContourMakerTest.h:3
 AliMUONContourMakerTest.h:4
 AliMUONContourMakerTest.h:5
 AliMUONContourMakerTest.h:6
 AliMUONContourMakerTest.h:7
 AliMUONContourMakerTest.h:8
 AliMUONContourMakerTest.h:9
 AliMUONContourMakerTest.h:10
 AliMUONContourMakerTest.h:11
 AliMUONContourMakerTest.h:12
 AliMUONContourMakerTest.h:13
 AliMUONContourMakerTest.h:14
 AliMUONContourMakerTest.h:15
 AliMUONContourMakerTest.h:16
 AliMUONContourMakerTest.h:17
 AliMUONContourMakerTest.h:18
 AliMUONContourMakerTest.h:19
 AliMUONContourMakerTest.h:20
 AliMUONContourMakerTest.h:21
 AliMUONContourMakerTest.h:22
 AliMUONContourMakerTest.h:23
 AliMUONContourMakerTest.h:24
 AliMUONContourMakerTest.h:25
 AliMUONContourMakerTest.h:26
 AliMUONContourMakerTest.h:27
 AliMUONContourMakerTest.h:28
 AliMUONContourMakerTest.h:29
 AliMUONContourMakerTest.h:30
 AliMUONContourMakerTest.h:31
 AliMUONContourMakerTest.h:32
 AliMUONContourMakerTest.h:33
 AliMUONContourMakerTest.h:34
 AliMUONContourMakerTest.h:35
 AliMUONContourMakerTest.h:36
 AliMUONContourMakerTest.h:37
 AliMUONContourMakerTest.h:38
 AliMUONContourMakerTest.h:39
 AliMUONContourMakerTest.h:40
 AliMUONContourMakerTest.h:41
 AliMUONContourMakerTest.h:42
 AliMUONContourMakerTest.h:43
 AliMUONContourMakerTest.h:44
 AliMUONContourMakerTest.h:45
 AliMUONContourMakerTest.h:46
 AliMUONContourMakerTest.h:47
 AliMUONContourMakerTest.h:48
 AliMUONContourMakerTest.h:49
 AliMUONContourMakerTest.h:50
 AliMUONContourMakerTest.h:51
 AliMUONContourMakerTest.h:52
 AliMUONContourMakerTest.h:53
 AliMUONContourMakerTest.h:54
 AliMUONContourMakerTest.h:55