~mwinter4/maus/ckov-update

« back to all changes in this revision

Viewing changes to src/output/OutputCppRoot/OutputCppRoot.cc

  • Committer: Chris Rogers
  • Date: 2013-03-19 14:21:55 UTC
  • mfrom: (659.1.63 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20130319142155-65vwtifralro5ukv
Tags: MAUS-v0.5.1
MAUS-v0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        _outfile->open
81
81
              (_fname.c_str(), data_type.c_str(), "MAUS output data", "UPDATE");
82
82
        _outfile_branch = data_type;
83
 
        (*_outfile) << branchName(branch_name.c_str()) << data_cpp;
84
83
    }
85
 
    data_cpp->SetEvent(ConverterT()(&data_json));
 
84
    (*_outfile) << branchName(branch_name.c_str()) << data_cpp;
 
85
    ConverterT conv;
 
86
    data_cpp = conv.convert(&data_json);
86
87
    if (data_cpp->GetEvent() == NULL) {  // failed on conversion
87
88
        return false;
88
89
    }