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.2 2006/03/02 16:35:27 ivana Exp $
8 /// \class AliMpTrigger
9 /// \brief A trigger slat
10 /// \author Laurent Aphecetche
12 #ifndef ALI_MP_TRIGGER_H
13 #define ALI_MP_TRIGGER_H
23 #ifndef ROOT_TObjArray
24 # include "TObjArray.h"
28 # include "TVector2.h"
31 #ifndef ALI_MP_PLANE_TYPE
32 # include "AliMpPlaneType.h"
39 class AliMpTrigger : public TObject
43 AliMpTrigger(const char* slatType, AliMpPlaneType bendingOrNonBending);
44 virtual ~AliMpTrigger();
46 Bool_t AdoptLayer(AliMpSlat* slat);
48 void GetAllLocalBoardNumbers(TArrayI& lbn) const;
50 const char* GetID() const;
52 const char* GetName() const;
57 TVector2 Position() const;
59 AliMpSlat* GetLayer(int layer) const;
61 Int_t GetNofPadsX() const;
63 Int_t GetMaxNofPadsY() const;
65 /// Returns the number of layers.
66 Int_t GetSize() const;
68 void Print(Option_t* option="") const;
70 AliMpPlaneType PlaneType() const;
72 TVector2 Dimensions() const;
76 Bool_t IsLayerValid(int layer) const;
78 TString fId; //! name of that slat
79 AliMpPlaneType fPlaneType; //! bending or non-bending
80 TObjArray fSlats; //! virtual slat composing this trigger slat
81 Int_t fMaxNofPadsY; //! max number of pads in y direction
82 Double_t fDX; //! half-size in x (cm)
83 Double_t fDY; //! half-size in y (cm)
85 ClassDef(AliMpTrigger,1) // Slat for trigger