Some necessary but not sufficient changes to allow MakeClass to work with TAV5 trees. Some changes in Offline are needed too, I will make that PR as well.
I have gotten the output of MakeClass to compile after these changes by doing the following:
-trkana->MakeClass("TAV5")
-Checkout Offline
-add the following TrkAna includes to TAV5.h:
include "TrkAna/inc/TrkInfo.hh"
include "TrkAna/inc/TrkStrawHitInfo.hh"
include "TrkAna/inc/TrkStrawHitInfoMC.hh"
include "TrkAna/inc/TrkStrawMatInfo.hh"
include "TrkAna/inc/SimInfo.hh"
include "TrkAna/inc/MCStepInfo.hh"
extend the root include path with gInterpreter->AddIncludePath("./")
compile with clang (ie .L TAV5.C+)
While this compiles without warning, and the class can be initialized with a TrkAna tree, the resulting object segvs immediately when invoking 'Loop'. More work is needed
Some necessary but not sufficient changes to allow MakeClass to work with TAV5 trees. Some changes in Offline are needed too, I will make that PR as well. I have gotten the output of MakeClass to compile after these changes by doing the following: -trkana->MakeClass("TAV5") -Checkout Offline -add the following TrkAna includes to TAV5.h:
include "TrkAna/inc/TrkInfo.hh"
include "TrkAna/inc/TrkStrawHitInfo.hh"
include "TrkAna/inc/TrkStrawHitInfoMC.hh"
include "TrkAna/inc/TrkStrawMatInfo.hh"
include "TrkAna/inc/SimInfo.hh"
include "TrkAna/inc/MCStepInfo.hh"