Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JFitParameters.hh
Go to the documentation of this file.
1#ifndef __JACOUSTICS__JFITPARAMETERS__
2#define __JACOUSTICS__JFITPARAMETERS__
3
4#include <istream>
5#include <ostream>
6#include <iomanip>
7#include <limits>
8
9#include <TROOT.h>
10#include <TObject.h>
11
12#include "JFit/JMEstimator.hh"
13
14
15/**
16 * \file
17 *
18 * Acoustic fit parameters.
19 * \author mdejong
20 */
21namespace JACOUSTICS {}
22namespace JPP { using namespace JACOUSTICS; }
23
24namespace JACOUSTICS {
25
26 using JFIT::EM_NORMAL;
28 using JFIT::EM_LINEAR;
29 using JFIT::EM_NULL;
30
31
32 /**
33 * Fit parameters.
34 */
36 public TObject
37 {
38 /**
39 * Default constructor.
40 */
42 Qmin (0.0),
43 mestimator(EM_LINEAR),
44 sigma_s (50.0e-6),
45 Tmax_s (600.0),
46 Nmin (3),
47 stdev (5.0),
48 option (1),
49 chi2perNDF(std::numeric_limits<double>::max()),
50 deadTime_s(100.0e-3)
51 {}
52
53
54 /**
55 * Virtual destructor.
56 */
58 {}
59
61
62 double Qmin; ///< minimal quality transmission
63 int mestimator; ///< M-estimator
64 double sigma_s; ///< time-of-arrival resolution [s]
65 double Tmax_s; ///< time window to combine events [s]
66 size_t Nmin; ///< minimum number of emitters
67 double stdev; ///< standard deviation for outlier removal
68 int option; ///< fit option
69 double chi2perNDF; ///< maximal chi2/NDF to store event
70 double deadTime_s; ///< dead time between events [s]
71 };
72}
73
74
75/**
76 * Read parameters from input stream.
77 *
78 * \param in input stream
79 * \param parameters parameters
80 * \return input stream
81 */
82std::istream& operator>>(std::istream& in, JACOUSTICS::JFitParameters& parameters);
83
84
85/**
86 * Write parameters to output stream.
87 *
88 * \param out output stream
89 * \param parameters parameters
90 * \return output stream
91 */
92std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JFitParameters& parameters);
93
94#endif
std::istream & operator>>(std::istream &in, JACOUSTICS::JFitParameters &parameters)
Read parameters from input stream.
std::ostream & operator<<(std::ostream &out, const JACOUSTICS::JFitParameters &parameters)
Write parameters to output stream.
Maximum likelihood estimator (M-estimators).
Auxiliary classes and methods for acoustic position calibration.
@ EM_LORENTZIAN
@ EM_NORMAL
@ EM_LINEAR
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double Qmin
minimal quality transmission
double deadTime_s
dead time between events [s]
virtual ~JFitParameters()
Virtual destructor.
size_t Nmin
minimum number of emitters
double sigma_s
time-of-arrival resolution [s]
double Tmax_s
time window to combine events [s]
ClassDef(JFitParameters, 3)
double chi2perNDF
maximal chi2/NDF to store event
double stdev
standard deviation for outlier removal
JFitParameters()
Default constructor.