AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpMotif.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: AliMpMotif.h,v 1.8 2006/05/24 13:58:18 ivana Exp $
6 
12 
13 #ifndef ALI_MP_MOTIF_H
14 #define ALI_MP_MOTIF_H
15 
16 #include "AliMpVMotif.h"
17 #include "AliMpEncodePair.h"
18 
19 #include <TObject.h>
20 
21 class TString;
22 
23 class AliMpMotif : public AliMpVMotif
24 {
25  public:
26  AliMpMotif(const TString& id,
27  AliMpMotifType* motifType,
28  Double_t dx, Double_t dy);
29  AliMpMotif();
30  virtual ~AliMpMotif();
31 
32  // Access methods
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;
36 
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;
41 
42  // Geometry
43  virtual Double_t DimensionX() const;
44  virtual Double_t DimensionY() const;
45 
46  // Other methods
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;
51 
52  virtual MpPair_t PadIndicesLocal(
53  Double_t localPosX, Double_t localPosY) const;
54 
55  private:
56  // methods
57 
58  // data members
59  Double_t fPadDimensionX;
60  Double_t fPadDimensionY;
61 
62  ClassDef(AliMpMotif,2) // A motif with its ID
63 };
64 
65 // inline functions
66 
68 inline Int_t AliMpMotif::GetNofPadDimensions() const
69 { return 1; }
70 
72 inline Double_t AliMpMotif::GetPadDimensionX(Int_t /*i*/) const
73 { return fPadDimensionX; }
74 
76 inline Double_t AliMpMotif::GetPadDimensionY(Int_t /*i*/) const
77 { return fPadDimensionY; }
78 
79 #endif //ALI_MP_MOTIF_H
Double_t fPadDimensionX
pad dimensions (halflength x, y size)
Definition: AliMpMotif.h:59
virtual Double_t GetPadDimensionX(Int_t=0) const
Return the pad x dimension.
Definition: AliMpMotif.h:72
virtual Double_t DimensionY() const
Return y dimensions.
Definition: AliMpMotif.cxx:102
virtual Int_t GetNofPadDimensions() const
Return 1 as the number of pad dimensions.
Definition: AliMpMotif.h:68
virtual Double_t GetPadDimensionY(Int_t=0) const
Return the pad y dimension.
Definition: AliMpMotif.h:76
Double_t fPadDimensionY
pad dimensions (halflength x, y size)
Definition: AliMpMotif.h:60
virtual ~AliMpMotif()
Definition: AliMpMotif.cxx:61
virtual Double_t DimensionX() const
Return x dimensions.
Definition: AliMpMotif.cxx:94
Abstract base class for a motif with its unique ID and the motif type.
Definition: AliMpVMotif.h:24
Int_t MpPair_t
virtual void PadPositionLocal(MpPair_t localIndices, Double_t &posx, Double_t &posy) const
Fill local position of the pad specified by local indices.
Definition: AliMpMotif.cxx:110
virtual void GetPadDimensionsByIndices(MpPair_t localIndices, Double_t &dx, Double_t &dy) const
Return the dimensions of the pad specified by localIndices.
Definition: AliMpMotif.cxx:68
A motif with its unique ID and the motif type.
Definition: AliMpMotif.h:23
virtual MpPair_t PadIndicesLocal(Double_t localPosX, Double_t localPosY) const
Return local indices of the pad specified by local position.
Definition: AliMpMotif.cxx:133
Class that defines the motif properties.