]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/macros/testUpdateGlobalIndices.C
Updated for new numbering of motif positions in mapping.
[u/mrichter/AliRoot.git] / MUON / mapping / macros / testUpdateGlobalIndices.C
1 // $Id$
2 //
3 // Tests updating global indices of motif positions from file.
4
5 void testUpdateGlobalIndices()
6 {
7   AliMpReader reader(kStation1, kNonBendingPlane);  
8   //reader.SetVerboseLevel(1);
9   
10   // Read data 
11   AliMpSector* sector = reader.BuildSector();
12
13   sector->GetMotifMap()->UpdateGlobalIndices("motif_map.dat");  
14   
15   AliMpVPainter* painter = AliMpVPainter::CreatePainter(sector);
16   TCanvas* canvas = new TCanvas();
17   canvas->cd();
18   painter->Draw("ZSSMI");
19 }          
20