]>
Commit | Line | Data |
---|---|---|
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 | ||
f05d3eb1 | 6 | #if !defined(__CINT__) || defined(__MAKECINT__) |
7 | ||
8 | #include "AliMpStation12Type.h" | |
9 | #include "AliMpPlaneType.h" | |
10 | #include "AliMpDataProcessor.h" | |
11 | #include "AliMpDataMap.h" | |
12 | #include "AliMpDataStreams.h" | |
13 | #include "AliMpSector.h" | |
14 | #include "AliMpSectorReader.h" | |
15 | #include "AliMpMotifMap.h" | |
16 | #include "AliMpVPainter.h" | |
17 | ||
18 | #include <Riostream.h> | |
19 | #include <TCanvas.h> | |
20 | ||
21 | #endif | |
22 | ||
66e0997c | 23 | void testUpdateGlobalIndices() |
24 | { | |
f05d3eb1 | 25 | AliMpDataProcessor mp; |
26 | AliMpDataMap* dataMap = mp.CreateDataMap("data"); | |
27 | AliMpDataStreams dataStreams(dataMap); | |
28 | ||
29 | AliMpSectorReader r(dataStreams, AliMq::kStation1, AliMp::kNonBendingPlane); | |
30 | AliMpSector* sector = r.BuildSector(); | |
66e0997c | 31 | |
32 | sector->GetMotifMap()->UpdateGlobalIndices("motif_map.dat"); | |
33 | ||
34 | AliMpVPainter* painter = AliMpVPainter::CreatePainter(sector); | |
35 | TCanvas* canvas = new TCanvas(); | |
36 | canvas->cd(); | |
37 | painter->Draw("ZSSMI"); | |
38 | } | |
39 |