]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpTrigger.h
Fix floating exception bug which can appear in few specific cases.
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTrigger.h
index deb0c41ad26ccd34de578d77a1c040fac79fb39f..c84fc339672fb99b1d399ae59241421cf0423674 100644 (file)
@@ -4,7 +4,7 @@
 // $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
@@ -42,7 +38,7 @@ class AliMpTrigger : public TObject
 {
 public:
   AliMpTrigger();
-  AliMpTrigger(const char* slatType, AliMpPlaneType bendingOrNonBending);
+  AliMpTrigger(const char* slatType, AliMp::PlaneType bendingOrNonBending);
   virtual ~AliMpTrigger();
   
   Bool_t AdoptLayer(AliMpSlat* slat);
@@ -56,7 +52,10 @@ public:
   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;
@@ -70,16 +69,19 @@ public:
   
   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