16#include "TPolyLine3D.h"
17#include "TPolyMarker3D.h"
38 cout <<
"JMarkovPathSelecter" <<
endl
39 <<
"Written by Martijn Jongen" <<
endl
41 cout <<
"Type '" <<
argv[0] <<
" -h!' to display the command-line options." <<
endl ;
57 zap[
"o"] =
make_field(
ofname,
"output file name (binary file containing a selection of the JPhotonPaths)") ;
61 zap[
"z"] =
make_field(z,
"z coordinate for shadowing") = 0.5*37 ;
68 catch(
const exception &error) {
70 cerr << error.what() ;
75 cout <<
"SELECTION CRITERIA:" <<
endl ;
77 cout <<
"Will exclude all paths intersecting a sphere of radius " << r <<
" m"
78 <<
", centered at (" << x <<
", " << y <<
", " << z <<
")" <<
endl ;
84 reader.open(
ifname.c_str()) ;
85 if( !reader.is_open() ) {
86 cerr <<
"FATAL ERROR: unable to open input file '" <<
ifname <<
"'." <<
endl ;
94 while( reader.hasNext() ) {
101 cerr <<
"FATAL ERROR: could not read any JPhotonPaths from the input file '" <<
ifname <<
"'." <<
endl ;
104 cout <<
"Done reading file. Read " <<
nread <<
" paths from it." <<
endl ;
124 <<
" photon paths." <<
endl
125 <<
"Output written to '" <<
ofname <<
"'." <<
endl ;
int main(int argc, char **argv)
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Data structure for position in three dimensions.
virtual void open(const char *file_name) override
Open file.
virtual void close()=0
Close device.
virtual bool put(const T &object)=0
Object output.
Template definition of a multi-dimensional oscillation probability interpolation table.
JReader & read(JReader &in) override final
Read from input.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).