1 #ifndef AliRICHChamber_H
2 #define AliRICHChamber_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 #include <TRotMatrix.h>
11 #include "AliRICHSegRes.h"
14 class AliRICHClusterFinder;
15 class AliRICHResponse;
16 class AliRICHSegmentation;
17 class AliRICHGeometry;
18 typedef enum {mip, cerenkov} Response_t;
20 class AliRICHChamber : public TObject
24 //Rotation matrices for each chamber
26 TRotMatrix *fChamberMatrix;
27 Float_t fChamberTrans[3];
33 // Set and get GEANT id
34 Int_t GetGid() {return fGid;}
35 void SetGid(Int_t id) {fGid=id;}
37 // Initialisation and z-Position
39 // Set inner radius of sensitive volume
40 void SetRInner(Float_t rmin) {frMin=rmin;}
41 // Set outer radius of sensitive volum
42 void SetROuter(Float_t rmax) {frMax=rmax;}
44 // Return inner radius of sensitive volume
45 Float_t RInner() {return frMin;}
46 // Return outer radius of sensitive volum
47 Float_t ROuter() {return frMax;}
49 void SetZPOS(Float_t p1) {fzPos=p1;}
50 Float_t ZPosition() {return fzPos;}
53 //Transformation from Global to local coordinates, chamber-dependant
54 void LocaltoGlobal(Float_t pos[3],Float_t Localpos[3]);
55 void GlobaltoLocal(Float_t pos[3],Float_t localpos[3]);
57 //Setting chamber specific rotation matrices
59 void SetChamberTransform(Float_t Trans1,Float_t Trans2,Float_t Trans3,TRotMatrix *Matrix)
62 fChamberMatrix=Matrix;
63 fChamberTrans[0]=Trans1;
64 fChamberTrans[1]=Trans2;
65 fChamberTrans[2]=Trans3;
68 TRotMatrix * GetRotMatrix() {return fChamberMatrix;}
70 //Configure geometry model
71 void GeometryModel(AliRICHGeometry* thisGeometry){
72 fGeometry=thisGeometry;
76 // Configure response model
77 void ResponseModel(AliRICHResponse* thisResponse);
80 // Configure segmentation model
81 void SegmentationModel(AliRICHSegmentation* thisSegmentation) {
82 fSegmentation = thisSegmentation;
84 void ReconstructionModel(AliRICHClusterFinder *thisReconstruction) {
85 fReconstruction = thisReconstruction;
89 // Get reference to response model
90 AliRICHResponse* GetResponseModel();
92 // Get reference to segmentation model
93 AliRICHSegmentation* GetSegmentationModel() {
97 // Get reference to geometry model
98 AliRICHGeometry* GetGeometryModel() {
103 AliRICHSegmentation* GetSegmentationModel(Int_t i) {
104 return fSegmentation;
108 AliRICHClusterFinder* &GetReconstructionModel() {return fReconstruction;}
110 Int_t Nsec() {return fnsec;}
111 void SetNsec(Int_t nsec) {fnsec=nsec;}
113 // Member function forwarding to the segmentation and response models
115 // Calculate pulse height from energy loss
116 Float_t IntPH(Float_t eloss) {return fResponse->IntPH(eloss);}
117 Float_t IntPH() {return fResponse->IntPH();}
119 // Ask segmentation if signal should be generated
120 Int_t SigGenCond(Float_t x, Float_t y, Float_t z)
122 return fSegmentation->SigGenCond(x, y, z);
125 // Ask segmentation sector
126 Int_t Sector(Float_t x, Float_t y)
128 return fSegmentation->Sector(x, y);
132 // Initialisation of segmentation for hit
133 void SigGenInit(Float_t x, Float_t y, Float_t z)
135 fSegmentation->SigGenInit(x, y, z) ;
137 // Configuration forwarding
139 void SetSigmaIntegration(Float_t p)
141 fResponse->SetSigmaIntegration(p);
143 void SetChargeSlope(Float_t p)
145 fResponse->SetChargeSlope(p);
147 void SetChargeSpread(Float_t p1, Float_t p2)
149 fResponse->SetChargeSpread(p1,p2);
151 void SetMaxAdc(Float_t p)
153 fResponse->SetMaxAdc(p);
155 void SetSqrtKx3(Float_t p)
157 fResponse->SetSqrtKx3(p);
159 void SetKx2(Float_t p)
161 fResponse->SetKx2(p);
163 void SetKx4(Float_t p)
165 fResponse->SetKx4(p);
167 void SetSqrtKy3(Float_t p)
169 fResponse->SetSqrtKy3(p);
171 void SetKy2(Float_t p)
173 fResponse->SetKy2(p);
175 void SetKy4(Float_t p)
177 fResponse->SetKy4(p);
180 void SetPitch(Float_t p)
182 fResponse->SetPitch(p);
185 void SetPadSize(Float_t p1, Float_t p2)
187 fSegmentation->SetPadSize(p1,p2);
189 void SetGapThickness(Float_t thickness)
191 fGeometry->SetGapThickness(thickness);
193 void SetProximityGapThickness(Float_t thickness)
195 fGeometry->SetProximityGapThickness(thickness);
197 void SetQuartzLength(Float_t length)
199 fGeometry->SetQuartzLength(length);
201 void SetQuartzWidth(Float_t width)
203 fGeometry->SetQuartzWidth(width);
205 void SetQuartzThickness(Float_t thickness)
207 fGeometry->SetQuartzThickness(thickness);
209 void SetOuterFreonLength(Float_t length)
211 fGeometry->SetOuterFreonLength(length);
213 void SetOuterFreonWidth(Float_t width)
215 fGeometry->SetOuterFreonWidth(width);
217 void SetInnerFreonLength(Float_t length)
219 fGeometry->SetInnerFreonLength(length);
221 void SetInnerFreonWidth(Float_t width)
223 fGeometry->SetInnerFreonWidth(width);
225 void SetFreonThickness(Float_t thickness)
227 fGeometry->SetFreonThickness(thickness);
232 // Cluster formation method
233 void DisIntegration(Float_t, Float_t, Float_t, Int_t&x, Float_t newclust[6][500], Response_t res);
235 // GEANT volume if for sensitive volume of this
236 // Maximum and Minimum Chamber size
240 // z-position of this chamber
242 // The segmentation models for the cathode planes
243 // fnsec=1: one plane segmented, fnsec=2: both planes are segmented.
246 AliRICHSegmentation *fSegmentation;
247 AliRICHResponse *fResponse;
248 AliRICHGeometry *fGeometry;
249 AliRICHClusterFinder *fReconstruction;
250 ClassDef(AliRICHChamber,1)