Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
8 #include <TROOT.h>
9 #include <TObject.h>
10 
11 #include "JFit/JMEstimator.hh"
12 
13 
14 /**
15  * \file
16  *
17  * Acoustic fit parameters.
18  * \author mdejong
19  */
20 namespace JACOUSTICS {}
21 namespace JPP { using namespace JACOUSTICS; }
22 
23 namespace JACOUSTICS {
24 
25  using JFIT::EM_NORMAL;
26  using JFIT::EM_LORENTZIAN;
27  using JFIT::EM_LINEAR;
28  using JFIT::EM_NULL;
29 
30 
31  /**
32  * Fit parameters.
33  */
34  struct JFitParameters :
35  public TObject
36  {
37  /**
38  * Default constructor.
39  */
42  sigma_s (50.0e-6),
43  background(1.0e-4),
44  Tmax_s (300.0),
45  Nmin (3),
46  stdev (5.0)
47  {}
48 
49 
50  /**
51  * Virtual destructor.
52  */
53  virtual ~JFitParameters()
54  {}
55 
57 
58  int mestimator; ///< M-estimator
59  double sigma_s; ///< time-of-arrival resolution [s]
60  double background; ///< probability background transmission
61  double Tmax_s; ///< time window to combine events [s]
62  size_t Nmin; ///< minimum number of emitters
63  double stdev; ///< standard deviation for outlier removal
64  };
65 }
66 
67 
68 /**
69  * Read parameters from input stream.
70  *
71  * \param in input stream
72  * \param parameters parameters
73  * \return input stream
74  */
75 std::istream& operator>>(std::istream& in, JACOUSTICS::JFitParameters& parameters);
76 
77 
78 /**
79  * Write parameters to output stream.
80  *
81  * \param out output stream
82  * \param parameters parameters
83  * \return output stream
84  */
85 std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JFitParameters& parameters);
86 
87 #endif
ClassDef(JFitParameters, 1)
double background
probability background transmission
Definition: JRoot.hh:19
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
size_t Nmin
minimum number of emitters
double stdev
standard deviation for outlier removal
double Tmax_s
time window to combine events [s]
virtual ~JFitParameters()
Virtual destructor.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1618
double sigma_s
time-of-arrival resolution [s]
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
int mestimator
M-estimator.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:38
JFitParameters()
Default constructor.
Maximum likelihood estimator (M-estimators).