]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpSubZone.h
Added copy constructor and assignement operator (I. Hrivnacova)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSubZone.h
1 // $Id$
2 // Category: sector
3 //
4 // Class AliMpSubZone
5 // ------------------
6 // Class describing a zone segment composed of the 
7 // line segments with the same motif type.
8 //
9 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
10
11 #ifndef ALI_MP_SUB_ZONE_H
12 #define ALI_MP_SUB_ZONE_H
13
14 #include <TObject.h>
15
16 #include "AliMpSectorTypes.h"
17
18 class AliMpVMotif;
19 class AliMpVRowSegment;
20
21 class AliMpSubZone : public TObject
22 {
23   public:
24     AliMpSubZone(AliMpVMotif* motif);
25     AliMpSubZone();
26     virtual ~AliMpSubZone();
27   
28     // methods
29     void AddRowSegment(AliMpVRowSegment* rowSegment);
30     virtual void Print(const char* /*option*/ = 0) const;
31
32     // access methods
33     Int_t              GetNofRowSegments() const;
34     AliMpVRowSegment*  GetRowSegment(Int_t i) const;
35     AliMpVMotif*       GetMotif() const;
36
37   protected:
38     AliMpSubZone(const AliMpSubZone& right);
39     AliMpSubZone&  operator = (const AliMpSubZone& right);
40
41   private:
42     // data members
43     AliMpVMotif*     fMotif;   // the motif in this subzone
44     RowSegmentVector fSegments;// contained row segments
45     
46   ClassDef(AliMpSubZone,1)  //Zone segment
47 };
48
49 #endif //ALI_MP_SUB_ZONE_H