51 JParser<> zap(
"Auxiliary program to print Jpp meta data.");
54 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
56 zap[
'O'] =
make_field(option) = plain_t, json_t;
68 catch(
const exception &error) {
69 FATAL(error.what() << endl);
73 if (application !=
"") {
75 TFile*
in = TFile::Open(inputFile.c_str(),
"exists");
77 if (in != NULL && in->IsOpen()) {
79 const TRegexp regexp(application.c_str());
81 TIter iter(in->GetListOfKeys());
83 for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
85 const TString tag(key->GetName());
87 if (tag.Contains(regexp)) {
89 TNamed* named =
dynamic_cast<TNamed*
>(key->ReadObj());
92 cout << named->GetName() <<
"[" << key->GetCycle() <<
"] " << named->GetTitle() << endl;
101 ERROR(
"Error opening file: " << inputFile << endl);
111 while (abc.hasNext()) {
113 JMeta* meta = abc.next();
115 if (option == plain_t) {
119 cout << (*meta) << endl;
123 for (
const auto&
i : key) {
124 cout <<
' ' << (*meta)[
i];
129 }
else if (option == json_t) {
135 if (option == json_t) {
136 cout << setw(4) << js << endl;
Utility class to parse command line options.
static const char *const GITrelease_t
GIT release.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for multiplexing object iterators.
static const char *const ROOTrelease_t
ROOT release.
static const char *const SVNrelease_t
SVN release.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
static const char *const system_t
system information
static const char *const namespace_t
name space
General purpose class for object reading from a list of file names.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
static const char *const command_t
Linux command.