1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpTrigger.h,v 1.5 2006/05/24 13:58:27 ivana Exp $
8 /// \class AliMpTrigger
9 /// \brief A trigger slat
11 // Author: Laurent Aphecetche
13 #ifndef ALI_MP_TRIGGER_H
14 #define ALI_MP_TRIGGER_H
24 #ifndef ROOT_TObjArray
25 # include "TObjArray.h"
29 # include "TVector2.h"
32 #ifndef ALI_MP_PLANE_TYPE
33 # include "AliMpPlaneType.h"
40 class AliMpTrigger : public TObject
44 AliMpTrigger(const char* slatType, AliMpPlaneType bendingOrNonBending);
45 virtual ~AliMpTrigger();
47 Bool_t AdoptLayer(AliMpSlat* slat);
49 void GetAllLocalBoardNumbers(TArrayI& lbn) const;
51 const char* GetID() const;
53 const char* GetName() const;
58 TVector2 Position() const;
60 AliMpSlat* GetLayer(int layer) const;
62 Int_t GetNofPadsX() const;
64 Int_t GetMaxNofPadsY() const;
66 /// Returns the number of layers.
67 Int_t GetSize() const;
69 void Print(Option_t* option="") const;
71 AliMpPlaneType PlaneType() const;
73 TVector2 Dimensions() const;
77 Bool_t IsLayerValid(int layer) const;
79 TString fId; ///< name of that slat
80 AliMpPlaneType fPlaneType; ///< bending or non-bending
81 TObjArray fSlats; ///< virtual slat composing this trigger slat
82 Int_t fMaxNofPadsY; ///< max number of pads in y direction
83 Double_t fDX; ///< half-size in x (cm)
84 Double_t fDY; ///< half-size in y (cm)
86 ClassDef(AliMpTrigger,3) // Slat for trigger