AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpMotifPosition.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: AliMpMotifPosition.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
6 
12 
13 #ifndef ALI_MP_MOTIF_POSITION_H
14 #define ALI_MP_MOTIF_POSITION_H
15 
16 #include "AliMpVIndexed.h"
17 #include "AliMpVMotif.h"
18 
19 class AliMpVPadIterator;
20 
22 {
23  public:
24  AliMpMotifPosition(Int_t id, AliMpVMotif* motif, Double_t x, Double_t y);
26  virtual ~AliMpMotifPosition();
27 
28  // methods
29  virtual AliMpVPadIterator* CreateIterator() const;
30 
31  // get methods
32  Int_t GetID() const;
33  AliMpVMotif* GetMotif() const;
34  Bool_t HasPadByIndices(MpPair_t indices) const;
35  Bool_t HasPadByManuChannel(Int_t manuChannel) const;
36 
37  // Geometry
38  Double_t GetPositionX() const;
39  Double_t GetPositionY() const;
40  Double_t GetDimensionX() const;
41  Double_t GetDimensionY() const;
42 
43  // Sets the ID (which is the MANU ID)
44  void SetID(Int_t id);
45  // Sets the position.
46  void SetPosition(Double_t x, Double_t y);
47 
48  void Print(Option_t* option="") const;
49 
50  private:
55 
56  // methods
57  // data members
58  Int_t fID;
60  Double_t fPositionX;
61  Double_t fPositionY;
62 
63  ClassDef(AliMpMotifPosition,2) // A motif position
64 };
65 
66 // inline functions
67 
69 inline Int_t AliMpMotifPosition::GetID() const
70 { return fID; }
71 
74 { return fMotif; }
75 
77 inline Double_t AliMpMotifPosition::GetPositionX() const
78 { return fPositionX; }
79 
81 inline Double_t AliMpMotifPosition::GetPositionY() const
82 { return fPositionY; }
83 
85 inline Double_t AliMpMotifPosition::GetDimensionX() const
86 { return fMotif->DimensionX(); }
87 
89 inline Double_t AliMpMotifPosition::GetDimensionY() const
90 { return fMotif->DimensionY(); }
91 
92 #endif //ALI_MP_MOTIF_POSITION_H
Double_t GetPositionY() const
Return y position.
Double_t fPositionY
y position
Double_t GetDimensionY() const
Return y dimension.
virtual Double_t DimensionY() const =0
Return y dimensions.
Double_t GetDimensionX() const
Return x dimension.
Bool_t HasPadByIndices(MpPair_t indices) const
void SetPosition(Double_t x, Double_t y)
Base class that defines the limits of global pad indices.
Definition: AliMpVIndexed.h:22
Int_t GetID() const
Return motif position ID = manu id.
A placed motif.
An interface for an iterator over pads.
AliMpVMotif * GetMotif() const
Return motif.
virtual AliMpVPadIterator * CreateIterator() const
Create iterator over this element.
virtual Double_t DimensionX() const =0
Return x dimensions.
Int_t fID
identifier=manu id
Abstract base class for a motif with its unique ID and the motif type.
Definition: AliMpVMotif.h:24
Int_t MpPair_t
AliMpMotifPosition & operator=(const AliMpMotifPosition &right)
Not implemented.
void Print(Option_t *option="") const
Double_t GetPositionX() const
Return x position.
AliMpVMotif * fMotif
motif
Bool_t HasPadByManuChannel(Int_t manuChannel) const
Double_t fPositionX
x position