]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONCHAMBER_H |
2 | #define ALIMUONCHAMBER_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 |
692de412 | 8 | // |
9 | /// \ingroup base | |
10 | /// \class AliMUONChamber | |
11 | /// \brief MUON tracking chamber class | |
c4ee792d | 12 | /// |
13 | /// Now only providing DisIntegration function | |
30178c30 | 14 | |
15 | #include <TObject.h> | |
16 | #include <TObjArray.h> | |
a9e2aefa | 17 | |
a9e2aefa | 18 | #include "AliMUONResponse.h" |
a713db22 | 19 | #include "AliMUONGeometrySegmentation.h" |
a9e2aefa | 20 | |
30aaba74 | 21 | class AliMUONClusterFinderVS; |
a713db22 | 22 | class AliMUON; |
23 | class AliMUONHit; | |
24 | ||
a9e2aefa | 25 | |
30178c30 | 26 | class AliMUONChamber : public TObject |
a9e2aefa | 27 | { |
28 | public: | |
29 | AliMUONChamber(); | |
d81db581 | 30 | AliMUONChamber(Int_t id); |
a9e2aefa | 31 | virtual ~AliMUONChamber(); |
32 | ||
5398f946 | 33 | /// Get chamber Id |
30178c30 | 34 | virtual Int_t GetId() const {return fId;} |
d1cd2474 | 35 | |
5398f946 | 36 | |
37 | /// Set response model | |
a9e2aefa | 38 | virtual void SetResponseModel(AliMUONResponse* thisResponse) {fResponse=thisResponse;} |
5398f946 | 39 | |
40 | /// Get pointer to response model | |
a9e2aefa | 41 | virtual AliMUONResponse* &ResponseModel(){return fResponse;} |
a713db22 | 42 | |
a9e2aefa | 43 | // |
44 | // Member function forwarding to the segmentation and response models | |
45 | // | |
5398f946 | 46 | /// Calculate pulse height from energy loss |
a9e2aefa | 47 | virtual Float_t IntPH(Float_t eloss) {return fResponse->IntPH(eloss);} |
cbf9f933 | 48 | |
681d067b | 49 | // Initialisation of charge fluctuation for given hit |
50 | virtual void ChargeCorrelationInit(); | |
51 | ||
a9e2aefa | 52 | // Configuration forwarding |
53 | // | |
5398f946 | 54 | /// Define signal distribution region |
55 | /// by number of sigmas of the distribution function | |
a9e2aefa | 56 | virtual void SetSigmaIntegration(Float_t p1) |
57 | {fResponse->SetSigmaIntegration(p1);} | |
5398f946 | 58 | /// Set the single electron pulse-height (ADCchan/e) |
a9e2aefa | 59 | virtual void SetChargeSlope(Float_t p1) {fResponse->SetChargeSlope(p1);} |
5398f946 | 60 | /// Set width of charge distribution function |
a9e2aefa | 61 | virtual void SetChargeSpread(Float_t p1, Float_t p2) {fResponse->SetChargeSpread(p1,p2);} |
5398f946 | 62 | /// Set maximum ADC count value |
a337f488 | 63 | virtual void SetMaxAdc(Int_t p1) {fResponse->SetMaxAdc(p1);} |
a9e2aefa | 64 | // |
65 | // Cluster formation method (charge disintegration) | |
a713db22 | 66 | virtual void DisIntegration(AliMUONHit* hit, |
67 | Int_t& x, Float_t newclust[6][500]); | |
5398f946 | 68 | /// Set charge correlation |
16d57990 | 69 | virtual void SetChargeCorrel(Float_t correl) {fResponse->SetChargeCorrel(correl);} |
d1cd2474 | 70 | |
a9e2aefa | 71 | protected: |
c4ee792d | 72 | /// Not implemented |
30178c30 | 73 | AliMUONChamber(const AliMUONChamber & rChamber); |
c4ee792d | 74 | /// Not implemented |
30178c30 | 75 | AliMUONChamber& operator =(const AliMUONChamber& rhs); |
76 | ||
18b6b8c7 | 77 | Int_t fId; ///< chamber number |
78 | Float_t fCurrentCorrel; //!< charge correlation for current hit. | |
79 | ||
80 | AliMUONResponse *fResponse; ///< pointer to response | |
81 | AliMUON *fMUON; ///< pointer to MUON | |
a9e2aefa | 82 | |
e118b27e | 83 | ClassDef(AliMUONChamber,3) // Muon tracking chamber class |
a9e2aefa | 84 | }; |
85 | ||
86 | #endif |