Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 69 → Rev 70

/lightguide/trunk/include/guide.h
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;};
/lightguide/trunk/include/RTUtil.h
8,35 → 8,32
#include "TStyle.h"
#include "TDatime.h"
 
 
 
//##########################################################################################
// nastavi nastavitve izrisa, klicem z RTSetStyle(gStyle)
void RTSetStyle(TStyle *style);
//##########################################################################################
 
// poenostavi delo s TCanvas
class RTCanvas
{
protected:
TCanvas *can;
TPad *pad;
TPaveLabel *title, *date;
 
public:
RTCanvas();
RTCanvas(char *w_title, char *c_title, int x_min, int y_min, int x_size, int y_size);
~RTCanvas() {
delete can;
delete pad;
delete title;
delete date;
}
void Divide(int nx, int ny);
void Divide(int np);
TPad* cd(int i);
void SaveAs(const char *filename);
void Update();
protected:
TCanvas *can;
TPad *pad;
TPaveLabel *title, *date;
};
//##########################################################################################
 
 
#endif