]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/macros/testUpdateGlobalIndices.C
Added Bool_t rootInput argument; if set to true, the sector
[u/mrichter/AliRoot.git] / MUON / mapping / macros / testUpdateGlobalIndices.C
CommitLineData
66e0997c 1// $Id$
a387ee7c 2// $MpId: testUpdateGlobalIndices.C,v 1.7 2005/08/24 08:53:27 ivana Exp $
66e0997c 3//
4// Tests updating global indices of motif positions from file.
5
6void testUpdateGlobalIndices()
7{
a387ee7c 8 AliMpSectorReader reader(kStation1, kNonBendingPlane);
66e0997c 9 //reader.SetVerboseLevel(1);
10
11 // Read data
12 AliMpSector* sector = reader.BuildSector();
13
14 sector->GetMotifMap()->UpdateGlobalIndices("motif_map.dat");
15
16 AliMpVPainter* painter = AliMpVPainter::CreatePainter(sector);
17 TCanvas* canvas = new TCanvas();
18 canvas->cd();
19 painter->Draw("ZSSMI");
20}
21