The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit 3bb37c2b authored by legoc's avatar legoc
Browse files

Corrected time base missing in JSON.

parent 9b2e62c0
......@@ -104,6 +104,9 @@ uint32_t readListModeContextFromBinary(ListModeContext & listModeContext, uint32
boost::property_tree::ptree writeListModeContextToPropertyTree(const ListModeContext & listModeContext) {
ptree root;
root.put("version", listModeContext.version);
root.put("timeBase", listModeContext.timeBase);
root.put("nbEvents", listModeContext.nbEvents);
ptree crateBoard;
......@@ -134,6 +137,8 @@ boost::property_tree::ptree writeListModeContextToPropertyTree(const ListModeCon
void readListModeContextFromPropertyTree(ListModeContext & listModeContext, const boost::property_tree::ptree& data) {
listModeContext.version = data.get<uint32_t>("version");
listModeContext.timeBase = data.get<uint32_t>("timeBase");
listModeContext.nbEvents = data.get<uint32_t>("nbEvents");
ptree crateBoard = data.get_child("crateboard");
......
......@@ -136,6 +136,7 @@ int main(int argc, char * argv[]) {
string data;
while (subscriber->receiveBinary(data)) {
int32_t blockSize = data.size() / sizeof(int32_t);
int32_t * block = const_cast<int32_t *>(reinterpret_cast<const int32_t *>(data.c_str()));
......
......@@ -327,7 +327,8 @@ int main(int argc, char * argv[]) {
}
// Select the data to plot.
DataInfo dataInfo = selectDataInfo(boardType);
//DataInfo dataInfo = selectDataInfo(boardType);
DataInfo dataInfo = ENERGY;
// events
int32_t eventId = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment