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
11 /// A trigger 'slat' object. It is to be viewed as a superposition of
12 /// virtual layers of AliMpSlat objects. The need for more than one layer
13 /// arise from the fact that a given local board deals with strips
14 /// located in different detelem. So a given strip (pad) can have several
16 /// Author: Laurent Aphecetche
18 #ifndef ALI_MP_TRIGGER_H
19 #define ALI_MP_TRIGGER_H
29 #ifndef ROOT_TObjArray
30 # include "TObjArray.h"
34 # include "TVector2.h"
37 #ifndef ALI_MP_PLANE_TYPE
38 # include "AliMpPlaneType.h"
45 class AliMpTrigger : public TObject
49 AliMpTrigger(const char* slatType, AliMpPlaneType bendingOrNonBending);
50 virtual ~AliMpTrigger();
52 Bool_t AdoptLayer(AliMpSlat* slat);
54 void GetAllLocalBoardNumbers(TArrayI& lbn) const;
56 const char* GetID() const;
58 const char* GetName() const;
63 TVector2 Position() const;
65 AliMpSlat* GetLayer(int layer) const;
67 Int_t GetNofPadsX() const;
69 Int_t GetMaxNofPadsY() const;
71 /// Returns the number of layers.
72 Int_t GetSize() const;
74 void Print(Option_t* option="") const;
76 AliMpPlaneType PlaneType() const;
78 TVector2 Dimensions() const;
82 Bool_t IsLayerValid(int layer) const;
85 AliMpPlaneType fPlaneType;
91 ClassDef(AliMpTrigger,1) // Slat for trigger