From eff5017a3c9d4a5e2dd02983147a3f319ddaacbe Mon Sep 17 00:00:00 2001 From: David Nathan Brown Date: Thu, 14 Sep 2023 11:39:44 -0700 Subject: [PATCH] Fix bugs --- utils/TrkAnaUtils.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TrkAnaUtils.C b/utils/TrkAnaUtils.C index 1c5dc0c..50f575b 100644 --- a/utils/TrkAnaUtils.C +++ b/utils/TrkAnaUtils.C @@ -31,8 +31,8 @@ class TrkAnaUtils { TFile const& File() const { return *myfile_; } void ListTrees() const; void UseTree(const char* treename="TrkAnaNeg"); - void fileName() { return myfile_->GetName(); } - void treeName() { if(mytree_)return mytree_->GetName(); else std::cout << "No current tree" << std::endl; } + auto fileName() { return myfile_->GetName(); } + auto treeName() { if(mytree_)return mytree_->GetName(); else return "none"; } TFile* file() { return myfile_;} TTree* tree() { return mytree_;} TCanvas* can() const { return mycan_; }