// $Id$
-// $MpId: testPadDimensions.C,v 1.4 2005/08/24 08:53:27 ivana Exp $
+// $MpId: testPadDimensions.C,v 1.5 2005/09/26 16:05:25 ivana Exp $
//
// Test macro for testing retrieving of pad dimensions from
// the map in AliMpSectorSegmentation.
void testPadDimensions(AliMpStationType station = kStation1,
- AliMpPlaneType plane = kBendingPlane)
+ AliMpPlaneType plane = kBendingPlane,
+ Bool_t rootInput = false)
{
- AliMpSectorReader r(station, plane);
- AliMpSector* sector=r.BuildSector();
+ AliMpSector *sector = 0;
+ if (!rootInput) {
+ AliMpSectorReader r(station, plane);
+ sector=r.BuildSector();
+ }
+ else {
+ TString filePath = AliMpFiles::Instance()->SectorFilePath(station,plane);
+ filePath.ReplaceAll("zones.dat", "sector.root");
+
+ TFile f(filePath.Data(), "READ");
+ sector = (AliMpSector*)f.Get("Sector");
+ }
+
AliMpSectorSegmentation segmentation(sector);
segmentation.PrintZones();