14 TTree*
tree =
nullptr;
15 const_cast<TFile*
>(
f)->GetObject(name, tree);
16 assert(tree !=
nullptr);
17 if ((tree->GetEntries() == 0) && !empty) {
18 cerr <<
"Tree " << name <<
" from " << f->GetName() <<
" not supposed to be empty.\n";
21 if ((tree->GetEntries() != 0) && empty) {
22 cerr <<
"Tree " << name <<
" from " << f->GetName() <<
" supposed to be empty.\n" 23 <<
" it has " << tree->GetEntries() <<
" entries.\n";
32 bool const empty =
true;
33 bool const not_empty =
false;
34 string qual = suffix.empty() ?
"" :
string(
"_") + suffix;
36 TFile*
f = TFile::Open(filename.c_str());
44 passed +=
check_ttree(f,
"SubRunMetaData", not_empty);
47 filename =
string(
"out_dropAllEventsSubruns1") + qual +
string(
".root");
48 f = TFile::Open(filename.c_str());
58 filename =
string(
"out_dropAllEventsSubruns2") + qual +
string(
".root");
59 f = TFile::Open(filename.c_str());
int check_ttree(TFile const *f, char const *name, bool const empty)
int main(int argc, char **argv)
int test_dropAllEventsSubruns_verify(string const &suffix="")