]>
Commit | Line | Data |
---|---|---|
9825400f | 1 | #ifndef ALIMUONCLUSTERINPUT_H |
2 | #define ALIMUONCLUSTERINPUT_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
30178c30 | 6 | /* $Id $*/ |
4dd5a4bf | 7 | // Revision of includes 07/04/2006 |
30178c30 | 8 | |
692de412 | 9 | /// \ingroup rec |
10 | /// \class AliMUONClusterInput | |
11 | /// \brief Global data service for hit reconstruction | |
12 | ||
30178c30 | 13 | #include <TObject.h> |
14 | #include <TClonesArray.h> // needed for inline function Digit | |
30178c30 | 15 | |
9825400f | 16 | class AliMUONDigit; |
17 | class AliMUONRawCluster; | |
7e4a628d | 18 | class AliMUONMathieson; |
4dd5a4bf | 19 | class AliMUONGeometryTransformer; |
20 | class AliMUONSegmentation; | |
21 | class AliMUONGeometrySegmentation; | |
22 | ||
23 | class TMinuit; | |
9825400f | 24 | |
30178c30 | 25 | class AliMUONClusterInput : public TObject |
26 | { | |
9825400f | 27 | public: |
d4fa40b7 | 28 | virtual ~AliMUONClusterInput(); |
9825400f | 29 | static AliMUONClusterInput* Instance(); |
30aaba74 | 30 | // Configuration |
a713db22 | 31 | void SetDigits(Int_t chamber, Int_t idDE, TClonesArray* dig1, TClonesArray* dig2); |
32 | void SetDigits(Int_t chamber, Int_t idDE, TClonesArray* dig); | |
9825400f | 33 | void SetCluster(AliMUONRawCluster* cluster); |
34 | // Access functions | |
30178c30 | 35 | Int_t Chamber() const {return fChamber;} |
36 | AliMUONDigit* Digit(Int_t cath, Int_t i) const {return (AliMUONDigit*) (fDigits[cath]->UncheckedAt(i));} | |
37 | TClonesArray* Digits(Int_t cath) const {return fDigits[cath];} | |
38 | Int_t NDigits(Int_t cath) const {return fNDigits[cath];} | |
fed772f3 | 39 | AliMUONGeometrySegmentation* Segmentation2(Int_t cath) const {return fSegmentation2[cath];} |
40 | ||
7e4a628d | 41 | AliMUONMathieson* Mathieson() const {return fgMathieson;} |
42 | Float_t ChargeCorrel() const {return fChargeCorrel;} | |
a713db22 | 43 | Int_t DetElemId() const {return fDetElemId;} |
7e4a628d | 44 | |
30aaba74 | 45 | // Fitting |
30178c30 | 46 | TMinuit* Fitter() const {return fgMinuit;} |
30aaba74 | 47 | // Current cluster information |
30178c30 | 48 | Float_t TotalCharge(Int_t cath) const {return fChargeTot[cath];} |
49 | Float_t Charge(Int_t dig, Int_t cath) const {return fCharge[dig][cath];} | |
50 | Int_t Ix(Int_t dig, Int_t cath) const {return fix[dig][cath];} | |
51 | Int_t Iy(Int_t dig, Int_t cath) const {return fiy[dig][cath];} | |
52 | Int_t Nmul(Int_t cath) const {return fNmul[cath];} | |
9825400f | 53 | // Helpers for Fit |
54 | Float_t DiscrChargeS1(Int_t i,Double_t *par); | |
55 | Float_t DiscrChargeCombiS1(Int_t i,Double_t *par, Int_t cath); | |
56 | Float_t DiscrChargeS2(Int_t i,Double_t *par); | |
57 | Float_t DiscrChargeCombiS2(Int_t i,Double_t *par, Int_t cath); | |
58 | // | |
59 | protected: | |
3f5cf0b3 | 60 | AliMUONClusterInput(); |
7b4177a6 | 61 | AliMUONClusterInput(const AliMUONClusterInput& clusterInput); |
93b6b3c5 | 62 | AliMUONClusterInput & operator = (const AliMUONClusterInput& rhs); |
9825400f | 63 | private: |
829425a5 | 64 | static AliMUONClusterInput* fgClusterInput; //!< singleton instance |
65 | static AliMUONMathieson* fgMathieson; //!< Mathieson | |
66 | static AliMUONGeometryTransformer* fgTransformer; //!< Geometry transformer | |
67 | static AliMUONSegmentation* fgSegmentation; //!< Segmentation | |
7e4a628d | 68 | |
9825400f | 69 | // Digits |
829425a5 | 70 | TClonesArray* fDigits[2]; //!< Array of pointers to digits |
71 | Int_t fNDigits[2]; //!< Number of digits | |
72 | AliMUONGeometrySegmentation* fSegmentation2[2]; //!< Geometry Segmentation per cathode | |
a713db22 | 73 | |
829425a5 | 74 | Int_t fNseg; //!< number of cathode planes |
75 | Int_t fChamber; //!< Current chamber number | |
30aaba74 | 76 | |
9825400f | 77 | // Current cluster |
829425a5 | 78 | AliMUONRawCluster* fCluster; //!< current cluster |
79 | Int_t fNmul[2]; //!< current cluster multiplicity | |
9825400f | 80 | // Digits contribuing to current cluster |
829425a5 | 81 | Int_t fix[500][2]; //!< List of x-positions for current cluster |
82 | Int_t fiy[500][2]; //!< List of y-positions for current cluster | |
83 | Float_t fCharge[500][2]; //!< List of charges for current cluster | |
84 | Int_t fChargeTot[2]; //!< Total charge | |
85 | Float_t fQtot[2]; //!< Total charge | |
86 | Float_t fZ; //!< Current z-position | |
87 | Float_t fChargeCorrel; //!< charge correlation | |
88 | Int_t fDetElemId; //!< detection elt id | |
7e4a628d | 89 | |
9825400f | 90 | // Fitter |
829425a5 | 91 | static TMinuit* fgMinuit; //!< Fitter |
ecfa008b | 92 | ClassDef(AliMUONClusterInput, 0) // Global data service for hit reconstruction |
9825400f | 93 | }; |
94 | #endif | |
95 |