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 */
7 // Revision of includes 07/05/2004
10 #include <TObjArray.h>
12 #include "AliSegmentation.h"
13 #include "AliMUONResponse.h"
15 class AliMUONClusterFinderVS;
16 class AliMUONGeometryModule;
18 class AliMUONChamber : public TObject
22 AliMUONChamber(Int_t id);
23 virtual ~AliMUONChamber();
27 virtual Int_t GetId() const {return fId;}
31 virtual Bool_t IsSensId(Int_t volId) const;
35 // Set z-position of chamber
36 virtual void SetZ(Float_t Z) {fZ = Z;}
37 // Get z-position of chamber
38 virtual Float_t Z() const {return fZ;}
39 // Set inner radius of sensitive volume
40 virtual void SetRInner(Float_t rmin) {frMin=rmin;}
41 // Set outer radius of sensitive volum
42 virtual void SetROuter(Float_t rmax) {frMax=rmax;}
44 // Return inner radius of sensitive volume
45 virtual Float_t RInner() const {return frMin;}
46 // Return outer radius of sensitive volum
47 virtual Float_t ROuter() const {return frMax;}
50 virtual void SetResponseModel(AliMUONResponse* thisResponse) {fResponse=thisResponse;}
52 // Set segmentation model
53 virtual void SetSegmentationModel(Int_t i, AliSegmentation* thisSegmentation) {
54 fSegmentation->AddAt(thisSegmentation,i-1);
57 // Get pointer to response model
58 virtual AliMUONResponse* &ResponseModel(){return fResponse;}
60 // Get reference to segmentation model
61 virtual AliSegmentation* SegmentationModel(Int_t isec) {
62 return (AliSegmentation *) (*fSegmentation)[isec-1];
64 virtual TObjArray* ChamberSegmentation() {return fSegmentation;}
66 // Get number of segmentation sectors
67 virtual Int_t Nsec() const {return fnsec;}
68 // Set number of segmented cathodes (1 or 2)
69 virtual void SetNsec(Int_t nsec) {fnsec=nsec;}
71 // Member function forwarding to the segmentation and response models
73 // Calculate pulse height from energy loss
74 virtual Float_t IntPH(Float_t eloss) {return fResponse->IntPH(eloss);}
76 // Ask segmentation if signal should be generated
77 virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z);
79 // Initialisation of segmentation for hit
80 virtual void SigGenInit(Float_t x, Float_t y, Float_t z);
81 // Initialisation of charge fluctuation for given hit
82 virtual void ChargeCorrelationInit();
84 // Configuration forwarding
86 // Define signal distribution region
87 // by number of sigmas of the distribution function
88 virtual void SetSigmaIntegration(Float_t p1)
89 {fResponse->SetSigmaIntegration(p1);}
90 // Set the single electron pulse-height (ADCchan/e)
91 virtual void SetChargeSlope(Float_t p1) {fResponse->SetChargeSlope(p1);}
92 // Set width of charge distribution function
93 virtual void SetChargeSpread(Float_t p1, Float_t p2) {fResponse->SetChargeSpread(p1,p2);}
94 // Set maximum ADC count value
95 virtual void SetMaxAdc(Int_t p1) {fResponse->SetMaxAdc(p1);}
97 virtual void SetPadSize(Int_t isec, Float_t p1, Float_t p2) {
98 ((AliSegmentation*) (*fSegmentation)[isec-1])->SetPadSize(p1,p2);
101 // Cluster formation method (charge disintegration)
102 virtual void DisIntegration(Float_t eloss, Float_t tof,
103 Float_t xhit, Float_t yhit, Float_t zhit,
104 Int_t& x, Float_t newclust[6][500]);
105 // Initialize geometry related parameters
106 virtual void InitGeo(Float_t z);
108 virtual Float_t DGas() const {return fdGas;}
109 virtual Float_t DAlu() const {return fdAlu;}
110 virtual void SetDGas(Float_t DGas) {fdGas = DGas;}
111 virtual void SetDAlu(Float_t DAlu) {fdAlu = DAlu;}
112 virtual void SetChargeCorrel(Float_t correl) {fResponse->SetChargeCorrel(correl);}
115 void SetGeometry(AliMUONGeometryModule* geometry) {fGeometry = geometry;}
116 AliMUONGeometryModule* GetGeometry() const {return fGeometry; }
120 AliMUONChamber(const AliMUONChamber & rChamber);
121 // assignment operator
122 AliMUONChamber& operator =(const AliMUONChamber& rhs);
124 Int_t fId; // chamber number
125 Float_t fdGas; // half gaz gap
126 Float_t fdAlu; // half Alu width
127 Float_t fZ; // Z position (cm)
128 Int_t fnsec; // number of semented cathode planes
129 Float_t frMin; // innermost sensitive radius
130 Float_t frMax; // outermost sensitive radius
131 Float_t fCurrentCorrel; //! charge correlation for current hit.
133 TObjArray *fSegmentation; // pointer to segmentation
134 AliMUONResponse *fResponse; // pointer to response
135 AliMUONGeometryModule *fGeometry; // pointer to geometry
136 ClassDef(AliMUONChamber,3) // Muon tracking chamber class