]> git.uio.no Git - u/mrichter/AliRoot.git/blob - 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
1 // $Id$
2 // $MpId: testUpdateGlobalIndices.C,v 1.7 2005/08/24 08:53:27 ivana Exp $
3 //
4 // Tests updating global indices of motif positions from file.
5
6 void testUpdateGlobalIndices()
7 {
8   AliMpSectorReader reader(kStation1, kNonBendingPlane);  
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