From 3b7f7a0cfb56dbac05318b27494987e5083f1cd1 Mon Sep 17 00:00:00 2001 From: Alvaro Ezquerro Date: Fri, 17 Jan 2025 11:30:04 +0100 Subject: [PATCH] improve documentation --- .../analysis/src/TRestEventTimeSelectionProcess.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/framework/analysis/src/TRestEventTimeSelectionProcess.cxx b/source/framework/analysis/src/TRestEventTimeSelectionProcess.cxx index e62ffaab8..f3ef89afc 100644 --- a/source/framework/analysis/src/TRestEventTimeSelectionProcess.cxx +++ b/source/framework/analysis/src/TRestEventTimeSelectionProcess.cxx @@ -151,6 +151,11 @@ void TRestEventTimeSelectionProcess::InitProcess() { fNEventsSelected = 0; } +/////////////////////////////////////////////// +/// \brief Function to calculate the total time in seconds of all the time ranges +/// (active or dead periods of time). It takes into account the time offset, +/// and both the start and end margins. +/// Double_t TRestEventTimeSelectionProcess::CalculateTotalTimeInSeconds() { Double_t totalTime = 0; for (auto id : fStartEndTimes) {