Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
brownd1978 committed Sep 14, 2023
1 parent b8acbea commit eff5017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/TrkAnaUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -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_; }
Expand Down

0 comments on commit eff5017

Please sign in to comment.