Logging of Debug, Info and Error Messages follwing AliRoot Standard http://aliweb...
[u/mrichter/AliRoot.git] / MUON / AliMUONSegment.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONSEGMENT_H
2#define ALIMUONSEGMENT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/*$Id$*/
30178c30 7// Revision of includes 07/05/2004
a9e2aefa 8
3831f268 9///////////////////////////////////////////////////////////
10// Segment for reconstruction in ALICE dimuon spectrometer
11///////////////////////////////////////////////////////////
12
13#include <TObject.h>
a9e2aefa 14
15class AliMUONHitForRec;
16class AliMUONTrackParam;
17
30178c30 18class AliMUONSegment : public TObject
19{
a9e2aefa 20 public:
762647ff 21 AliMUONSegment(); // default constructor
30178c30 22 virtual ~AliMUONSegment(){} // Destructor
762647ff 23 AliMUONSegment(AliMUONHitForRec* Hit1, AliMUONHitForRec* Hit2); // Constructor from two HitForRec's
a9e2aefa 24
9b03f36b 25 // Inline functions for Get and Set
3831f268 26 AliMUONHitForRec* GetHitForRec1(void) const {return fHitForRecPtr1;}
27 AliMUONHitForRec* GetHitForRec2(void) const {return fHitForRecPtr2;}
28 Double_t GetBendingCoor(void) const {return fBendingCoor;}
29 void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;}
30 Double_t GetBendingSlope(void) const {return fBendingSlope;}
31 void SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;}
32 Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
33 void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;}
34 Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;}
35 void SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;}
36 Double_t GetBendingCoorReso2(void) const {return fBendingCoorReso2;}
37 void SetBendingCoorReso2(Double_t BendingCoorReso2) {fBendingCoorReso2 = BendingCoorReso2;}
38 Double_t GetNonBendingCoorReso2(void) const {return fNonBendingCoorReso2;}
39 void SetNonBendingCoorReso2(Double_t NonBendingCoorReso2) {fNonBendingCoorReso2 = NonBendingCoorReso2;}
40 Double_t GetBendingImpact(void) const {return fBendingImpact;}
41 Bool_t GetInTrack(void) const {return fInTrack;}
42 void SetInTrack(Bool_t InTrack) {fInTrack = InTrack;}
a9e2aefa 43
d12a7158 44 AliMUONSegment* CreateSegmentFromLinearExtrapToStation (Int_t Station, Double_t MCSfactor) const;
30178c30 45 Double_t NormalizedChi2WithSegment(AliMUONSegment* Segment, Double_t Sigma2Cut) const;
d12a7158 46 AliMUONHitForRec* CreateHitForRecFromLinearExtrapToChamber (Int_t Chamber, Double_t MCSfactor) const;
04b5ea16 47 void UpdateFromStationTrackParam(AliMUONTrackParam *TrackParam, Double_t MCSfactor, Double_t Dz1, Double_t Dz2, Double_t Dz3, Int_t Station, Double_t InverseMomentum);
a9e2aefa 48
49 // What is necessary for sorting TClonesArray's; sufficient too ????
50 Bool_t IsSortable() const { return kTRUE; }
2a941f4e 51 Int_t Compare(const TObject* Segment) const; // "Compare" function for sorting
30178c30 52
a9e2aefa 53 protected:
30178c30 54 AliMUONSegment (const AliMUONSegment& AliMUONSegment); // copy constructor
55 AliMUONSegment& operator=(const AliMUONSegment& AliMUONSegment); // assignment operator
56
a9e2aefa 57 private:
58 AliMUONHitForRec* fHitForRecPtr1; // pointer to HitForRec in first chamber
59 AliMUONHitForRec* fHitForRecPtr2; // pointer to HitForRec in second chamber
60 // Bending plane:
61 Double_t fBendingCoor; // Coordinate in bending plane
62 Double_t fBendingSlope; // Slope in bending plane
63 // Covariance in bending plane:
64 Double_t fBendingCoorReso2; // Covariance(coordinate C1 in first chamber)
65 Double_t fBendingSlopeReso2; // Covariance(slope)
66 Double_t fBendingCoorSlopeReso2; // Covariance(C1,slope)
67 Double_t fBendingImpact; // Impact parameter in bending plane
68 // Non Bending plane:
69 Double_t fNonBendingCoor; // Coordinate in non bending plane
70 Double_t fNonBendingSlope; // Slope in non bending plane
71 // Covariance in non bending plane:
72 Double_t fNonBendingCoorReso2; // Covariance(coordinate C1 in first chamber)
73 Double_t fNonBendingSlopeReso2; // Covariance(slope)
74 Double_t fNonBendingCoorSlopeReso2; // Covariance(C1,slope)
75 Double_t fNonBendingImpact; // Impact parameter in non bending plane
76 Bool_t fInTrack; // TRUE if segment belongs to one track
77
044d512b 78 ClassDef(AliMUONSegment, 1) // Segment for reconstruction in ALICE dimuon spectrometer
30178c30 79};
a9e2aefa 80
81#endif