From 338928348d2b377f1f8a17743c4066c941124fa2 Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Sat, 22 Oct 2016 11:49:05 +0300 Subject: [PATCH] Macros and data files for tests added. --- macros/myMacros/SQ13Alpha.par | 92 +++++++++++++++++++++++++++++++++++ macros/myMacros/cuts | 1 + macros/myMacros/data | 1 + macros/myMacros/parTest.cxx | 34 +++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 macros/myMacros/SQ13Alpha.par create mode 120000 macros/myMacros/cuts create mode 120000 macros/myMacros/data create mode 100644 macros/myMacros/parTest.cxx diff --git a/macros/myMacros/SQ13Alpha.par b/macros/myMacros/SQ13Alpha.par new file mode 100644 index 0000000..43948c7 --- /dev/null +++ b/macros/myMacros/SQ13Alpha.par @@ -0,0 +1,92 @@ +energies 4 #number of energy points +crystals 16 #number of crystals in detector +files 4 +data/csi_13_Ealpha16.root +data/csi_13_Ealpha21.root +data/csi_13_Ealpha26.root +data/csi_13_Ealpha30.root +#keyword; filename; number of cuts in file +cutFile cuts/cutsSQ13Alpha.root 8 +cutsSQ13Alpha16 +cutSQ13Alpha21 +cutSQ13Alpha26 +cutSQ13Alpha30 +cutSQ13Alpha16Amp +cutSQ13Alpha21Amp +cutSQ13Alpha26Amp +cutSQ13Alpha30Amp +#detector particle +detector SQ13 Alpha +#energy [MeV/A] +energy 66.542 +#channel minimum maximum +0 650 830 +1 920 1150 +2 850 1000 +3 1200 1400 +4 960 1100 +5 700 850 +6 650 800 +7 1040 1240 +8 850 1050 +9 650 850 +10 950 1200 +11 900 1100 +12 740 860 +13 1140 1380 +14 420 500 +15 800 1000 +#CsI2, energy ~ 21 MeV/A, Alpha +energy 85.437 +0 1050 1200 +1 1350 1550 +2 1190 1400 +3 1650 1950 +4 1300 1500 +5 950 1100 +6 900 1050 +7 1450 1700 +8 1150 1400 +9 900 1100 +10 1350 1600 +11 1250 1500 +12 950 1200 +13 1600 1860 +14 550 640 +15 1150 1350 +#CsI2, energy ~ 26 MeV/A, Alpha +energy 105.5 +0 1300 1600 +1 1750 2050 +2 1560 1800 +3 2250 2500 +4 1720 2000 +5 1200 1450 +6 1160 1400 +7 1800 2200 +8 1600 1850 +9 1200 1400 +10 1750 2100 +11 1650 1900 +12 1250 1600 +13 2150 2450 +14 690 900 +15 1500 1700 +#CsI2, energy ~ 30 MeV/A, Alpha +energy 119.54 +0 1450 1750 +1 2200 2450 +2 1900 2150 +3 2590 3000 +4 2100 2350 +5 1500 1650 +6 1400 1600 +7 2250 2550 +8 1900 2150 +9 1400 1600 +10 2050 2600 +11 1950 2200 +12 1580 1710 +13 2550 2900 +14 1100 1250 +15 1800 2000 \ No newline at end of file diff --git a/macros/myMacros/cuts b/macros/myMacros/cuts new file mode 120000 index 0000000..7667990 --- /dev/null +++ b/macros/myMacros/cuts @@ -0,0 +1 @@ +../calibration_CsI/cuts/ \ No newline at end of file diff --git a/macros/myMacros/data b/macros/myMacros/data new file mode 120000 index 0000000..3080039 --- /dev/null +++ b/macros/myMacros/data @@ -0,0 +1 @@ +../calibration_CsI/data/ \ No newline at end of file diff --git a/macros/myMacros/parTest.cxx b/macros/myMacros/parTest.cxx new file mode 100644 index 0000000..708663f --- /dev/null +++ b/macros/myMacros/parTest.cxx @@ -0,0 +1,34 @@ +//#include "../../AculCalib/AculCalPars.h" + +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(); + +// c.DrawVariable(.........) + +// c.PrintFiles(); +// c.PrintCuts(); + +// TCanvas *c1 = new TCanvas("c1", "Plain"); +// c.GetPeakMean("SQ13", 0, 0, c1, "cutSQ13Alpha16Amp", 256); + +// TCanvas *cCal = new TCanvas("cCal", "calibration Alpha"); +// cal.Calibrate(cCal); + + return; +} -- 2.18.1