43 public std::vector< JSinglePointer<JAbstractTreeReader> >
96 int main(
int argc,
char **argv)
105 JParser<> zap(
"Auxiliary program to print ROOT TTree information.");
112 catch(
const exception &error) {
113 FATAL(error.what() << endl);
118 gErrorIgnoreLevel = kFatal;
122 JTreeList inspector(typelist);
124 int number_of_errors = 0;
128 TFile* fp = TFile::Open(file_name->c_str());
130 cout << *file_name << flush;
136 for (JTreeList::iterator i = inspector.begin(); i != inspector.end(); ++i) {
138 if ((*i)->load(fp)) {
139 cout << setw(24) << left << (**i)->GetName() <<
' '
140 << setw(32) << left << (*i)->getDictionary()->GetName() <<
' '
141 << setw(10) << right << (**i)->GetEntries() <<
' '
142 << setw( 6) << right << ((**i)->GetTotBytes() >> 20) <<
" [MB]" << endl;
150 cout <<
" not opened." << endl;
154 return (number_of_errors == 0 ? 0 : 1);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Test availability of TTree parameters for given class.
Auxiliary class for a type holder.
TTree reading for template data type.
Auxiliary template class for type bool.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Auxiliary class for template TTree reading.
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Utility class to parse command line options.