AliRoot Core  3dc7879 (3dc7879)
AliMpZone.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpZone.h,v 1.10 2006/05/24 13:58:21 ivana Exp $
6 
15 
16 #ifndef ALI_MP_ZONE_H
17 #define ALI_MP_ZONE_H
18 
19 #include <TObject.h>
20 #include <TObjArray.h>
21 
22 class AliMpSubZone;
23 class AliMpVMotif;
24 
25 class AliMpZone : public TObject
26 {
27  public:
28  AliMpZone(Int_t id);
29  AliMpZone();
30  virtual ~AliMpZone();
31 
32  // methods
33  void AddSubZone(AliMpSubZone* subZone);
34 
35  // find methods
36  AliMpSubZone* FindSubZone(const AliMpVMotif* motif) const;
37 
38  // set methods
39  void SetPadDimensions(Double_t dx, Double_t dy);
40 
41  // access methods
42  UInt_t GetID() const;
43  Int_t GetNofSubZones() const;
44  AliMpSubZone* GetSubZone(Int_t i) const;
45 
46  Double_t GetPadDimensionX() const;
47  Double_t GetPadDimensionY() const;
48 
49  private:
50  // data members
51  UInt_t fID;
53  Double_t fPadDimensionX;
54  Double_t fPadDimensionY;
55 
56  ClassDef(AliMpZone,2) // Zone
57 };
58 
59 // inline functions
60 
62 inline UInt_t AliMpZone::GetID() const
63 { return fID; }
64 
66 inline Double_t AliMpZone::GetPadDimensionX() const
67 { return fPadDimensionX; }
68 
70 inline Double_t AliMpZone::GetPadDimensionY() const
71 { return fPadDimensionY; }
72 
73 #endif //ALI_MP_ZONE_H
void AddSubZone(AliMpSubZone *subZone)
Definition: AliMpZone.cxx:72
UInt_t fID
ID.
Definition: AliMpZone.h:51
TObjArray fSubZones
subzones
Definition: AliMpZone.h:52
Double_t fPadDimensionX
pad x dimension
Definition: AliMpZone.h:53
#define TObjArray
void SetPadDimensions(Double_t dx, Double_t dy)
Definition: AliMpZone.cxx:94
A region of pads of the same dimensions composed of subzones.
Definition: AliMpZone.h:25
Int_t GetNofSubZones() const
Definition: AliMpZone.cxx:103
Double_t fPadDimensionY
pad y dimension
Definition: AliMpZone.h:54
Double_t GetPadDimensionY() const
Return pad y dimensions.
Definition: AliMpZone.h:70
virtual ~AliMpZone()
Definition: AliMpZone.cxx:59
UInt_t GetID() const
Return ID.
Definition: AliMpZone.h:62
Abstract base class for a motif with its unique ID and the motif type.
Definition: AliMpVMotif.h:24
AliMpSubZone * FindSubZone(const AliMpVMotif *motif) const
Definition: AliMpZone.cxx:80
Double_t GetPadDimensionX() const
Return pad x dimensions.
Definition: AliMpZone.h:66
AliMpSubZone * GetSubZone(Int_t i) const
Definition: AliMpZone.cxx:111
A region in zone composed of the row segments with the same motif type.
Definition: AliMpSubZone.h:23