The ROOT macros and TXPConfig are intended to be used alongside the package of functions provided from the FIPPS collaboration at ILL.
-
Convert
.lstevent lists into root TTrees usingLst2Root.cpp -
Calibrate one channel by hand: ..* Uncalibrated spectra are contained under
QA/ADCSpectraNoCal..* Create a masterXPConfig.txt, and copy each coefficent to each channel.Cal0is slope, andCal1is offset. -
Use
EngMatrix.Cto make an energy vs. channel histogram. A.rootfile is automatically exported. -
Use
LinearGainMatch.Cto makeXPLinear.txt. The following transition energies can be used depending on the source.
| Isotope | Energy | Notes |
|---|---|---|
| 152Eu | 121.7817 (3) keV | |
| 1408.013 (3) keV | ||
| 28Al | 1778.987 (15) keV | Beta Decay of 28Al |
| 7724.034 (7) keV |
When satisfied with the linear gain match. Save XPLinear.txt as XPConfig.txt in the XPConfigs/ folder
-
Fill out the
XPGeometry.txtLUT located inXPConfigs/according to your experiment. -
Use
GainMatchRoots.Cto gain match each isotope using the above suggested transition energies. Check the energy matricies in each root file containing the source TTrees. -
Modify
fit_macro/Al-Residual-Fits.Cto better fit your experiment. Then useAnalyzeResiduals.Cto create theXPResiduals.txtfile. Examine theResidualDiagnostics.rootto inspect the quality of the automatic fits. -
Examine 152Eu with the residuals, and check if it makes sense.
-
Gain match experiment, and produce TTree's containing calibrated energies.
-
Analyize!
The software to turn the unordered .lst files into sorted root TTree's can be found at,
In particular, the two main files to generate the TTrees are CoincidenceOffline.cpp and Lst2Root.cpp.
TODO: Add more details about creating TTrees using the lst-data-process package.
After each .lst file has been transformed into a sorted TTree, the .C macros can be used to produce 1D and 2D analysis histograms. Most macros need to be loaded into root with .L <macro>.C++.
All the ROOT macros use TFileCollections to define the input list of .root files. File collections can be generated using find. For example,
$ find /data3/illdata/rootfiles/*.root > rootlist.txt
And then setting the input argument to rootlist.txt.
- Create a nice folder structure
- Remove hardcoded text links
- Add lots of documentation to make repo useful
- Make the macros more user friendly and make it easier to do partial analysis with different XPConfigs.
- Add more geometry information and a macro to compute angular correlations
- Create a better gain matching system. It does a good job, but it could be much better!