From e42affc6f95340a2f98f1a379fdb6d62a88dc78e Mon Sep 17 00:00:00 2001 From: tjames <tjames@cern.ch> Date: Tue, 2 Apr 2024 19:22:06 +0200 Subject: [PATCH] add correct NLostEvents in EoLS file --- src/OutputFileHandler.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OutputFileHandler.cc b/src/OutputFileHandler.cc index 93717bbb..2e82cdd9 100644 --- a/src/OutputFileHandler.cc +++ b/src/OutputFileHandler.cc @@ -208,11 +208,11 @@ void OutputFileHandler::write_EoLS_file(uint32_t ls) { EoLS_file.open(full_filename.c_str(), std::ios_base::out); // TODO: To me it looks like there are more fields than intended in this file... - EoLS_file_string_stream << "{\n \"data\":[\"" << ls_NOrbits_ << "\",\"" // NEvents - << 1 + max_index_per_ls_ << "\",\"" // NFiles - << constants::N_orbits_per_lumisection << "\"," // Total Events - << "\"0\",\"" // NLost Events - << ls_file_size_ << "\"],\n \"definition\":\"" // NBytes + EoLS_file_string_stream << "{\n \"data\":[\"" << ls_NOrbits_ << "\",\"" // NEvents + << 1 + max_index_per_ls_ << "\",\"" // NFiles + << constants::N_orbits_per_lumisection << "\",\"" // Total Events + << constants::N_orbits_per_lumisection - ls_NOrbits_ << "\",\"" // NLost Events + << ls_file_size_ << "\"],\n \"definition\":\"" // NBytes << "/fff/ramdisk/run" << std::setfill('0') << std::setw(6) << current_run_number_ << "/jsd/EoLS.jsd\",\n \"source\":\"l1scout\"\n}"; @@ -245,4 +245,4 @@ void OutputFileHandler::write_EoR_file() { << current_run_number_ << "/jsd/EoR.jsd\",\n \"source\":\"l1scout\"\n}"; EoR_file << EoR_file_string_stream.str(); EoR_file.close(); -} \ No newline at end of file +} -- GitLab