Skip to content
Snippets Groups Projects
Commit 93ab96e2 authored by Norbert Herrmann's avatar Norbert Herrmann Committed by Pierre-Alain Loizeau
Browse files

[TOF] Add TimeOffset getters and direct setter in Unpack templates

parent ce9a34d9
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !882. Comments created here will be created in the context of that merge request.
......@@ -361,6 +361,8 @@ public:
initOk &= initParContainers();
LOG(info)<< fName <<"::SystemTimeOffset:" << fSystemTimeOffset;
return initOk;
}
......@@ -388,6 +390,9 @@ public:
/** @brief Set the global system time offset @remark in princible this should go to parameters */
void SetSystemTimeOffset(int32_t value) { fSystemTimeOffset = value; }
/** @brief Get the global system time offset @remark in princible this should go to parameters */
int32_t GetSystemTimeOffset() { return fSystemTimeOffset; }
/** @brief Set the start time of the current TS */
void SetTsStartTime(size_t value) { fTsStartTime = value; }
......
......@@ -357,6 +357,21 @@ public:
/** @brief Set the global system time offset @remark in princible this should go to parameters */
void SetSystemTimeOffset(int32_t value) { fSystemTimeOffset = value; }
/** @brief Get the global system time offset @remark in princible this should go to parameters */
int32_t GetSystemTimeOffset() { return fSystemTimeOffset; }
/** @brief Set the global system time offset and set it directly in the algo if possible @remark in princible this should go to parameters */
void SetSystemTimeOffsetAlgo(int32_t value) {
fSystemTimeOffset = value;
if(nullptr != fAlgo ) {
// Try to apply it immediately to the algo
fAlgo->SetSystemTimeOffset( value );
}
else {
LOG(warn) << fName << "::SetSystemTimeOffsetAlgo() Algo not available, value saved in case later available";
}
}
/** @brief Set the value of the flag to ignore the overlap microslices @remark in princible this should go to parameters */
void SetDoIgnoreOverlappMs(bool value = false) { fDoIgnoreOverlappMs = value; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment