3 // Test macro that runs the segmentation circle test
4 // (finds pad by location, position and indices in a circle)
5 // over the whole plane.
7 void testPlane(AliMpPlane* plane)
9 AliMpPlaneSegmentation planeSegmentation(plane);
11 //AliMpVPainter* painter = AliMpVPainter::CreatePainter(sector);
12 //painter->Draw("ZSSMP");
14 for (Int_t isec=0; isec<4; isec++) {
20 cout << "Verifying sector " << isec << "....." << endl;
22 for (Int_t i = AliMpConstants::StartPadIndex(); i<AliMpConstants::StartPadIndex()+90; i++){
25 if (isec >1) iscale = -1;
27 cout << "Verifying column " << i << "....." << endl;
29 for (Int_t j = AliMpConstants::StartPadIndex(); j<AliMpConstants::StartPadIndex()+20; j++) {
32 if (isec == 1 || isec == 3) jscale = -1;
34 if (planeSegmentation.HasPad(AliMpIntPair(i*iscale, j*jscale))) {
36 planeSegmentation.PadByIndices(AliMpIntPair(i*iscale, j*jscale)).Print();
37 cout << "test result "
38 << planeSegmentation.CircleTest(AliMpIntPair(i*iscale, j*jscale))
42 cout << " has not indices " << AliMpIntPair(i*iscale, j*jscale) << endl;
49 void testPlaneFind(AliMpStationType station = kStation1,
50 AliMpPlaneType planeType = kBendingPlane)
54 cout << "Testing plane1 ..." << endl;
55 AliMpPlane* plane1 = AliMpPlane::Create(station, planeType);
60 cout << "Testing plane2 ..." << endl;
62 = AliMpPlane::Create(station, planeType,
63 TVector2(), TVector2(-10., 10.), TVector2(), TVector2());