39 inline void print(std::ostream& out,
const char* name, TFile* file = NULL)
44 TDictionary* dictionary = TDictionary::GetDictionary(name);
46 out << setw(40) << left << name <<
' ';
48 if (dictionary != NULL) {
49 out << setw( 4) << right << dynamic_cast<TClass*>(dictionary)->GetClassVersion() <<
' ';
78 template<
class JHead_t,
class JTail_t>
81 print(out, JHead_t::Class_Name(), file);
93 int main(
int argc,
char **argv)
103 JParser<> zap(
"Auxiliary program to print ROOT class version information.");
111 catch(
const exception &error) {
112 FATAL(error.what() << endl);
121 if (input_file !=
"") {
124 file.
open(input_file.c_str());
126 catch(
const exception& error) {
127 FATAL(error.what() << endl);
130 if (!file.is_open()) {
131 FATAL(
"Error opening file " << input_file << endl);
135 if (class_name !=
"")
136 print(cout, class_name.c_str(), file.getFile());
Utility class to parse command line options.
int getStreamerVersion(TFile *file, const char *name)
Get ROOT streamer version of class with given name.
Auxiliary class for a type holder.
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Utility class to parse command line options.
ROOT TTree parameter settings.
int main(int argc, char *argv[])