4 // Class AliMpMotifPosition
5 // ------------------------
6 // Class that represents a placed motif.
8 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
10 #ifndef ALI_MP_MOTIF_POSITION_H
11 #define ALI_MP_MOTIF_POSITION_H
15 #include "AliMpVIndexed.h"
16 #include "AliMpVMotif.h"
18 class AliMpVPadIterator;
20 class AliMpMotifPosition : public AliMpVIndexed
23 AliMpMotifPosition(Int_t id, AliMpVMotif* motif, TVector2 position);
25 virtual ~AliMpMotifPosition();
28 virtual AliMpVPadIterator* CreateIterator() const;
32 AliMpVMotif* GetMotif() const;
33 Bool_t HasPad(const AliMpIntPair& indices) const;
36 TVector2 Position() const;
37 TVector2 Dimensions() const;
42 Int_t fID; //identifier
43 AliMpVMotif* fMotif; //motif
44 TVector2 fPosition; //position
46 ClassDef(AliMpMotifPosition,1) // A motif position
51 inline Int_t AliMpMotifPosition::GetID() const
54 inline AliMpVMotif* AliMpMotifPosition::GetMotif() const
57 inline TVector2 AliMpMotifPosition::Position() const
60 inline TVector2 AliMpMotifPosition::Dimensions() const
61 { return fMotif->Dimensions(); }
63 #endif //ALI_MP_MOTIF_POSITION_H