199,14 → 199,14 |
_n2(n2), |
_n3(n3), |
_gap(gap), |
_fresnel(1), |
_guideOn(1), |
offsetY(b/2.0), |
offsetZ(b/2.0), |
_plateOn(1), |
_plateWidth(1), |
_fresnel(1), |
_glassOn(0), |
_glassD(0), |
_guideOn(1), |
_plateOn(1), |
offsetY(2.5), |
offsetZ(2.5) |
_glassD(0) |
{}; |
DetectorParameters(double a, double b, double d): |
_a(a), |
214,40 → 214,35 |
_d(d), |
_active(a), |
_n1(1.0), |
_n2(1.50), |
_n3(1.50), |
_n2(1.53), |
_n3(1.46), |
_gap(TVector3(0,0,0)), |
_plateWidth(1), |
_fresnel(1), |
_glassOn(0), |
_glassD(0), |
_guideOn(1), |
offsetY(b/2.0), |
offsetZ(b/2.0), |
_plateOn(1), |
offsetY(2.5), |
offsetZ(2.5) |
_plateWidth(1), |
_glassOn(0), |
_glassD(0) |
{}; |
~DetectorParameters() {}; |
|
void setGuide(double a, double b, double d, double n1, double n2, double n3) { |
void setGuide(double a, double b, double d) { |
_a = a; |
_b = b; |
//_M = b/a; |
_d = d; |
_n1 = n1; |
_n2 = n2; |
_n3 = n3; |
}; |
void setGuide(double a, double M, double d) { |
_a = a; |
_b = M*a; |
_d = d; |
}; |
void setGap(double x, double y, double z) { _gap = TVector3(x,y,z); }; |
void setFresnel(int fresnel) { _fresnel = fresnel; }; |
void setGlass(int glassOn, double glassD) { _glassOn = glassOn; _glassD = glassD; }; |
void setGuideOn(int guideOn) { _guideOn = guideOn; }; |
void setPlate(int plateOn, double plateWidth) { _plateOn = plateOn; _plateWidth = plateWidth; }; |
void setIndices(double n1, double n2, double n3) { _n1 = n1; _n2 = n2; _n3 = n3; }; |
|
double getM() { return _b/_a; }; |
double getLightYield() { return ( Power(_b,2)/Power(_active,2)); }; |
double getM() { return (_b/_a); }; |
double getA() {return _a;}; |
double getB() {return _b;}; |
double getD() {return _d;}; |
274,15 → 269,18 |
double _n2; |
double _n3; |
TVector3 _gap; |
double _plateWidth; |
|
int _fresnel; |
|
int _guideOn; |
double offsetY; |
double offsetZ; |
|
int _fresnel; |
int _plateOn; |
double _plateWidth; |
|
int _glassOn; |
double _glassD; |
int _guideOn; |
int _plateOn; |
|
}; |
|
435,6 → 433,7 |
TH2F* GetHActive() const {return hactive;}; |
TH2F* GetHLaser() const {return hlaser;}; |
TH2F* GetHDetector() const {return hdetector;}; |
TH2F* GetHPlate() const {return histoPlate;}; |
|
//double GetSiPM() const {return SiPM;}; |
//double GetM() const {return M;}; |