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  fixStrings(false)
48  {}
49 
50 
51  /**
52  * Virtual destructor.
53  */
54  virtual ~JFitParameters()
55  {}
56 
58 
59  int mestimator; ///< M-estimator
60  double sigma_s; ///< time-of-arrival resolution [s]
61  double background; ///< probability background transmission
62  double Tmax_s; ///< time window to combine events [s]
63  size_t Nmin; ///< minimum number of emitters
64  double stdev; ///< standard deviation for outlier removal
65  bool fixStrings; ///< fix strings
66  };
67 }
68 
69 
70 /**
71  * Read parameters from input stream.
72  *
73  * \param in input stream
74  * \param parameters parameters
75  * \return input stream
76  */
77 std::istream& operator>>(std::istream& in, JACOUSTICS::JFitParameters& parameters);
78 
79 
80 /**
81  * Write parameters to output stream.
82  *
83  * \param out output stream
84  * \param parameters parameters
85  * \return output stream
86  */
87 std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JFitParameters& parameters);
88 
89 #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).
bool fixStrings
fix strings