![]() |
AliRoot Core
da88d91 (da88d91)
|
Test of ContourMaker classes. More...
#include <AliMUONContourMakerTest.h>
Public Member Functions | |
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 |
Test of ContourMaker classes.
Class used to test (and in particular time) the contour creation algorithms.
Definition at line 26 of file AliMUONContourMakerTest.h.
AliMUONContourMakerTest::AliMUONContourMakerTest | ( | ) |
ctor
Definition at line 89 of file AliMUONContourMakerTest.cxx.
|
virtual |
dtor
Definition at line 95 of file AliMUONContourMakerTest.cxx.
void AliMUONContourMakerTest::Exec | ( | const Option_t * | opt = "ALL" | ) |
Main method Generate the geometry transformations, then contours for all manus, and then for all the elements (bus patches, detection elements, etc...)
Definition at line 103 of file AliMUONContourMakerTest.cxx.
void AliMUONContourMakerTest::GetBoundingBox | ( | const TObjArray & | array, |
Double_t & | xmin, | ||
Double_t & | ymin, | ||
Double_t & | xmax, | ||
Double_t & | ymax, | ||
Bool_t | enlarge = kFALSE |
||
) | const |
Get the bounding box of all the contours in array. If enlarge = kTRUE, the bounding box is "enlarged" a bit (e.g. to leave some blank around a plot in a canvas)
Definition at line 145 of file AliMUONContourMakerTest.cxx.
Referenced by PrintAsPNG().
void AliMUONContourMakerTest::Plot | ( | const AliMUONContour & | contour, |
Int_t | lineColor = 5 , |
||
Int_t | lineWidth = 4 , |
||
Bool_t | orientation = kFALSE |
||
) | const |
Plot a contour (i.e. a set of polygons)
Definition at line 221 of file AliMUONContourMakerTest.cxx.
Referenced by Plot(), PlotContours(), and PlotSegments().
void AliMUONContourMakerTest::Plot | ( | const AliMUONPolygon & | polygon, |
Int_t | lineColor = 5 , |
||
Int_t | lineWidth = 4 , |
||
Bool_t | orientation = kFALSE |
||
) | const |
Plot a polygon
Definition at line 202 of file AliMUONContourMakerTest.cxx.
void AliMUONContourMakerTest::PlotContours | ( | const TObjArray & | array, |
Bool_t | orientations = kFALSE |
||
) | const |
Plot an array of contours
Definition at line 236 of file AliMUONContourMakerTest.cxx.
Referenced by PrintAsPNG().
void AliMUONContourMakerTest::PlotSegments | ( | const TObjArray & | segments, |
Int_t | lineColor = 1 , |
||
Int_t | lineWidth = 2 , |
||
Bool_t | orientations = kFALSE |
||
) | const |
Plot an array of segments
Definition at line 183 of file AliMUONContourMakerTest.cxx.
Referenced by PrintAsPNG().
void AliMUONContourMakerTest::PrintAsPNG | ( | const char * | basename, |
const TObjArray & | contourArray, | ||
const TObjArray * | contourVerticalEdges = 0x0 , |
||
const TObjArray * | horizontals = 0x0 |
||
) | const |
Output contours and segments into a PNG file.
Definition at line 249 of file AliMUONContourMakerTest.cxx.