23int main(
int argc,
char **argv)
39 zap[
'n'] =
make_field(numberOfEvents,
"number of events, if applicable") = 1;
44 catch(
const exception &error) {
51 TFile* in = TFile::Open(inputFile.c_str());
53 if (in ==
NULL || !in->IsOpen()) {
54 FATAL(
"Error opening file " << inputFile <<
endl);
57 if (
debug >= debug_t) {
58 for (
TIter i(in->GetListOfKeys());
TKey* key =
dynamic_cast<TKey*
>(i.Next()); ) {
59 cout <<
"key: " << key->GetName() <<
' ' << key->GetClassName() <<
endl;
71 TClass* cs = TClass::GetClass(key->GetClassName());
75 void* ps = key->ReadObjectAny(cs);
77 if (cs == TTree::Class()) {
79 TTree* ts = (TTree*) ps;
90 ts->GetBranch(tp.getName())->
SetAddress(tp.getAddress());
95 cout << ts->GetName() <<
"[" << i <<
"]:" <<
endl;
106 printer(
cout, cs->GetStreamerInfo(), (
const char*) ps);
Auxiliaries for defining the range of iterations of objects.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Example application to test printing of objects using ROOT dictionary.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
ROOT readable class for TBranch.
Auxiliary class for defining the range of iterations of objects.
Auxiliary data structure to list files in directory.