20#include "BDSOutputROOTEventOptions.hh"
32Options::Options(
bool debugIn):
45 const RBDS::VectorString* branchesToTurnOn)
48 t->SetBranchStatus(
"*",
false);
51 {t->SetBranchStatus(
"*",
true);}
52 else if (branchesToTurnOn)
54 for (
auto name : *branchesToTurnOn)
56 std::string nameStar = name +
".*";
58 {std::cout <<
"Turning on branch \"" << nameStar <<
"\"" << std::endl;}
59 t->SetBranchStatus(nameStar.c_str(),
true);
63 t->SetBranchAddress(
"Options.",&
options);
Class to store all options for a BDSIM run.
void SetBranchAddress(TTree *t, bool allBranchesOn=true, const RBDS::VectorString *branchesToTurnOn=nullptr)
Set the branch addresses to address the contents of the file.
BDSOutputROOTEventOptions * options
Member that ROOT can map file data to locally.