10 #include "TIterator.h" 13 TTree *
tree = (TTree *) file->Get(
"l1uGTTree/L1uGTTree");
16 std::vector<std::string>
names;
17 TList * aliases = tree->GetListOfAliases();
19 std::for_each(iter.Begin(), TIter::End(), [&](TObject*
alias){ names.push_back(
alias->GetName()); } );
21 unsigned long long entries = tree->GetEntries();
26 for (
auto const &
name: names) {
27 unsigned long long counts = tree->GetEntries(
name.c_str());
28 std::cout << std::setw(digits) << counts <<
" / " << std::setw(digits) << entries <<
" " <<
name << std::endl;
37 TFile *
file = TFile::Open(argv[1]);
static const HistoName names[]
void print_rates(TFile *file)
int main(int argc, char **argv)