19 void AddBranch(
const std::string& branch_name);
23 void Finish()
override;
25 void SetOutputName(std::string file, std::string tree) {
26 file_name_ = std::move(file);
27 tree_name_ = std::move(tree);
30 void SetFieldsToIgnore(
const std::vector<std::string>&& fields_to_ignore);
33 TFile* file_{
nullptr};
34 TTree* plain_tree_{
nullptr};
36 std::string file_name_{
"PlainTree.root"};
37 std::string tree_name_{
"PlainTree"};
38 std::string branch_name_;
40 std::vector<float> vars_{};
41 std::vector<std::string> fields_to_ignore_{};