19#include "BDSOutputROOTEventOptions.hh"
31Options::Options(
bool debugIn):
44 const RBDS::VectorString* branchesToTurnOn)
47 t->SetBranchStatus(
"*",
false);
50 {t->SetBranchStatus(
"*",
true);}
51 else if (branchesToTurnOn)
53 for (
auto name : *branchesToTurnOn)
55 std::string nameStar = name +
".*";
57 {std::cout <<
"Turning on branch \"" << nameStar <<
"\"" << std::endl;}
58 t->SetBranchStatus(nameStar.c_str(),
true);
62 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.