This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
pre-unpacker [2017/06/11 17:32] pereira [How the Sweeper Pre-unpacker works] |
pre-unpacker [2017/06/26 13:24] (current) pereira [Substructure fpic] |
||
|---|---|---|---|
| Line 32: | Line 32: | ||
| ===== Using the Sweeper Pre-unpacker ===== | ===== Using the Sweeper Pre-unpacker ===== | ||
| - | In order to include the Sweeper Pre-unpacker, | + | In order to include the Sweeper Pre-unpacker, |
| * The analysis-software compiler must include the library **libSweeperUnpacker.so** along with some header files. Their current location (June 2017) is ''/ | * The analysis-software compiler must include the library **libSweeperUnpacker.so** along with some header files. Their current location (June 2017) is ''/ | ||
| Line 44: | Line 44: | ||
| <code cpp> | <code cpp> | ||
| #include < | #include < | ||
| + | #include < | ||
| #include < | #include < | ||
| Line 77: | Line 78: | ||
| - | In the above example, all the unpacked data are encoded in the structure | + | In the above example, all the unpacked data are encoded in the structure |
| ==== Substructure fpic ==== | ==== Substructure fpic ==== | ||
| This substructure contains information about the focal-plane ion chamber | This substructure contains information about the focal-plane ion chamber | ||
| * **fpic.hasdata** (bool): logic variable which is TRUE when the structure contains valid data | * **fpic.hasdata** (bool): logic variable which is TRUE when the structure contains valid data | ||
| - | * **fpsci.raw[0-15]** (uint16_t): energy array (Phillips 7164 ADC module) from each of the 16 detector pads | + | * **fpic.raw[0-15]** (uint16_t): energy array (Phillips 7164 ADC module) from each of the 16 detector pads |
| Line 112: | Line 113: | ||
| * **mtdc.hasdata** (bool): logic variable which is TRUE when the structure contains valid data | * **mtdc.hasdata** (bool): logic variable which is TRUE when the structure contains valid data | ||
| - | * **hits.data[0-31]** (uint16_t): array with number of " | + | * **hits[0-31]** (uint16_t): array with number of " |
| - | * **hits.raw[0-31]** (uint16_t): array with time of first hit of each channel | + | * **raw[0-31]** (uint16_t): array with time of first hit of each channel |
| - | * **hits.data[0-31][maximum number-of-hits=31]** (uint16_t): array with times for each hit and channel | + | * **data[0-31][maximum number-of-hits=31]** (uint16_t): array with times for each hit and channel |