Jpp  pmt_effective_area_update
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  */
41  Qmin (0.0),
43  sigma_s (50.0e-6),
44  background(1.0e-4),
45  Tmax_s (300.0),
46  Nmin (3),
47  stdev (5.0),
48  fixStrings(false)
49  {}
50 
51 
52  /**
53  * Virtual destructor.
54  */
55  virtual ~JFitParameters()
56  {}
57 
59 
60  double Qmin; ///< minimal quality
61  int mestimator; ///< M-estimator
62  double sigma_s; ///< time-of-arrival resolution [s]
63  double background; ///< probability background transmission
64  double Tmax_s; ///< time window to combine events [s]
65  size_t Nmin; ///< minimum number of emitters
66  double stdev; ///< standard deviation for outlier removal
67  bool fixStrings; ///< fix strings to vertical
68  };
69 }
70 
71 
72 /**
73  * Read parameters from input stream.
74  *
75  * \param in input stream
76  * \param parameters parameters
77  * \return input stream
78  */
79 std::istream& operator>>(std::istream& in, JACOUSTICS::JFitParameters& parameters);
80 
81 
82 /**
83  * Write parameters to output stream.
84  *
85  * \param out output stream
86  * \param parameters parameters
87  * \return output stream
88  */
89 std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JFitParameters& parameters);
90 
91 #endif
double Qmin
minimal quality
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:40
JFitParameters()
Default constructor.
Maximum likelihood estimator (M-estimators).
bool fixStrings
fix strings to vertical