Skip to content

Commit

Permalink
Merge pull request #102 from brownd1978/taufix
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
AndrewEdmonds11 authored Sep 15, 2023
2 parents b8acbea + c7a77d3 commit f75a0db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/TrkAnaUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ class TrkAnaUtils {
TrkAnaUtils(TFile* myfile,const char* treename="TrkAnaNeg");
TrkAnaUtils(const char* filename,const char* treename);
TrkAnaUtils(const char* treename="TrkAnaNeg");
~TrkAnaUtils() { delete myfile_; }
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 f75a0db

Please sign in to comment.