// $Id$
-// $MpId: testSectorFind.C,v 1.8 2005/08/24 08:53:27 ivana Exp $
+// $MpId: testSectorFind.C,v 1.10 2005/10/28 15:36:08 ivana Exp $
//
// Test macro for which verify that all FindPosition, FindIndices
// and FindLocation methods are consistents between them.
void testSectorFind(AliMpStationType station = kStation1,
- AliMpPlaneType plane = kBendingPlane)
+ AliMpPlaneType plane = kBendingPlane,
+ Bool_t rootInput = false)
{
- AliMpSectorReader r(station, plane);
+ AliMpSector *sector = 0;
+ if (!rootInput) {
+ AliMpSectorReader r(station, plane);
+ sector=r.BuildSector();
+ }
+ else {
+ TString filePath = AliMpFiles::SectorFilePath(station,plane);
+ filePath.ReplaceAll("zones.dat", "sector.root");
+
+ TFile f(filePath.Data(), "READ");
+ sector = (AliMpSector*)f.Get("Sector");
+ }
- AliMpSector *sector=r.BuildSector();
AliMpSectorSegmentation segmentation(sector);
AliMpVPainter* painter = AliMpVPainter::CreatePainter(sector);
painter->Draw("ZSSMP");