Skip to content

Commit 8b51409

Browse files
committed
Raw TF dump workflow
1 parent 85ac260 commit 8b51409

6 files changed

Lines changed: 538 additions & 0 deletions

File tree

Common/Utils/include/CommonUtils/NameConf.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ class NameConf : public o2::conf::ConfigurableParamHelper<NameConf>
100100
// CTF Dictionary
101101
static std::string getCTFDictFileName();
102102

103+
// O2 Raw TF Filename
104+
static std::string getRawTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string& host, const std::string_view prefix = "o2_rawtf_trig");
105+
103106
// Default CCDB server
104107
static std::string getCCDBServer();
105108

Common/Utils/src/NameConf.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ std::string NameConf::getCTFFileName(uint32_t run, uint32_t orb, uint32_t id, co
9595
return o2::utils::Str::concat_string(prefix, '_', fmt::format("run{:08d}_orbit{:010d}_tf{:010d}_{}", run, orb, id, host), ".root");
9696
}
9797

98+
std::string NameConf::getRawTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string& host, const std::string_view prefix)
99+
{
100+
return o2::utils::Str::concat_string(prefix, '_', fmt::format("run{:08d}_orbit{:010d}_tf{:010d}_{}", run, orb, id, host), ".tf");
101+
}
102+
98103
std::string NameConf::getCTFDictFileName()
99104
{
100105
return o2::utils::Str::concat_string(CTFDICT, ".root");

Detectors/Raw/TFReaderDD/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ o2_add_executable(tf-reader-workflow
2626
SOURCES src/TFReaderSpec.cxx
2727
src/tf-reader-workflow.cxx
2828
PUBLIC_LINK_LIBRARIES O2::TFReaderDD)
29+
30+
31+
o2_add_executable(tf-dump-workflow
32+
COMPONENT_NAME raw
33+
SOURCES src/RawTFDumpSpec.cxx
34+
src/tf-data-dump-workflow.cxx
35+
PUBLIC_LINK_LIBRARIES O2::TFReaderDD)

0 commit comments

Comments
 (0)