6 // Class describing a zone segment composed of the
7 // line segments with the same motif type.
9 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
11 #include <Riostream.h>
13 #include "AliMpSubZone.h"
14 #include "AliMpVRowSegment.h"
15 #include "AliMpVMotif.h"
17 ClassImp(AliMpSubZone)
19 //_____________________________________________________________________________
20 AliMpSubZone::AliMpSubZone(AliMpVMotif* motif)
27 //_____________________________________________________________________________
28 AliMpSubZone::AliMpSubZone()
35 //_____________________________________________________________________________
36 AliMpSubZone::~AliMpSubZone() {
40 //_____________________________________________________________________________
41 void AliMpSubZone::AddRowSegment(AliMpVRowSegment* rowSegment)
46 fSegments.push_back(rowSegment);
50 //_____________________________________________________________________________
51 void AliMpSubZone::Print() const
53 // Prints motif position Ids for all row segments.
56 for (Int_t i=0; i<GetNofRowSegments(); i++) {
57 AliMpVRowSegment* rowSegment = GetRowSegment(i);
59 cout << rowSegment->GetNofMotifs() << " ";
61 for (Int_t j=0; j<rowSegment->GetNofMotifs(); j++)
62 cout << rowSegment->GetMotifPositionId(j) << " ";
68 //_____________________________________________________________________________
69 Int_t AliMpSubZone::GetNofRowSegments() const
71 // Returns number of row segments.
73 return fSegments.size();
76 //_____________________________________________________________________________
77 AliMpVRowSegment* AliMpSubZone::GetRowSegment(Int_t i) const
79 if (i<0 || i>=GetNofRowSegments()) {
80 Warning("GetRowSegment", "Index outside range");
87 //_____________________________________________________________________________
88 AliMpVMotif* AliMpSubZone:: GetMotif() const