|
5 | 5 | #include "RAWDataHeader.h" |
6 | 6 |
|
7 | 7 |
|
8 | | -#include <Configuration/Visitor.h> |
9 | | -#include <Configuration/Tree.h> |
10 | | - |
11 | 8 | // function to convert a string to a 64-bit integer value |
12 | 9 | // allowing usual "base units" in suffix (k,M,G,T) |
13 | 10 | // input can be decimal (1.5M is valid, will give 1.5*1024*1024) |
@@ -61,23 +58,6 @@ std::string ReadoutUtils::NumberOfBytesToString(double value,const char*suffix) |
61 | 58 | return std::string(bufStr); |
62 | 59 | } |
63 | 60 |
|
64 | | -void convertConfigurationNodeToPTree(const o2::configuration::tree::Node& node, boost::property_tree::ptree &pt, std::string basePath="", const char separator='.') |
65 | | -{ |
66 | | - o2::configuration::visitor::apply(node, |
67 | | - [&](const o2::configuration::tree::Branch& branch) { |
68 | | - if (basePath.length()!=0) {basePath+=separator;} |
69 | | - for (const auto& keyValuePair : branch) { |
70 | | - convertConfigurationNodeToPTree(keyValuePair.second, pt, basePath+keyValuePair.first); |
71 | | - } |
72 | | - }, |
73 | | - [&](const o2::configuration::tree::Leaf& leaf) { |
74 | | - std::string value= o2::configuration::tree::convert<std::string>(leaf); |
75 | | - pt.put(basePath,value); |
76 | | - } |
77 | | - ); |
78 | | -} |
79 | | - |
80 | | - |
81 | 61 | void dumpRDH(o2::Header::RAWDataHeader *rdh) { |
82 | 62 | printf("RDH:\tversion=%d\theader size=%d\tblock length=%d\n",(int)rdh->version,(int)rdh->headerSize,(int)rdh->blockLength); |
83 | 63 | printf("\tTRG orbit=%d bc=%d\n",(int)rdh->triggerOrbit,(int)rdh->triggerBC); |
|
0 commit comments