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 */
7 // Revision of includes 07/05/2004
10 #include <TClonesArray.h> // needed for inline function Digit
15 class AliMUONRawCluster;
16 class AliSegmentation;
17 class AliMUONMathieson;
19 class AliMUONClusterInput : public TObject
22 virtual ~AliMUONClusterInput();
23 static AliMUONClusterInput* Instance();
25 void SetDigits(Int_t chamber, TClonesArray* dig1, TClonesArray* dig2);
26 void SetDigits(Int_t chamber, TClonesArray* dig);
27 void SetCluster(AliMUONRawCluster* cluster);
29 Int_t Chamber() const {return fChamber;}
30 AliMUONDigit* Digit(Int_t cath, Int_t i) const {return (AliMUONDigit*) (fDigits[cath]->UncheckedAt(i));}
31 TClonesArray* Digits(Int_t cath) const {return fDigits[cath];}
32 Int_t NDigits(Int_t cath) const {return fNDigits[cath];}
33 AliSegmentation* Segmentation(Int_t cath) const {return fSegmentation[cath];}
34 AliMUONMathieson* Mathieson() const {return fgMathieson;}
35 Float_t ChargeCorrel() const {return fChargeCorrel;}
38 TMinuit* Fitter() const {return fgMinuit;}
39 // Current cluster information
40 Float_t TotalCharge(Int_t cath) const {return fChargeTot[cath];}
41 Float_t Charge(Int_t dig, Int_t cath) const {return fCharge[dig][cath];}
42 Int_t Ix(Int_t dig, Int_t cath) const {return fix[dig][cath];}
43 Int_t Iy(Int_t dig, Int_t cath) const {return fiy[dig][cath];}
44 Int_t Nmul(Int_t cath) const {return fNmul[cath];}
46 Float_t DiscrChargeS1(Int_t i,Double_t *par);
47 Float_t DiscrChargeCombiS1(Int_t i,Double_t *par, Int_t cath);
48 Float_t DiscrChargeS2(Int_t i,Double_t *par);
49 Float_t DiscrChargeCombiS2(Int_t i,Double_t *par, Int_t cath);
52 AliMUONClusterInput();
53 AliMUONClusterInput(const AliMUONClusterInput& clusterInput);
54 AliMUONClusterInput & operator = (const AliMUONClusterInput& rhs);
56 static AliMUONClusterInput* fgClusterInput; // ! singleton instance
57 static AliMUONMathieson* fgMathieson; // ! Mathieson
60 TClonesArray* fDigits[2]; // ! Array of pointers to digits
61 Int_t fNDigits[2]; // ! Number of digits
62 AliSegmentation* fSegmentation[2]; // ! Segmentation per cathode
63 Int_t fNseg; // ! number of cathode planes
64 Int_t fChamber; // ! Current chamber number
67 AliMUONRawCluster* fCluster; // ! current cluster
68 Int_t fNmul[2]; // ! current cluster multiplicity
69 // Digits contribuing to current cluster
70 Int_t fix[500][2]; // ! List of x-positions for current cluster
71 Int_t fiy[500][2]; // ! List of y-positions for current cluster
72 Float_t fCharge[500][2]; // ! List of charges for current cluster
73 Int_t fChargeTot[2]; // ! Total charge
74 Float_t fQtot[2]; // ! Total charge
75 Float_t fZ; // ! Current z-position
76 Float_t fChargeCorrel; // ! charge correlation
79 static TMinuit* fgMinuit; // ! Fitter
80 ClassDef(AliMUONClusterInput, 0) // Global data service for hit reconstruction