21int main(
int argc,
char **argv)
36 catch(
const exception &error) {
37 FATAL(error.what() << endl);
44 cout <<
"comparator:" << endl;
45 for (
const auto& i : comparator) {
46 cout << i.first << endl;
62 ASSERT(comparator(a1, a1) ==
true,
"comparison of equal objects");
63 ASSERT(comparator(a2, a2) ==
true,
"comparison of equal objects");
64 ASSERT(comparator(a1, a2) ==
false,
"comparison of different objects");
76 ASSERT(comparator(a1, a1) ==
true,
"comparison of equal objects");
77 ASSERT(comparator(a2, a2) ==
true,
"comparison of equal objects");
78 ASSERT(comparator(a1, a2) ==
false,
"comparison of different objects");
90 a1.
trks.push_back(t1);
91 a2.
trks.push_back(t2);
93 ASSERT(comparator(a1, a1) ==
true,
"comparison of equal objects");
94 ASSERT(comparator(a2, a2) ==
true,
"comparison of equal objects");
95 ASSERT(comparator(a1, a2) ==
false,
"comparison of different objects");
103 ASSERT(comparator(a1, a1) ==
true,
"comparison of equal objects");
104 ASSERT(comparator(a2, a2) ==
true,
"comparison of equal objects");
105 ASSERT(comparator(a1, a2) ==
false,
"comparison of different objects");
General purpose messaging.
#define ASSERT(A,...)
Assert macro.
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 comparison of objects using ROOT dictionary.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
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).
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
std::vector< int > hit_ids
list of associated hit-ids (corresponds to Hit::id).