37 JLimit_t& numberOfEvents = inputFile.getLimit();
43 JParser<> zap(
"Example program to compare acoustic fit results.");
45 zap[
'f'] =
make_field(inputFile,
"input file (output of JKatoomba[.sh])");
52 catch(
const exception &error) {
57 if (inputFile.size() != 2u) {
58 FATAL(
"Invalid number of input files; need 2 files for comparison." <<
endl);
66 while (
inA.hasNext() &&
inB.hasNext()) {
75 while (
pA->UNIXTimeStop <
pB->UNIXTimeStart &&
inA.hasNext()) {
pA =
inA.next(); }
76 while (
pB->UNIXTimeStop <
pA->UNIXTimeStart &&
inB.hasNext()) {
pB =
inB.next(); }
78 if (
pA->UNIXTimeStart <
pB->UNIXTimeStop &&
79 pB->UNIXTimeStart <
pA->UNIXTimeStop) {
81 for (JEvt::const_iterator
iA =
pA->begin();
iA !=
pA->end(); ++
iA) {
82 for (JEvt::const_iterator
iB =
pB->begin();
iB !=
pB->end(); ++
iB) {
84 if (
iA->id ==
iB->id) {
86 const double tx = (
iA->tx -
iB->tx) * 1.0e3;
87 const double ty = (
iA->ty -
iB->ty) * 1.0e3;
90 H2[
iA->id]->Fill(tx, ty);
ROOT TTree parameter settings.
int main(int argc, char **argv)
Dynamic ROOT object management.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Template definition of a multi-dimensional oscillation probability interpolation table.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.