calibrationSQ13Trit.cxx 966 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
{
	gSystem->Load("CsICalib_C.so");

	//CsICalib cal;
	CsICalib cal("SQ13Trit.par");

//	cal.OpenSQ13TritTrees();
//	cal.LoadCutsSQ13T();

	TCanvas *c1 = new TCanvas("c1", "Plain");	
	TCanvas *c2 = new TCanvas("c2", "Plain");
	TCanvas *c3 = new TCanvas("c3", "Plain");

//	cal.PrintTrees();
//	cal.PrintFiles();
//	cal.PrintCuts();

	cal.PrintParameters();

//	cal.DrawBeam(c3, 3);

//	cal.DrawVariableCut("SQ13", 0, c1, "cutSQ13Trit");
//	cal.DrawVariableCut("SQ13", 1, c2, "cutSQ13Trit19", "cutSQ13Trit19Amp");
//	cal.DrawVariableCut("SQ13", 2, c3, "cutSQ13Trit24", "cutSQ13Trit24Amp");

	cal.GetPeakMean("SQ13", 0, 0, c1, "cutSQ13Trit14Amp", 256);
	cal.GetPeakMean("SQ13", 1, 1, c2, "cutSQ13Trit19Amp", 256);
	cal.GetPeakMean("SQ13", 2, 2, c3, "cutSQ13Trit24Amp", 256);


	TCanvas *cCal = new TCanvas("cCal", "calibration SQ13 Triton");
	cal.Calibrate(cCal);
	cal.SaveClbGraphs("gSQ13Trit.root", "RECREATE");
	cal.WriteClbParameters("calSQ13Trit.clb");

return;
}