// $Id$
// $MpId: AliMpTrigger.h,v 1.5 2006/05/24 13:58:27 ivana Exp $
-/// \ingroup trigger
+/// \ingroup mptrigger
/// \class AliMpTrigger
/// \brief A trigger slat
///
# include "TObjArray.h"
#endif
-#ifndef ROOT_TVector2
-# include "TVector2.h"
-#endif
-
#ifndef ALI_MP_PLANE_TYPE
# include "AliMpPlaneType.h"
#endif
{
public:
AliMpTrigger();
- AliMpTrigger(const char* slatType, AliMpPlaneType bendingOrNonBending);
+ AliMpTrigger(const char* slatType, AliMp::PlaneType bendingOrNonBending);
virtual ~AliMpTrigger();
Bool_t AdoptLayer(AliMpSlat* slat);
Double_t DX() const;
Double_t DY() const;
- TVector2 Position() const;
+ /// Return x position
+ Double_t GetPositionX() const { return DX(); }
+ /// Return y position
+ Double_t GetPositionY() const { return DY(); }
AliMpSlat* GetLayer(int layer) const;
AliMpVSegmentation* GetLayerSegmentation(int layer) const;
void Print(Option_t* option="") const;
- AliMpPlaneType PlaneType() const;
+ AliMp::PlaneType PlaneType() const;
- TVector2 Dimensions() const;
+ /// Return the x dimension (half-sizes) of that slat (cm)
+ Double_t GetDimensionX() const { return DX(); }
+ /// Return the y dimension (half-sizes) of that slat (cm)
+ Double_t GetDimensionY() const { return DY(); }
private:
Bool_t IsLayerValid(int layer) const;
TString fId; ///< name of that slat
- AliMpPlaneType fPlaneType; ///< bending or non-bending
+ AliMp::PlaneType fPlaneType; ///< bending or non-bending
TObjArray fSlats; ///< virtual slat composing this trigger slat
TObjArray fSlatSegmentations; ///< segmentations for virtual slats
Int_t fMaxNofPadsY; ///< max number of pads in y direction