I am trying to implement the vector of TVector3 which is a branch of a analysis tree. I am running simulation with Geant4 in which I am generating a final ROOT output file having ROOT Tree. With the previous post I came to know that one has to generate a dictionary. I do not having any idea how to do that although I have tries by creating a file LoadVect.hh as
if you want to perform I/O and have access interactively (in the interpreter or via pyroot) to the classes of your datamodel, you need to create dictionaries for those.
I think that here root.cern.ch/drupal/content/addi … t-classdef , if you also follow all of the hyperlinks, you will find all the information you need.
You basically need to:
[ul]
[li] Create a dictionary, i.e. an autogenerated c++ file, from your header using rootcint or genreflex[/li]
[li] To keep it simple, compile this file in the shared library where the compilation units of the classes for which you created the dictionary with the step above reside.[/li]
[li] Load the library using the “TSystem::Load” method when you need to perform I/O or interactive usage of the classes (there are ways to automate this, but in first approximation this is the way to go)[/li][/ul]