]>
Commit | Line | Data |
---|---|---|
66e0997c | 1 | // $Id$ |
334be4b7 | 2 | // $MpId: testReadMotifType.C,v 1.12 2005/09/26 16:05:25 ivana Exp $ |
66e0997c | 3 | // |
4 | // Test macro for reading motif type data. | |
5 | ||
cddd101e | 6 | void testReadMotifType(AliMp::StationType station = AliMp::kStation1, |
7 | AliMp::PlaneType plane = AliMp::kBendingPlane, | |
334be4b7 | 8 | Bool_t rootInput = false) |
66e0997c | 9 | { |
a387ee7c | 10 | AliMpMotifReader r(station, plane); |
66e0997c | 11 | //r.SetVerboseLevel(2); |
12 | ||
72d8f376 | 13 | TString names; |
14 | TString names2; | |
15 | Int_t nv =0; | |
cddd101e | 16 | if ( station == AliMp::kStation1 ) |
17 | if ( plane == AliMp::kBendingPlane ) | |
72d8f376 | 18 | names ="ABCDEFGHI"; |
19 | else | |
20 | names = "ABCDEFGHIJKLMN"; | |
cddd101e | 21 | else if ( station == AliMp::kStation2 ) |
22 | if ( plane == AliMp::kBendingPlane ) { | |
72d8f376 | 23 | names ="ABCDEFGHIJKLMNOPQRSTUVWXY"; |
24 | names2 ="abcdefghimnptuv"; | |
25 | nv = 5; | |
26 | } | |
27 | else { | |
02502526 | 28 | names = "ABCEFGHIJKLMN"; |
72d8f376 | 29 | names2 ="abcdefgijklmnopqrstuwv"; |
02502526 | 30 | nv = 5; |
72d8f376 | 31 | } |
32 | ||
66e0997c | 33 | for (Int_t i=0;i<names.Length();++i){ |
34 | r.BuildMotifType(names[i])->Print("G"); | |
35 | } | |
72d8f376 | 36 | |
37 | // motifs a1, b1, ..., u1, v1 | |
38 | for (Int_t i2=0;i2<names2.Length();++i2){ | |
39 | TString mtName = names2[i2]; | |
40 | mtName += "1"; | |
41 | r.BuildMotifType(mtName)->Print("G"); | |
42 | } | |
43 | ||
44 | // motifs v2, ..., v5, v6 | |
45 | TString names4="v"; | |
46 | for (Int_t i3=2;i3<nv+1;++i3) { | |
47 | TString mtName = "v"; | |
48 | mtName += i3; | |
49 | r.BuildMotifType(mtName)->Print("G"); | |
50 | } | |
66e0997c | 51 | } |