84{
87
89 JLimit_t& numberOfEvents = inputFile.getLimit();
92
93 try {
94
95 JParser<> zap(
"Example program to print track fit results from Evt formatted data.");
96
101
102 zap(argc, argv);
103 }
104 catch(const exception& error) {
105 FATAL(error.what() << endl);
106 }
107
108
110
111 cout <<
"event " << setw(10) << inputFile.
getCounter() << endl;
112
113 const Evt* evt = inputFile.
next();
114
116
118
119 print(cout,
"", trk);
121
122 for (const auto& key : keys) {
124 }
125
126 cout << endl;
127 }
128
130 for (
const Trk& i : evt->
trks) {
132 cout << endl;
133 }
134 }
135 }
136}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
std::ostream & print(std::ostream &out, const JTestSummary &summary, T __begin, T __end, const bool useColors=true, const JFormat_t &formatting=JFormat_t(18, 3, std::ios::fixed))
Print test summary.
array_type< JKey_t > get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JRECONSTRUCTION::JWeight getWeight
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Trk > trks
list of reconstructed tracks (can be several because of prefits,showers, etc).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary data structure for floating point format specification.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int mother_id
id of the parent MC particle or of the reconstructed track at the previous stage