Skip to content
Snippets Groups Projects

Added YAML-configurable system offset TRD unpacker in cbm::algo.

Merged Dominik Smith requested to merge d.smith/cbmroot:TrdTimeOffset into master
3 files
+ 9
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
0
@@ -87,7 +87,13 @@ namespace cbm::algo::trd
void Init(const std::map<size_t, std::map<size_t, std::map<size_t, size_t>>>& addressMap,
std::map<size_t, std::map<size_t, std::map<size_t, std::map<size_t, size_t>>>>& channelMap);
/** @brief Get system time offset **/
int64_t GetSystemTimeOffset() { return fSystemTimeOffset; };
private:
// --- System time offset
int64_t fSystemTimeOffset = 0;
// --- TRD readout map
// --- Map index: (equipment, crob, elink), map value: (ASIC address)
std::map<uint16_t, std::vector<std::vector<uint16_t>>> fReadoutMap = {}; //!
@@ -100,6 +106,7 @@ namespace cbm::algo::trd
std::map<uint32_t, std::vector<int32_t>> fElinkTimeOffsetMap;
CBM_YAML_PROPERTIES(
yaml::Property(&ReadoutConfig::fSystemTimeOffset, "timeOffset", "System time offset for TRD1D"),
yaml::Property(&ReadoutConfig::fReadoutMap, "readoutMap", "TRD readout map", {}, YAML::Hex),
yaml::Property(&ReadoutConfig::fChannelMap, "channelMap", "TRD channel map"),
yaml::Property(&ReadoutConfig::fElinkTimeOffsetMap, "elinkTimeOffset", "TRD time offset per CRI&Elink combination")
Loading