* See cxx source for full Copyright notice */
/*$Id$*/
+// Revision of includes 07/05/2004
-///////////////////////////////////////////////////
-// Reconstructed trigger track in ALICE dimuon spectrometer
-///////////////////////////////////////////////////
+/// \ingroup rec
+/// \class AliMUONTriggerTrack
+/// \brief Reconstructed trigger track in ALICE dimuon spectrometer
+/// \author Philippe Crochet
+#include <TObject.h>
+#include <TMatrixD.h>
+#include <TMath.h>
-class TObjArray;
-class AliMUONEventReconstructor;
+class AliMUONTrackReconstructor;
-class AliMUONTriggerTrack : public TObject {
+class AliMUONTriggerTrack : public TObject
+{
public:
AliMUONTriggerTrack(); // Constructor
virtual ~AliMUONTriggerTrack(); // Destructor
AliMUONTriggerTrack (const AliMUONTriggerTrack& AliMUONTriggerTrack); // copy constructor
AliMUONTriggerTrack& operator=(const AliMUONTriggerTrack& AliMUONTriggerTrack); // assignment operator
- AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, AliMUONEventReconstructor* EventReconstructor); // Constructor
- Float_t GetX11() const {return fx11;}
- Float_t GetY11() const {return fy11;}
- Float_t GetThetax() const {return fthetax;}
- Float_t GetThetay() const {return fthetay;}
-
+ AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t z11, Float_t z21,
+ Float_t slopeX, Float_t slopeY,
+ Int_t iloTrg, Long_t theGTPattern, UShort_t hitsPatternInTrigCh=0);
+
+ // getters
+
+ /// Return x position of fired Y strip in MC11
+ Float_t GetX11() const {return fx11;}
+ /// Return y position of fired X strip in MC11
+ Float_t GetY11() const {return fy11;}
+ /// Return z position of fired X strip in MC11
+ Float_t GetZ11() const {return fz11;}
+ /// Return z position of fired X strip in MC21
+ Float_t GetZ21() const {return fz21;}
+ /// Return track theta angle in X
+ Float_t GetThetax() const {return TMath::ATan(fSlopeX);}
+ /// Return track theta angle in Y
+ Float_t GetThetay() const {return TMath::ATan(fSlopeY);}
+ /// Return track slope in X
+ Float_t GetSlopeX() const {return fSlopeX;}
+ /// Return track slope in Y
+ Float_t GetSlopeY() const {return fSlopeY;}
+ /// Return local trigger number
+ Int_t GetLoTrgNum() const {return floTrgNum;}
+
+ // setters
+
+ /// Set x position of fired Y strip in MC11
+ void SetX11(Float_t x) {fx11 = x;}
+ /// Set y position of fired X strip in MC11
+ void SetY11(Float_t y) {fy11 = y;}
+ /// Set z position of fired X strip in MC11
+ void SetZ11(Float_t z) {fz11 = z;}
+ /// Set z position of fired X strip in MC21
+ void SetZ21(Float_t z) {fz21 = z;}
+ /// Set track slope in X
+ void SetSlopeX(Float_t slopeX) {fSlopeX = slopeX;}
+ /// Set track slope in Y
+ void SetSlopeY(Float_t slopeY) {fSlopeY = slopeY;}
+ /// Set local trigger number
+ void SetLoTrgNum(Int_t loTrgNum) {floTrgNum = loTrgNum;}
+
+ /// Set Global trigger pattern (do not work with static statement)
+ void SetGTPattern(UChar_t pat) {fGTPattern = pat;}
+ /// Return Global trigger pattern (do not work with static statement)
+ UChar_t GetGTPattern() const {return fGTPattern;}
+
+ /// set word telling which trigger chambers where hit by track
+ UShort_t GetHitsPatternInTrigCh() const {return fHitsPatternInTrigCh;}
+ /// set word telling which trigger chambers where hit by track
+ void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh) {fHitsPatternInTrigCh = hitsPatternInTrigCh;}
+
+ virtual void Print(Option_t* opt="FULL") const;
+
+ const TMatrixD& GetCovariances() const;
+ void SetCovariances(const TMatrixD& covariances);
+ void SetCovariances(const Double_t matrix[3][3]);
+
protected:
private:
- AliMUONEventReconstructor* fEventReconstructor; //! Pointer to EventReconstructor
- Float_t fx11; // x position of fired Y strip in MC11
- Float_t fy11; // y position of fired X strip in MC11
- Float_t fthetax; // track theta angle in X
- Float_t fthetay; // track theta angle in Y
-
- ClassDef(AliMUONTriggerTrack, 2) // Reconstructed trigger track in ALICE dimuon spectrometer
+ Float_t fx11; ///< x position of fired Y strip in MC11
+ Float_t fy11; ///< y position of fired X strip in MC11
+ Float_t fz11; ///< z position of fired X strip in MC11
+ Float_t fz21; ///< z position of fired X strip in MC21
+ Float_t fSlopeX; ///< track slope in X
+ Float_t fSlopeY; ///< track slope in Y
+ Int_t floTrgNum; ///< local trigger number
+ UChar_t fGTPattern; ///< Global trigger pattern (do not work with static statement)
+ UShort_t fHitsPatternInTrigCh; ///< Word containing info on the hits left in trigger chambers
+ mutable TMatrixD *fCovariances; ///< Covariance matrix of track parameters
+
+ ClassDef(AliMUONTriggerTrack, 6) // Reconstructed trigger track in ALICE dimuon spectrometer
};
#endif
+