]>
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 |
8 | ||
9 | #include <TObject.h> | |
10 | #include <TObjArray.h> | |
a9e2aefa | 11 | |
a9e2aefa | 12 | #include "AliMUONResponse.h" |
a713db22 | 13 | #include "AliMUONGeometrySegmentation.h" |
a9e2aefa | 14 | |
30aaba74 | 15 | class AliMUONClusterFinderVS; |
e118b27e | 16 | class AliMUONGeometryModule; |
a713db22 | 17 | class AliMUON; |
18 | class AliMUONHit; | |
19 | ||
a9e2aefa | 20 | |
30178c30 | 21 | class AliMUONChamber : public TObject |
a9e2aefa | 22 | { |
23 | public: | |
24 | AliMUONChamber(); | |
d81db581 | 25 | AliMUONChamber(Int_t id); |
a9e2aefa | 26 | virtual ~AliMUONChamber(); |
27 | ||
28 | // | |
d1cd2474 | 29 | // Get chamber Id |
30178c30 | 30 | virtual Int_t GetId() const {return fId;} |
d1cd2474 | 31 | // |
32 | ||
33 | // Get chamber Id | |
34 | virtual Bool_t IsSensId(Int_t volId) const; | |
d1cd2474 | 35 | |
a9e2aefa | 36 | // Initialisation |
a713db22 | 37 | virtual void Init(Int_t flag); |
a9e2aefa | 38 | // Set z-position of chamber |
39 | virtual void SetZ(Float_t Z) {fZ = Z;} | |
40 | // Get z-position of chamber | |
30178c30 | 41 | virtual Float_t Z() const {return fZ;} |
a9e2aefa | 42 | // Set inner radius of sensitive volume |
43 | virtual void SetRInner(Float_t rmin) {frMin=rmin;} | |
44 | // Set outer radius of sensitive volum | |
45 | virtual void SetROuter(Float_t rmax) {frMax=rmax;} | |
46 | ||
47 | // Return inner radius of sensitive volume | |
30178c30 | 48 | virtual Float_t RInner() const {return frMin;} |
a9e2aefa | 49 | // Return outer radius of sensitive volum |
30178c30 | 50 | virtual Float_t ROuter() const {return frMax;} |
a9e2aefa | 51 | // |
52 | // Set response model | |
53 | virtual void SetResponseModel(AliMUONResponse* thisResponse) {fResponse=thisResponse;} | |
54 | // | |
55 | // Set segmentation model | |
a713db22 | 56 | virtual void SetSegmentationModel(Int_t isec, AliMUONGeometrySegmentation* thissegmentation) { |
57 | fSegmentation2->AddAt(thissegmentation,isec-1); | |
a9e2aefa | 58 | } |
a9e2aefa | 59 | // |
60 | // Get pointer to response model | |
61 | virtual AliMUONResponse* &ResponseModel(){return fResponse;} | |
62 | // | |
63 | // Get reference to segmentation model | |
a713db22 | 64 | virtual AliMUONGeometrySegmentation* SegmentationModel2(Int_t isec) { |
65 | return (AliMUONGeometrySegmentation*) (*fSegmentation2)[isec-1]; | |
66 | } | |
67 | ||
a9e2aefa | 68 | // |
69 | // Member function forwarding to the segmentation and response models | |
70 | // | |
71 | // Calculate pulse height from energy loss | |
72 | virtual Float_t IntPH(Float_t eloss) {return fResponse->IntPH(eloss);} | |
73 | // | |
74 | // Ask segmentation if signal should be generated | |
190f97ea | 75 | // virtual Int_t SigGenCond(AliMUONHit* hit); |
a9e2aefa | 76 | // |
77 | // Initialisation of segmentation for hit | |
190f97ea | 78 | // virtual void SigGenInit(AliMUONHit* hit); |
681d067b | 79 | // Initialisation of charge fluctuation for given hit |
80 | virtual void ChargeCorrelationInit(); | |
81 | ||
a9e2aefa | 82 | // Configuration forwarding |
83 | // | |
84 | // Define signal distribution region | |
85 | // by number of sigmas of the distribution function | |
86 | virtual void SetSigmaIntegration(Float_t p1) | |
87 | {fResponse->SetSigmaIntegration(p1);} | |
88 | // Set the single electron pulse-height (ADCchan/e) | |
89 | virtual void SetChargeSlope(Float_t p1) {fResponse->SetChargeSlope(p1);} | |
90 | // Set width of charge distribution function | |
91 | virtual void SetChargeSpread(Float_t p1, Float_t p2) {fResponse->SetChargeSpread(p1,p2);} | |
92 | // Set maximum ADC count value | |
a337f488 | 93 | virtual void SetMaxAdc(Int_t p1) {fResponse->SetMaxAdc(p1);} |
a9e2aefa | 94 | // |
95 | // Cluster formation method (charge disintegration) | |
a713db22 | 96 | virtual void DisIntegration(AliMUONHit* hit, |
97 | Int_t& x, Float_t newclust[6][500]); | |
a9e2aefa | 98 | // Initialize geometry related parameters |
99 | virtual void InitGeo(Float_t z); | |
100 | // | |
30178c30 | 101 | virtual Float_t DGas() const {return fdGas;} |
102 | virtual Float_t DAlu() const {return fdAlu;} | |
b64652f5 | 103 | virtual void SetDGas(Float_t DGas) {fdGas = DGas;} |
104 | virtual void SetDAlu(Float_t DAlu) {fdAlu = DAlu;} | |
16d57990 | 105 | virtual void SetChargeCorrel(Float_t correl) {fResponse->SetChargeCorrel(correl);} |
d1cd2474 | 106 | |
107 | // geometry | |
e118b27e | 108 | void SetGeometry(AliMUONGeometryModule* geometry) {fGeometry = geometry;} |
109 | AliMUONGeometryModule* GetGeometry() const {return fGeometry; } | |
d1cd2474 | 110 | |
a9e2aefa | 111 | |
112 | protected: | |
30178c30 | 113 | AliMUONChamber(const AliMUONChamber & rChamber); |
114 | // assignment operator | |
115 | AliMUONChamber& operator =(const AliMUONChamber& rhs); | |
116 | ||
d81db581 | 117 | Int_t fId; // chamber number |
a9e2aefa | 118 | Float_t fdGas; // half gaz gap |
119 | Float_t fdAlu; // half Alu width | |
a9e2aefa | 120 | Float_t fZ; // Z position (cm) |
a9e2aefa | 121 | Float_t frMin; // innermost sensitive radius |
122 | Float_t frMax; // outermost sensitive radius | |
681d067b | 123 | Float_t fCurrentCorrel; //! charge correlation for current hit. |
a9e2aefa | 124 | |
a713db22 | 125 | TObjArray *fSegmentation2; // pointer to geometry segmentation bending & NBending |
126 | ||
30aaba74 | 127 | AliMUONResponse *fResponse; // pointer to response |
e118b27e | 128 | AliMUONGeometryModule *fGeometry; // pointer to geometry |
a713db22 | 129 | AliMUON *fMUON; // pointer to MUON |
e118b27e | 130 | ClassDef(AliMUONChamber,3) // Muon tracking chamber class |
a9e2aefa | 131 | }; |
132 | ||
133 | #endif |