]>
Commit | Line | Data |
---|---|---|
0b936dc0 | 1 | #ifndef ALIMUONCONTOURMAKERTEST_H |
2 | #define ALIMUONCONTOURMAKERTEST_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup evaluation | |
10 | /// \class AliMUONContourMakerTest | |
11 | /// \brief Test of ContourMaker classes | |
12 | /// | |
13 | // author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef ROOT_TObject | |
16 | # include "TObject.h" | |
17 | #endif | |
18 | ||
19 | class AliMpExMap; | |
20 | class TObjArray; | |
21 | class TString; | |
22 | class AliMpMotifPosition; | |
23 | class AliMUONContour; | |
24 | class AliMUONPolygon; | |
25 | ||
26 | class AliMUONContourMakerTest : public TObject | |
27 | { | |
28 | public: | |
29 | AliMUONContourMakerTest(); | |
30 | virtual ~AliMUONContourMakerTest(); | |
31 | ||
32 | void Exec(const Option_t* opt="ALL"); | |
33 | ||
34 | void GetBoundingBox(const TObjArray& array, | |
35 | Double_t& xmin, Double_t& ymin, | |
36 | Double_t& xmax, Double_t& ymax, | |
37 | Bool_t enlarge=kFALSE) const; | |
38 | ||
39 | void Plot(const AliMUONContour& contour, Int_t lineColor=5, Int_t lineWidth=4, Bool_t orientation=kFALSE) const; | |
40 | ||
41 | void Plot(const AliMUONPolygon& polygon, Int_t lineColor=5, Int_t lineWidth=4, Bool_t orientation=kFALSE) const; | |
42 | ||
43 | void PlotContours(const TObjArray& array, Bool_t orientations=kFALSE) const; | |
44 | ||
45 | void PlotSegments(const TObjArray& segments, Int_t lineColor=1, Int_t lineWidth=2, Bool_t orientations=kFALSE) const; | |
46 | ||
47 | void PrintAsPNG(const char* basename, const TObjArray& contourArray, | |
48 | const TObjArray* contourVerticalEdges=0x0, | |
49 | const TObjArray* horizontals=0x0) const; | |
50 | ||
51 | private: | |
52 | ||
fef32488 | 53 | TString NameIt(const AliMpMotifPosition& motifPosition) const; |
0b936dc0 | 54 | |
0b936dc0 | 55 | ClassDef(AliMUONContourMakerTest,1) // Test of AliMUONContourMaker |
56 | }; | |
57 | ||
58 | #endif |