17#include "TPolyLine3D.h"
18#include "TPolyMarker3D.h"
44 <<
"Written by Martijn Jongen" <<
endl
67 catch(
const exception &error) {
69 cout <<
"Type '" <<
argv[0] <<
" -h!' to display the command-line options." <<
endl ;
115 if( f->IsZombie() ) {
121 cerr <<
"Could not read JScatteringModel from file!" <<
endl ;
124 cout <<
"JScatteringModel loaded" <<
endl
125 <<
" absorption length = " <<
sm->getAbsorptionLength() <<
" m" <<
endl
126 <<
" scattering length = " <<
sm->getScatteringLength() <<
" m" <<
endl
140 reader.open(
it->c_str()) ;
141 if( !reader.is_open() ) {
142 cerr <<
"FATAL ERROR: unable to open input file '" << *
it <<
"'." <<
endl ;
147 while( reader.hasNext() ) {
158 cout <<
"Done reading paths." <<
endl ;
184 cout <<
"Determining histogram ranges." <<
endl ;
190 double INF = 1.0/0.0 ;
191 double MININF = -1.0/0.0 ;
208 double length = p->getLength() ;
209 if( length > Lmax[
nscat] ) Lmax[
nscat] = length ;
210 if( length < Lmin[
nscat] ) Lmin[
nscat] = length ;
215 min(posmin[
nscat][
j].getY(),p->at(
j).getY()),
216 min(posmin[
nscat][
j].getZ(),p->at(
j).getZ()) ) ;
218 max(posmax[
nscat][
j].getY(),p->at(
j).getY()),
219 max(posmax[
nscat][
j].getZ(),p->at(
j).getZ()) ) ;
225 cout <<
"Allocating histograms." <<
endl ;
259 double ctmax = 1+1e-8 ;
318 cout <<
"Filling histograms." <<
endl ;
323 double L = p->getLength() ;
339 double x = p->at(
j).getX() ;
340 double y = p->at(
j).getY() ;
341 double z = p->at(
j).getZ() ;
354 cout <<
"Normalizing histograms." <<
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.
Data structure for normalised vector in three dimensions.
Virtual base class for a scattering model.
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).