]>
Commit | Line | Data |
---|---|---|
128a8042 | 1 | #ifndef ALICHECKMUONDETELTRESPONSE_H |
2 | #define ALICHECKMUONDETELTRESPONSE_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
27de2dfb | 6 | /* $Id$ */ |
7 | ||
128a8042 | 8 | /// \ingroup base |
9 | /// \class AliCheckMuonDetEltResponse | |
10 | /// \brief tracking chamber efficiency from data | |
11 | //Author: Nicolas LE BRIS - SUBATECH Nantes | |
12 | ||
27f15548 | 13 | #include <TObject.h> |
128a8042 | 14 | |
27f15548 | 15 | class AliESDEvent; |
128a8042 | 16 | class AliMUONTrackParam; |
17 | class AliMUONTrack; | |
18 | class AliMUONVCluster; | |
19 | class AliMUONGeometryTransformer; | |
79720f5b | 20 | class TList; |
ce8cd162 | 21 | class TObjArray; |
128a8042 | 22 | |
23 | class AliCheckMuonDetEltResponse : public TObject | |
24 | { | |
25 | public: | |
128a8042 | 26 | AliCheckMuonDetEltResponse(); |
665701ae | 27 | AliCheckMuonDetEltResponse(const AliCheckMuonDetEltResponse& rhs); |
28 | AliCheckMuonDetEltResponse& operator=(const AliCheckMuonDetEltResponse& rhs); | |
128a8042 | 29 | //Constructor: |
30 | AliCheckMuonDetEltResponse(const AliMUONGeometryTransformer* transformer, | |
31 | AliESDEvent* esd, | |
79720f5b | 32 | TList* detEltTDHistList, |
33 | TList* detEltTTHistList, | |
34 | TList* chamberTDHistList, | |
35 | TList* chamberTTHistList); | |
128a8042 | 36 | |
37 | //Destructor: | |
38 | virtual ~AliCheckMuonDetEltResponse(); | |
39 | ||
40 | ||
41 | void CheckDetEltResponse (); | |
42 | void TrackLoop (); | |
43 | void TrackParamLoop (); | |
0246246b | 44 | |
27f15548 | 45 | Int_t GetNbrUsableTracks() const {return fNbrUsableTracks;}; |
fc7a3fd3 | 46 | void SetNbrUsableTracks(Int_t nUsable){fNbrUsableTracks = nUsable;}; |
128a8042 | 47 | |
48 | private: | |
49 | ||
0246246b | 50 | void FillTDHistos (Int_t chamber, Int_t detElt, |
51 | Double_t posXL, Double_t posYL); | |
52 | ||
53 | void FillTTHistos (Int_t chamber, Int_t detElt, | |
54 | Double_t posXL, Double_t posYL); | |
128a8042 | 55 | |
0246246b | 56 | void FindAndFillMissedDetElt (AliMUONTrackParam* extrapTrackParam, |
57 | Int_t firstMissCh, Int_t lastChamber); | |
128a8042 | 58 | |
0246246b | 59 | void CoordinatesOfMissingCluster(Double_t x1, Double_t y1, Double_t z1, |
60 | Double_t x2, Double_t y2, Double_t z2, | |
27f15548 | 61 | Double_t& x, Double_t& y) const; |
128a8042 | 62 | |
0246246b | 63 | Bool_t CoordinatesInDetEltSt12(Int_t DeId, Double_t x, Double_t y); |
64 | Bool_t CoordinatesInDetEltSt345(Int_t DeId, Double_t x, Double_t y); | |
128a8042 | 65 | |
27f15548 | 66 | Int_t FromDetElt2iDet (Int_t chamber, Int_t detElt) const; |
67 | Int_t FromDetElt2LocalId (Int_t chamber, Int_t detElt) const; | |
128a8042 | 68 | |
128a8042 | 69 | |
068b24ba | 70 | const AliMUONGeometryTransformer* fkTransformer; //!<Geometry transformer |
128a8042 | 71 | |
27f15548 | 72 | AliESDEvent* fESD; //<!Current event |
128a8042 | 73 | |
74 | Int_t fNbrClustersCh[10]; //!<Number of clusters in the chamber [fChamberNbr]. | |
75 | Int_t fTracksTotalNbr; //!<Total number of tracks in the event. | |
128a8042 | 76 | Int_t fTrackFilter[10]; //!<To select track for the efficiency calculation. |
fc7a3fd3 | 77 | Int_t fNbrUsableTracks; //!<Number of usable tracks (matches trigger and contains traker data, plus a trigger condition for cosmic) |
128a8042 | 78 | |
ce8cd162 | 79 | TObjArray * fTrackParams; //!<Array of track param |
27f15548 | 80 | AliMUONTrackParam* fTrackParam; //!<Current track param |
81 | AliMUONVCluster * fCluster; //!<Current cluster | |
128a8042 | 82 | |
79720f5b | 83 | TList* fDetEltTDHistList; //!<List of histograms of the tracks detected in the detection elements |
84 | TList* fDetEltTTHistList; //!<List of histograms of the tracks which have passed through the detection elements | |
85 | TList* fChamberTDHistList; //!<List of histograms of the tracks detected in the chambers | |
86 | TList* fChamberTTHistList; //!<List of histograms of the tracks which have passed through the chambers | |
128a8042 | 87 | |
27f15548 | 88 | static const Int_t fgkNCh; ///< The total number of chamber in the tracking system. |
89 | static const Int_t fgkNSt; ///< The total number of station in the tracking system. | |
90 | static const Int_t fgkNDE; ///< Number of detection element in the tracking system. | |
068b24ba | 91 | static const Int_t fgkNbrOfDetectionElt[10]; ///< The total number of detection element in each chamber. |
92 | static const Int_t fgkFirstDetectionElt[10]; ///< The Id of the first detection element of each chamber. | |
27f15548 | 93 | static const Int_t fgkOffset; ///< fFirstDetectionElt[iChamber] = fOffset * (iChamber+1). |
128a8042 | 94 | |
79720f5b | 95 | ClassDef(AliCheckMuonDetEltResponse, 0); |
128a8042 | 96 | }; |
97 | #endif |