Project

General

Profile

Bug #1137

ROOT and std::vector

Added by Dobbs, Adam over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Richards, Alexander
Category:
Tracker
Target version:
Start date:
26 September 2012
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

I am attempting to add a std::vector<double> member to one of my classes and process it with the JsonCppProcessor framework. Everything seems to work, except for the final ROOT output. The data is successfully passed from a mapper to a reducer and appears when I use json as the output format. I have added a typedef to the class to disguise the fact that it is a stl container, but I'm still not seeing any data when I do a TTree::Scan. In addition, the member appears as a leaf in the TBrowser and is not browsable / split-able. I attach the output in json and root as an example (the tracker branch will be needed to read the root, to get the latest dictionary definitions). The member in question is:

Spill._recon._scifi_event._scifihelicalprtracks._phi_i

phi_i being the stl vector. I have also tried converting from json to root using the converter utility, but with no joy.

Thanks.


Files

maus_output.json (3.56 MB) maus_output.json Dobbs, Adam, 26 September 2012 18:34
maus_output.root (536 KB) maus_output.root Dobbs, Adam, 26 September 2012 18:34
SciFiHelicalPRTrack.hh (4.74 KB) SciFiHelicalPRTrack.hh Dobbs, Adam, 27 September 2012 12:22
Alex.root (5.35 KB) Alex.root Richards, Alexander, 28 September 2012 09:44

Also available in: Atom PDF