calibrationSQ23Alpha.cxx 1.64 KB
Newer Older
1
{
2
	gSystem->Load("/home/dariak/AculUtils/libAculData.so");
3 4

//	CsICalib cal;
5
	AculCalibCsI cal("parameters/SQ23Alpha.par");
6 7 8 9 10 11 12 13 14 15


//	cal.PrintCuts();

//return;

	TCanvas *c1 = new TCanvas("c1", "Plain");	
	TCanvas *c2 = new TCanvas("c2", "Plain");
	TCanvas *c3 = new TCanvas("c3", "Plain");
	TCanvas *c4 = new TCanvas("c4", "Plain");
16 17
	cal.PrintParameters();
//	cal.DrawBeam(c4, 4, "SQ23");
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

return;

//	cal.ReadParFile("SQ23Alpha.par");
//	cal.OpenTrees();

//	cal.ReadClbParameters("calSQ23Alpha.clb");
//	cal.DrawEnergyDeposite("SQ23", c4, 3, "same");

//return;

//	cal.DrawVariable("SQ23", 1, c1);
//	cal.DrawVariable("TDC", 2, c2, 0, 700);
//	cal.DrawVariable("QDC", 3, c3);
//return;

//	cal.DrawVariableCut("SQ23", 0, c1, "cutAlpha16", "cutAlpha16Amp");
//	cal.DrawVariableCut("SQ23", 0, c2, "cutAlpha20", "cutAlpha20Amp");
//	cal.DrawVariableCut("SQ23", 0, c3, "cutAlpha25", "cutAlpha25Amp");
//	cal.DrawVariableCut("SQ23", 0, c4, "cutAlpha30", "cutAlpha30Amp");

//	cal.GetPeakMean("SQ23", 0, c1, "cutAlpha16Amp", minAlpha16, maxAlpha16);
//	cal.GetPeakMean("SQ23", 1, c2, "cutAlpha20Amp", minAlpha20, maxAlpha20);
//	cal.GetPeakMean("SQ23", 2, c3, "cutAlpha25Amp", minAlpha25, maxAlpha25);
//	cal.GetPeakMean("SQ23", 3, c4, "cutAlpha30Amp", minAlpha30, maxAlpha30);

	cal.GetPeakMean("SQ23", 0, 0, c1, "cutAlpha16Amp");
	cal.GetPeakMean("SQ23", 1, 1, c2, "cutAlpha20Amp");
	cal.GetPeakMean("SQ23", 2, 2, c3, "cutAlpha25Amp");
	cal.GetPeakMean("SQ23", 3, 3, c4, "cutAlpha30Amp");

	TCanvas *cCal = new TCanvas("cCal", "calibration Alpha");
	cal.Calibrate(cCal);
//	cal.SaveClbGraphs("gSQ23Alpha.root", "RECREATE");
//	cal.WriteClbParameters("calSQ23Alpha.clb");

return;
}