Rev 54 | Rev 71 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 54 | Rev 70 | ||
---|---|---|---|
Line 197... | Line 197... | ||
197 | _active(active), |
197 | _active(active), |
198 | _n1(n1), |
198 | _n1(n1), |
199 | _n2(n2), |
199 | _n2(n2), |
200 | _n3(n3), |
200 | _n3(n3), |
201 | _gap(gap), |
201 | _gap(gap), |
- | 202 | _fresnel(1), |
|
- | 203 | _guideOn(1), |
|
- | 204 | offsetY(b/2.0), |
|
- | 205 | offsetZ(b/2.0), |
|
- | 206 | _plateOn(1), |
|
202 | _plateWidth(1), |
207 | _plateWidth(1), |
203 | _fresnel(1), |
- | |
204 | _glassOn(0), |
208 | _glassOn(0), |
205 | _glassD(0) |
209 | _glassD(0) |
206 | _guideOn(1), |
- | |
207 | _plateOn(1), |
- | |
208 | offsetY(2.5), |
- | |
209 | offsetZ(2.5) |
- | |
210 | {}; |
210 | {}; |
211 | DetectorParameters(double a, double b, double d): |
211 | DetectorParameters(double a, double b, double d): |
212 | _a(a), |
212 | _a(a), |
213 | _b(b), |
213 | _b(b), |
214 | _d(d), |
214 | _d(d), |
215 | _active(a), |
215 | _active(a), |
216 | _n1(1.0), |
216 | _n1(1.0), |
217 | _n2(1. |
217 | _n2(1.53), |
218 | _n3(1. |
218 | _n3(1.46), |
219 | _gap(TVector3(0,0,0)), |
219 | _gap(TVector3(0,0,0)), |
220 | _plateWidth(1), |
- | |
221 | _fresnel(1), |
220 | _fresnel(1), |
222 | _glassOn(0), |
- | |
223 | _glassD(0), |
- | |
224 | _guideOn(1), |
221 | _guideOn(1), |
- | 222 | offsetY(b/2.0), |
|
- | 223 | offsetZ(b/2.0), |
|
225 | _plateOn(1), |
224 | _plateOn(1), |
- | 225 | _plateWidth(1), |
|
226 |
|
226 | _glassOn(0), |
227 |
|
227 | _glassD(0) |
228 | {}; |
228 | {}; |
229 | ~DetectorParameters() {}; |
229 | ~DetectorParameters() {}; |
230 | 230 | ||
231 | void setGuide(double a, double b, double |
231 | void setGuide(double a, double b, double d) { |
232 | _a = a; |
232 | _a = a; |
233 | _b = b; |
233 | _b = b; |
234 | _d = d; |
- | |
235 | _n1 = n1; |
- | |
236 | _n2 = n2; |
- | |
237 | _n3 = n3; |
- | |
238 | }; |
- | |
239 | void setGuide(double a, double M, double d) { |
- | |
240 | _a = a; |
- | |
241 |
|
234 | //_M = b/a; |
242 | _d = d; |
235 | _d = d; |
243 | }; |
236 | }; |
244 | void setGap(double x, double y, double z) { _gap = TVector3(x,y,z); }; |
237 | void setGap(double x, double y, double z) { _gap = TVector3(x,y,z); }; |
245 | void setFresnel(int fresnel) { _fresnel = fresnel; }; |
238 | void setFresnel(int fresnel) { _fresnel = fresnel; }; |
246 | void setGlass(int glassOn, double glassD) { _glassOn = glassOn; _glassD = glassD; }; |
239 | void setGlass(int glassOn, double glassD) { _glassOn = glassOn; _glassD = glassD; }; |
247 | void setGuideOn(int guideOn) { _guideOn = guideOn; }; |
240 | void setGuideOn(int guideOn) { _guideOn = guideOn; }; |
248 | void setPlate(int plateOn, double plateWidth) { _plateOn = plateOn; _plateWidth = plateWidth; }; |
241 | void setPlate(int plateOn, double plateWidth) { _plateOn = plateOn; _plateWidth = plateWidth; }; |
- | 242 | void setIndices(double n1, double n2, double n3) { _n1 = n1; _n2 = n2; _n3 = n3; }; |
|
249 | 243 | ||
- | 244 | double getLightYield() { return ( Power(_b,2)/Power(_active,2)); }; |
|
250 | double getM() { return _b/ |
245 | double getM() { return (_b/_a); }; |
251 | double getA() {return _a;}; |
246 | double getA() {return _a;}; |
252 | double getB() {return _b;}; |
247 | double getB() {return _b;}; |
253 | double getD() {return _d;}; |
248 | double getD() {return _d;}; |
254 | double getN1() {return _n1; }; |
249 | double getN1() {return _n1; }; |
255 | double getN2() {return _n2;}; |
250 | double getN2() {return _n2;}; |
Line 272... | Line 267... | ||
272 | double _active; |
267 | double _active; |
273 | double _n1; |
268 | double _n1; |
274 | double _n2; |
269 | double _n2; |
275 | double _n3; |
270 | double _n3; |
276 | TVector3 _gap; |
271 | TVector3 _gap; |
- | 272 | ||
- | 273 | int _fresnel; |
|
- | 274 | ||
277 |
|
275 | int _guideOn; |
278 | double offsetY; |
276 | double offsetY; |
279 | double offsetZ; |
277 | double offsetZ; |
280 | 278 | ||
281 | int |
279 | int _plateOn; |
- | 280 | double _plateWidth; |
|
- | 281 | ||
282 | int _glassOn; |
282 | int _glassOn; |
283 | double _glassD; |
283 | double _glassD; |
284 | int _guideOn; |
- | |
285 | int _plateOn; |
- | |
286 | 284 | ||
287 | }; |
285 | }; |
288 | 286 | ||
289 | class Guide |
287 | class Guide |
290 | { |
288 | { |
Line 433... | Line 431... | ||
433 | //TH2F* GetHWindow() const {return hwindow;}; |
431 | //TH2F* GetHWindow() const {return hwindow;}; |
434 | TH2F* GetHGlass() const {return hglass;}; |
432 | TH2F* GetHGlass() const {return hglass;}; |
435 | TH2F* GetHActive() const {return hactive;}; |
433 | TH2F* GetHActive() const {return hactive;}; |
436 | TH2F* GetHLaser() const {return hlaser;}; |
434 | TH2F* GetHLaser() const {return hlaser;}; |
437 | TH2F* GetHDetector() const {return hdetector;}; |
435 | TH2F* GetHDetector() const {return hdetector;}; |
- | 436 | TH2F* GetHPlate() const {return histoPlate;}; |
|
438 | 437 | ||
439 | //double GetSiPM() const {return SiPM;}; |
438 | //double GetSiPM() const {return SiPM;}; |
440 | //double GetM() const {return M;}; |
439 | //double GetM() const {return M;}; |
441 | //double GetD() const {return d;}; |
440 | //double GetD() const {return d;}; |
442 | //double GetR() const {return R;}; |
441 | //double GetR() const {return R;}; |