1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpTriggerSegmentation.h,v 1.8 2006/05/24 13:58:27 ivana Exp $
8 /// \class AliMpTriggerSegmentation
9 /// \brief Implementation of AliMpVSegmentation for trigger slats.
11 // Author: Laurent Aphecetche
13 #ifndef ALI_MP_TRIGGER_SEGMENTATION_H
14 #define ALI_MP_TRIGGER_SEGMENTATION_H
20 #ifndef ALI_MP_V_SEGMENTATION_H
21 #include "AliMpVSegmentation.h"
28 class AliMpMotifPosition;
32 class AliMpTriggerSegmentation : public AliMpVSegmentation
35 AliMpTriggerSegmentation();
36 AliMpTriggerSegmentation(const AliMpTrigger* slat, Bool_t own = false);
37 virtual ~AliMpTriggerSegmentation();
39 virtual AliMpVPadIterator* CreateIterator(const AliMpArea& area) const;
41 const char* GetName() const;
43 Bool_t HasPad(const AliMpIntPair& indices) const;
45 Int_t MaxPadIndexX() const;
46 Int_t MaxPadIndexY() const;
47 Int_t NofPads() const { return fNofStrips; }
49 virtual AliMpPad PadByLocation(const AliMpIntPair& location,
50 Bool_t warning) const;
52 virtual AliMpPad PadByIndices(const AliMpIntPair& indices,
53 Bool_t warning) const;
55 virtual AliMpPad PadByPosition(const TVector2& position,
56 Bool_t warning) const;
58 const AliMpTrigger* Slat() const;
60 virtual void GetAllElectronicCardIDs(TArrayI& ecn) const;
62 AliMpPlaneType PlaneType() const;
64 TVector2 Dimensions() const;
67 AliMpTriggerSegmentation(const AliMpTriggerSegmentation& right);
68 AliMpTriggerSegmentation& operator = (const AliMpTriggerSegmentation& right);
70 const AliMpTrigger* fkSlat; ///< Slat
71 Bool_t fIsOwner;///< Trigger slat ownership
72 Int_t fNofStrips; ///< Number of strips in this slat
74 ClassDef(AliMpTriggerSegmentation,3) // Segmentation for slat trigger stations