calibration1.cxx 953 Bytes
Newer Older
Kostyleva D.A's avatar
Kostyleva D.A committed
1
{
2 3
//	gSystem->Load("/home/dariak/AculUtils/libAculData.so");
	gSystem->Load("/home/vratik/workspace/AculUtils/libAculData.so");
Kostyleva D.A's avatar
Kostyleva D.A committed
4 5

	AculCalibration cal;
6
	cal.SetInputParameters("../../parforcal.par"); //from .par
7
//	cal.CalculateCalibParameters("clb08_0001.root", "SQ22", "AnalysisxTree", 100, 4095);
8
	cal.CalculateCalibParameters("../../clb_raw_files/clb08_0001.root", "SQ22", "AnalysisxTree", 100, 4095);
Kostyleva D.A's avatar
Kostyleva D.A committed
9

Kostyleva D.A's avatar
Kostyleva D.A committed
10 11
//	    CalculateCalibParameters(const char* inputfile, const char* block, const Int_t address, const char* treename, Int_t lowerchannel = 0, Int_t upperchannel = 4095, Int_t nEBins = 1000, Int_t lowersubaddress = 0, Int_t uppersubaddress = ADDRESSNUMBER-1);

12 13 14 15 16 17 18 19 20
//	TFile fr("SQ22[]E.root");
//	cout << fr.GetListOfKeys()->GetEntries() << " histograms" << endl;
//	TList *histList = fr.GetListOfKeys();
//	TH1 *hWork = 0;
//	for (Int_t i = 0; i < 32; i++)
//	{
//		fr.GetObject(histList->At(i)->GetName(), hWork);
//		cal->PeaksFitting(hWork);
//	}
Kostyleva D.A's avatar
Kostyleva D.A committed
21
}