Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Common/Utils/include/CommonUtils/NameConf.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class NameConf : public o2::conf::ConfigurableParamHelper<NameConf>
// CTF Dictionary
static std::string getCTFDictFileName();

// O2 Raw TF Filename
static std::string getRawTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string& host, const std::string_view prefix = "o2_rawtf_dump");

// Default CCDB server
static std::string getCCDBServer();

Expand Down
5 changes: 5 additions & 0 deletions Common/Utils/src/NameConf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ std::string NameConf::getCTFFileName(uint32_t run, uint32_t orb, uint32_t id, co
return o2::utils::Str::concat_string(prefix, '_', fmt::format("run{:08d}_orbit{:010d}_tf{:010d}_{}", run, orb, id, host), ".root");
}

std::string NameConf::getRawTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string& host, const std::string_view prefix)
{
return o2::utils::Str::concat_string(prefix, '_', fmt::format("run{:08d}_orbit{:010d}_tf{:010d}_{}", run, orb, id, host), ".tf");
}

std::string NameConf::getCTFDictFileName()
{
return o2::utils::Str::concat_string(CTFDICT, ".root");
Expand Down
7 changes: 7 additions & 0 deletions Detectors/Raw/TFReaderDD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ o2_add_executable(tf-reader-workflow
SOURCES src/TFReaderSpec.cxx
src/tf-reader-workflow.cxx
PUBLIC_LINK_LIBRARIES O2::TFReaderDD)


o2_add_executable(tf-dump-workflow
COMPONENT_NAME raw
SOURCES src/RawTFDumpSpec.cxx
src/tf-data-dump-workflow.cxx
PUBLIC_LINK_LIBRARIES O2::TFReaderDD)
Loading