parTest.cxx 1.08 KB
Newer Older
1
//#include "../../AculCalib/AculCalPars.h"
2 3
//#include "../../AculCalib/AculCalibScint.h"
//#include "TSystem.h"
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

void parTest()
{
	gSystem->Load("../../libAculCalib.so");

	AculCalParsScint p;
	p.SetParFile("SQ13Alpha.par");

	AculCalibScint c;
	c.SetParFile("SQ13Alpha.par");
	c.Init();
//	return;

//	c.PrintParameters("all");

//	c.OpenFiles();

//	c.LoadTrees();
	c.PrintTrees();

24 25 26 27 28 29
	TCanvas *c1 = new TCanvas("c1", "Plain");
	TCanvas *c2 = new TCanvas("c2", "Plain");
	TCanvas *c3 = new TCanvas("c3", "Plain");
	TCanvas *c4 = new TCanvas("c4", "Plain");
//	c.DrawVariable("SQ13", 2, c1);
//	c.DrawBeam(c1, 4, "SQ13");
30

31 32 33 34 35 36
	c.GetPeakMean("SQ13", 0, 0, c1, "cutSQ13Alpha16Amp", 256);
	c.GetPeakMean("SQ13", 1, 1, c2, "cutSQ13Alpha21Amp", 256);
	c.GetPeakMean("SQ13", 2, 2, c3, "cutSQ13Alpha26Amp", 256);
	c.GetPeakMean("SQ13", 3, 3, c4, "cutSQ13Alpha30Amp", 256);

//return;
37 38 39 40 41 42
//	c.PrintFiles();
//	c.PrintCuts();

//	TCanvas *c1 = new TCanvas("c1", "Plain");
//	c.GetPeakMean("SQ13", 0, 0, c1, "cutSQ13Alpha16Amp", 256);

43 44
	TCanvas *cCal = new TCanvas("cCal", "calibration Alpha");
	c.Calibrate(cCal);
45 46 47

	return;
}