18#include "RebdsimTypes.hh"
21#include "BDSOutputROOTEventRunInfo.hh"
22#include "BDSOutputROOTEventHistograms.hh"
23#include "BDSVersionData.hh"
34Run::Run(
bool debugIn):
39 dataVersion(BDSIM_DATA_VERSION)
52 dataVersion(dataVersionIn)
68 const RBDS::VectorString* branchesToTurnOn)
71 t->SetBranchStatus(
"*",
false);
74 {t->SetBranchStatus(
"*",
true);}
75 else if (branchesToTurnOn)
77 for (
const auto& name : *branchesToTurnOn)
79 std::string nameStar = name +
"*";
81 {std::cout <<
"Run::SetBranchAddress> Turning on branch \"" << nameStar <<
"\"" << std::endl;}
82 t->SetBranchStatus(nameStar.c_str(),
true);
87 {t->SetBranchAddress(
"Info.", &
Info);}
89 {t->SetBranchAddress(
"Summary.", &
Summary);}
90 t->SetBranchAddress(
"Histos.", &
Histos);
Holder for a set of histograms to be stored.
Information pertaining to a run.
Class to overlay a run from a ROOT file with.
BDSOutputROOTEventHistograms * Histos
Member that ROOT can map file data to locally.
void SetBranchAddress(TTree *t, bool allBranchesOn=true, const RBDS::VectorString *branchesToTurnOn=nullptr)
Map the ROOT file to members in this class.
BDSOutputROOTEventRunInfo * Summary
Member that ROOT can map file data to locally.
BDSOutputROOTEventRunInfo * Info
For backwards compatibiliy.