#include "antdst_reader.hh" #include "TLeafElement.h" bool AntDstEventFile::read_header(Head& h) { TTree* DQ = (TTree*) rootfile->Get("DataQuality"); if ( !DQ ) { print ("warning:failed to open DataQuality tree in antdst file"); return false; } DQ->GetEntry(0); auto lst = DQ->GetListOfLeaves(); for(auto obj: *lst ) { auto l = dynamic_cast(obj); if (!l) continue; h.set_line( str(l->GetName()) , str(l->GetValue(0)) ); } //print(h); return true; }