8 #include "JAAnet/JAAnetDictionary.hh"
26 const char*
const offset_t =
"offset";
27 const char*
const origin_t =
"origin";
28 const char*
const cylinder_t =
"cylinder";
38 int main(
int argc,
char **argv)
52 JParser<> zap(
"Auxiliary program to print contents of summed Monte Carlo run headers.");
56 "optional key corresponds to a data member or any of the values "\
59 << cylinder_t <<
".") =
"";
67 catch(
const exception &error) {
68 FATAL(error.what() << endl);
84 output_type out = (print_as_json ?
99 else if (key == origin_t)
101 else if (key == cylinder_t)
107 catch (
const exception& error) {
108 FATAL(error.what() << endl);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Vec getOffset(const JHead &header)
Get offset.
JCylinder3D getCylinder(const JHead &header)
Get cylinder corresponding to the positions of generated tracks (i.e.
Head getCommonHeader(const JMultipleFileScanner_t &file_list)
Get common Monte Carlo header.
Print objects in ASCII format using ROOT dictionary.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
T & getInstance(const T &object)
Get static instance from temporary object.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template implementation of stream output for single data type.
General purpose messaging.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Vec getOrigin(const JHead &header)
Get origin.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
Template implementation of stream output for single data type.
void copy(const Head &from, JHead &to)
Copy header from from to to.
Template interface of object output for single data type.
virtual bool put(const T &object)=0
Object output.