AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerTrack.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRIGGERTRACK_H
2 #define ALIMUONTRIGGERTRACK_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /*$Id$*/
7 // Revision of includes 07/05/2004
8 
13 
14 #include <TObject.h>
15 #include <TMatrixD.h>
16 #include <TMath.h>
17 
19 
20 class AliMUONTriggerTrack : public TObject
21 {
22  public:
23  AliMUONTriggerTrack(); // Constructor
24  virtual ~AliMUONTriggerTrack(); // Destructor
25  AliMUONTriggerTrack (const AliMUONTriggerTrack& AliMUONTriggerTrack); // copy constructor
26  AliMUONTriggerTrack& operator=(const AliMUONTriggerTrack& AliMUONTriggerTrack); // assignment operator
27  AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t z11, Float_t z21,
28  Float_t slopeX, Float_t slopeY,
29  Int_t iloTrg, Long_t theGTPattern, Int_t ptCutLevel=1);
30 
31  virtual void Clear(Option_t* opt = "");
32 
33  // getters
34 
36  Float_t GetX11() const {return fx11;}
38  Float_t GetY11() const {return fy11;}
40  Float_t GetZ11() const {return fz11;}
42  Float_t GetZ21() const {return fz21;}
44  Float_t GetThetax() const {return TMath::ATan(fSlopeX);}
46  Float_t GetThetay() const {return TMath::ATan(fSlopeY);}
48  Float_t GetSlopeX() const {return fSlopeX;}
50  Float_t GetSlopeY() const {return fSlopeY;}
52  Int_t GetLoTrgNum() const {return floTrgNum;}
53 
54  // setters
55 
57  void SetX11(Float_t x) {fx11 = x;}
59  void SetY11(Float_t y) {fy11 = y;}
61  void SetZ11(Float_t z) {fz11 = z;}
63  void SetZ21(Float_t z) {fz21 = z;}
65  void SetSlopeX(Float_t slopeX) {fSlopeX = slopeX;}
67  void SetSlopeY(Float_t slopeY) {fSlopeY = slopeY;}
69  void SetLoTrgNum(Int_t loTrgNum) {floTrgNum = loTrgNum;}
70 
72  void SetGTPattern(UChar_t pat) {fGTPattern = pat;}
74  UChar_t GetGTPattern() const {return fGTPattern;}
75 
77  void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh) {fHitsPatternInTrigCh = hitsPatternInTrigCh;}
79  UShort_t GetHitsPatternInTrigCh() const {return fHitsPatternInTrigCh;}
80 
82  void SetPtCutLevel(Int_t ptCutLevel) { fPtCutLevel = ptCutLevel;}
84  Int_t GetPtCutLevel() const {return fPtCutLevel;}
85 
86 
87  virtual void Print(Option_t* opt="FULL") const;
88 
89  const TMatrixD& GetCovariances() const;
90  void SetCovariances(const TMatrixD& covariances);
91  void SetCovariances(const Double_t matrix[3][3]);
92 
93  Bool_t Match(AliMUONTriggerTrack &track, Double_t sigmaCut) const;
94 
95 protected:
96  private:
97  Float_t fx11;
98  Float_t fy11;
99  Float_t fz11;
100  Float_t fz21;
101  Float_t fSlopeX;
102  Float_t fSlopeY;
103  Int_t floTrgNum;
104  UChar_t fGTPattern;
105  Int_t fPtCutLevel;
107  mutable TMatrixD *fCovariances;
108 
109  ClassDef(AliMUONTriggerTrack, 7) // Reconstructed trigger track in ALICE dimuon spectrometer
110  };
111 
112 #endif
113 
UShort_t GetHitsPatternInTrigCh() const
Get word telling which trigger chambers where hit by track.
Float_t fSlopeX
track slope in X
Bool_t Match(AliMUONTriggerTrack &track, Double_t sigmaCut) const
const TMatrixD & GetCovariances() const
Float_t fy11
y position of fired X strip in MC11
void SetPtCutLevel(Int_t ptCutLevel)
Set pt cut level.
Int_t GetLoTrgNum() const
Return local trigger number.
void SetSlopeY(Float_t slopeY)
Set track slope in Y.
AliTPCfastTrack * track
Reconstructed trigger track in ALICE dimuon spectrometer.
Float_t GetX11() const
Return x position of fired Y strip in MC11.
Float_t GetThetay() const
Return track theta angle in Y.
AliMUONTriggerTrack & operator=(const AliMUONTriggerTrack &AliMUONTriggerTrack)
void SetLoTrgNum(Int_t loTrgNum)
Set local trigger number.
Float_t GetSlopeY() const
Return track slope in Y.
Double_t sigmaCut
Definition: DIMUONFakes.C:36
Int_t fPtCutLevel
Trigger pt cut level as in ESDs (1->Apt; 2->Lpt; 3->Hpt)
void SetSlopeX(Float_t slopeX)
Set track slope in X.
Float_t fz21
z position of fired X strip in MC21
void SetZ21(Float_t z)
Set z position of fired X strip in MC21.
UShort_t fHitsPatternInTrigCh
Word containing info on the hits left in trigger chambers.
Float_t fSlopeY
track slope in Y
Float_t GetY11() const
Return y position of fired X strip in MC11.
Float_t GetThetax() const
Return track theta angle in X.
TMatrixD * fCovariances
Covariance matrix of track parameters.
Float_t GetZ21() const
Return z position of fired X strip in MC21.
UChar_t fGTPattern
Global trigger pattern (do not work with static statement)
void SetX11(Float_t x)
Set x position of fired Y strip in MC11.
Float_t GetZ11() const
Return z position of fired X strip in MC11.
UChar_t GetGTPattern() const
Return Global trigger pattern (do not work with static statement)
Int_t floTrgNum
local trigger number
Float_t fx11
x position of fired Y strip in MC11
Int_t GetPtCutLevel() const
Get pt cut level.
void SetY11(Float_t y)
Set y position of fired X strip in MC11.
Standard class for the MUON track reconstruction.
void SetZ11(Float_t z)
Set z position of fired X strip in MC11.
void SetCovariances(const TMatrixD &covariances)
Float_t fz11
z position of fired X strip in MC11
virtual void Clear(Option_t *opt="")
void SetGTPattern(UChar_t pat)
Set Global trigger pattern (do not work with static statement)
virtual void Print(Option_t *opt="FULL") const
void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh)
Set word telling which trigger chambers where hit by track.
Float_t GetSlopeX() const
Return track slope in X.