70 likes | 93 Views
Basic Data Processing Chain. Test. ChipProgramNew.C. Root Output File. decoderNew.c. Data Ntuple. Histograms. LiveTime.C (macro). Guassian Fits. Root Output File. ChipProgramNew.C. Inputs (defaults underlined): Signal File Name Baseline File Name Output File Name
E N D
Basic Data Processing Chain Test ChipProgramNew.C Root Output File decoderNew.c Data Ntuple Histograms LiveTime.C (macro) Guassian Fits Root Output File
ChipProgramNew.C • Inputs (defaults underlined): • Signal File Name • Baseline File Name • Output File Name • Data Format: “old” or “new” • Fitting Option: “yes” or “no” • Number of Channels to Process (up to 64) • Dac value (Plot all)
ChipProgramNew.C • Outputs: • Baseline Ntuple • Signal Ntuple • Up to 64 baseline histograms in root format • Up to 64 signal histograms in root format • Up to 64 shifted signal histograms fit to 2 gaussian curves • Distributions of Mean, Sigma, Gain, and Rate as histograms in root format
decoderNew.c • Function called by ChipProgramNew.C • Reads and parses a (csv) data file and builds an Ntuple • Correctly processes two different file formats • Does not currently support trigger packet processing
Data Formats • “Old” data format (decimal) • “New” data format (hexidecimal) 3,1,1202489710,1470920763,1555,1558,1551,1564,1566,1545,…1557,600,5 3,1,1202489710,1472170763,1552,1564,1552,1562,1568,1547,…,1558,600,5 3,1,1202489710,1473420763,1552,1560,1549,1563,1565,1541,…,1557,600,5 3,1,1202489710,1474670764,1554,1559,1549,1562,1566,1542,…,1556,600,5 … 8308,5a35,88c6,612,1,8a3,2,1202942930,1 8308,5a36,7d22,616,1,89b,2,1202942930,1 8308,5a37,7171,617,1,89e,2,1202942930,1 8308,5a38,65af,616,1,89d,2,1202942930,1 ….
New DAQ • We’ve moved to a new DAQ that can handle multiple boards and multiple PMTs • New directory structure accounts for multiple usb boards and PMTs attached • This DAQ handles data transfer with the usb board more intelligently than previous version • Already up and running at Nevis and Barnard
Future work • Move from the limited NTuple data structure to a more versatile TTree data structure • Include event header information in each data file to be read in and stored with the event in the TTree • Begin Maroc2 chip cross talk measurements at Barnard