1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpSlatSegmentation.h,v 1.12 2006/05/24 13:58:24 ivana Exp $
8 /// \class AliMpSlatSegmentation
9 /// \brief Implementation of AliMpVSegmentation for St345 slats.
11 /// Note that integer indices start at (0,0) on the bottom-left of the slat,
12 /// while floating point positions are relative to the center of the slat
13 /// (where the slat is to be understood as N PCBs of fixed size = 40cm
14 /// even if not all pads of a given PCBs are actually physically there).
16 /// \author Laurent Aphecetche
18 #ifndef ALI_MP_SLAT_SEGMENTATION_H
19 #define ALI_MP_SLAT_SEGMENTATION_H
25 #ifndef ALI_MP_V_SEGMENTATION_H
26 #include "AliMpVSegmentation.h"
33 class AliMpMotifPosition;
37 class AliMpSlatSegmentation : public AliMpVSegmentation
40 AliMpSlatSegmentation();
41 AliMpSlatSegmentation(const AliMpSlat* slat, Bool_t own = false);
42 virtual ~AliMpSlatSegmentation();
44 virtual AliMpVPadIterator* CreateIterator(const AliMpArea& area) const;
45 virtual AliMpVPadIterator* CreateIterator() const;
47 virtual Int_t GetNeighbours(const AliMpPad& pad, TObjArray& neighbours,
48 Bool_t includeSelf=kFALSE,
49 Bool_t includeVoid=kFALSE) const;
51 const char* GetName() const;
53 Bool_t HasPad(const AliMpIntPair& indices) const;
55 Int_t MaxPadIndexX() const;
56 Int_t MaxPadIndexY() const;
57 Int_t NofPads() const;
59 virtual AliMpPad PadByLocation(const AliMpIntPair& location,
60 Bool_t warning) const;
62 virtual AliMpPad PadByIndices(const AliMpIntPair& indices,
63 Bool_t warning) const;
65 virtual AliMpPad PadByPosition(const TVector2& position,
66 Bool_t warning) const;
68 virtual void Print(Option_t* opt) const;
70 const AliMpSlat* Slat() const;
72 void GetAllElectronicCardIDs(TArrayI& ecn) const;
74 AliMp::PlaneType PlaneType() const;
76 TVector2 Dimensions() const;
79 AliMpSlatSegmentation(const AliMpSlatSegmentation& right);
80 AliMpSlatSegmentation& operator = (const AliMpSlatSegmentation& right);
82 const AliMpSlat* fkSlat; ///< Slat
83 Bool_t fIsOwner;///< Slat ownership
85 ClassDef(AliMpSlatSegmentation,2) // A slat for stations 3,4,5