3 // Test macro for indices limits.
5 void testIndicesLimits(AliMpStationType station = kStation1,
6 AliMpPlaneType plane = kBendingPlane)
8 AliMpReader reader(station, plane);
9 //reader.SetVerboseLevel(1);
12 AliMpSector* sector = reader.BuildSector();
15 for (Int_t i=0; i<sector->GetNofRows(); i++) {
16 AliMpRow* row = sector->GetRow(i);
19 << row->GetLowIndicesLimit() << " "
20 << row->GetHighIndicesLimit() << endl;
22 // Loop over row segments
23 for (Int_t j=0; j<row->GetNofRowSegments(); j++) {
24 AliMpVRowSegment* rowSegment = row->GetRowSegment(j);
27 << "th row segment limits: "
28 << rowSegment->GetLowIndicesLimit() << " "
29 << rowSegment->GetHighIndicesLimit() << endl;
31 // Loop over motif positions
32 for (Int_t k=0; k<rowSegment->GetNofMotifs(); k++) {
33 Int_t mposID = rowSegment->GetMotifPositionId(k);
34 AliMpMotifPosition* mPos =
35 sector->GetMotifMap()->FindMotifPosition(mposID);
39 << " motif position limits: "
40 << mPos->GetLowIndicesLimit() << " "
41 << mPos->GetHighIndicesLimit() << endl;
44 cerr << "Motif position "
45 << mposID << " not found in the map" << endl;