20 inline int f1(
const int i)
33 int main(
int argc,
char **argv)
42 JParser<> zap(
"Example program to test collection class.");
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
53 typedef JElement2D<int, int> JElement_t;
54 typedef JCollection<JElement_t> JCollection_t;
60 for (
int i = 0; i != 5; ++i) {
73 catch(
const JException& error) {
74 FATAL(error.what() << endl);
77 for (JCollection_t::const_iterator i = a.begin(),
j = b.begin(),
k = c.begin(); i != a.end() &&
j != b.end() &&
k != c.end(); ++i, ++
j, ++
k) {
78 DEBUG(setw(4) <<
k->getY() <<
" == " << setw(4) << (i->getY() + j->getY() + 1000) * 2 + f1(i->getX()) << endl);
79 ASSERT(
k->getY() == (i->getY() + j->getY() + 1000) * 2 + f1(i->getX()));
84 JDistance<double>::precision = 1.0e-10;
86 typedef JElement2D<int, int> JElement_t;
87 typedef JCollection<JElement_t> JCollection_t;
Utility class to parse command line options.
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
int main(int argc, char *argv[])
The elements in a collection are sorted according to their abscissa values and a given distance opera...
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for a collection of sorted elements.
General purpose messaging.
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
$WORKDIR ev_configure_domsimulator txt echo process $DOM_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DOM_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'