1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpMotif.h,v 1.8 2006/05/24 13:58:18 ivana Exp $
9 /// \brief A motif with its unique ID and the motif type.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_MOTIF_H
14 #define ALI_MP_MOTIF_H
16 #include "AliMpVMotif.h"
23 class AliMpMotif : public AliMpVMotif
26 AliMpMotif(const TString &id,AliMpMotifType *motifType, const TVector2& padDimension);
28 virtual ~AliMpMotif();
31 virtual Int_t GetNofPadDimensions() const;
32 virtual TVector2 GetPadDimensions(Int_t /*i*/ = 0) const;
33 virtual TVector2 GetPadDimensions(const AliMpIntPair& localIndices) const;
36 virtual TVector2 Dimensions() const;
39 virtual TVector2 PadPositionLocal(const AliMpIntPair& localIndices) const;
40 virtual AliMpIntPair PadIndicesLocal(const TVector2& localPos) const;
46 TVector2 fPadDimensions; ///< pad dimensions (halflength x, y size)
48 ClassDef(AliMpMotif,1) // A motif with its ID
53 /// Return 1 as the number of pad dimensions
54 inline Int_t AliMpMotif::GetNofPadDimensions() const
57 /// Return the pad dimensions
58 inline TVector2 AliMpMotif::GetPadDimensions(Int_t /*i*/) const
59 { return fPadDimensions; }
61 #endif //ALI_MP_MOTIF_H