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"
17 #include "AliMpEncodePair.h"
23 class AliMpMotif : public AliMpVMotif
26 AliMpMotif(const TString& id,
27 AliMpMotifType* motifType,
28 Double_t dx, Double_t dy);
30 virtual ~AliMpMotif();
33 virtual Int_t GetNofPadDimensions() const;
34 virtual Double_t GetPadDimensionX(Int_t /*i*/ = 0) const;
35 virtual Double_t GetPadDimensionY(Int_t /*i*/ = 0) const;
37 virtual void GetPadDimensionsByIndices(MpPair_t localIndices,
38 Double_t& dx, Double_t& dy) const;
39 virtual void GetPadDimensionsByIndices(Int_t ixLocal, Int_t iyLocal,
40 Double_t& dx, Double_t& dy) const;
43 virtual Double_t DimensionX() const;
44 virtual Double_t DimensionY() const;
47 virtual void PadPositionLocal(MpPair_t localIndices,
48 Double_t& posx, Double_t& posy ) const;
49 virtual void PadPositionLocal(Int_t ixLocal, Int_t iyLocal,
50 Double_t& posx, Double_t& posy ) const;
52 virtual MpPair_t PadIndicesLocal(
53 Double_t localPosX, Double_t localPosY) const;
59 Double_t fPadDimensionX; ///< pad dimensions (halflength x, y size)
60 Double_t fPadDimensionY; ///< pad dimensions (halflength x, y size)
62 ClassDef(AliMpMotif,2) // A motif with its ID
67 /// Return 1 as the number of pad dimensions
68 inline Int_t AliMpMotif::GetNofPadDimensions() const
71 /// Return the pad x dimension
72 inline Double_t AliMpMotif::GetPadDimensionX(Int_t /*i*/) const
73 { return fPadDimensionX; }
75 /// Return the pad y dimension
76 inline Double_t AliMpMotif::GetPadDimensionY(Int_t /*i*/) const
77 { return fPadDimensionY; }
79 #endif //ALI_MP_MOTIF_H