3 // Test macro for drawing sector data.
5 void testGraphics(AliMpStationType station = kStation1,
6 AliMpPlaneType plane = kBendingPlane)
8 AliMpReader r(station, plane);
9 AliMpSector *sector=r.BuildSector();
10 AliMpVPainter *painter=AliMpVPainter::CreatePainter(sector);
12 TCanvas* canvas = new TCanvas();
14 for (int i=0;i<4;++i) {
19 //first, paint the whole sector
25 //paint each row segments in each row
28 //paint each motifs, in each row segments in each row
30 painter->Draw("RSMP");
31 //paint each pads, in each motifs, in each row segments in each row
33 painter->Draw("RSMT");
35 ///////////////////////////////
36 //now paint each rows, wwith its name
39 //paint each row segments in each row, and its name
42 //paint each motifs, in each row segments in each row
44 painter->Draw("RSMX");
46 painter->Draw("RSMI");
48 ///////////////////////////////
49 //now paint each zones
52 //paint each sub-zones, in each zones
55 //paint each row segments, in each sub-zone, ...
58 // each motifs, in each row segments, ...
60 painter->Draw("ZSSM");
62 ///////////////////////////////
63 //now paint each zones with its name
66 //paint each sub-zones, in each zones with its name
69 //paint each row segments, in each sub-zone, ... with its name
71 painter->Draw("ZSST");
72 // each motifs, in each row segments, ... with its name
74 painter->Draw("ZSSMT");
75 // now, draw a specific motif, in a whole canvas, and
76 // print all its pad names
77 Int_t id = sector->GetRow(5)->GetRowSegment(0)->GetMotifPositionId(0);
78 AliMpMotifPosition* motifPos = sector->GetMotifMap()->FindMotifPosition(id);
79 motifPainter = AliMpVPainter::CreatePainter(motifPos);
80 TCanvas* onepad = new TCanvas("onepad","One motif");
81 motifPainter->Draw("PT");