Jpp  17.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JAcoustics/JTriggerParameters.hh
Go to the documentation of this file.
1 #ifndef __JACOUSTICS__JTRIGGERPARAMETERS__
2 #define __JACOUSTICS__JTRIGGERPARAMETERS__
3 
4 #include <istream>
5 #include <ostream>
6 #include <iomanip>
7 
8 #include <TROOT.h>
9 #include <TObject.h>
10 
11 
12 /**
13  * \file
14  *
15  * Acoustic trigger parameters.
16  * \author mdejong
17  */
18 namespace JACOUSTICS {}
19 namespace JPP { using namespace JACOUSTICS; }
20 
21 namespace JACOUSTICS {
22 
23  /**
24  * Trigger parameters.
25  */
27  public TObject
28  {
29  /**
30  * Default constructor.
31  */
33  Q(0.0),
34  TMax_s(0.0),
35  quantile(1.0),
36  numberOfHits(0)
37  {}
38 
39 
40  /**
41  * Virtual destructor.
42  */
44  {}
45 
47 
48  double Q; ///< minimal quality if larger than one; else quantile
49  double TMax_s; ///< maximal difference between times of emission [s]
50  double quantile; ///< quantile for outlier removal
51  int numberOfHits; ///< minimal number of hits to trigger event
52  };
53 }
54 
55 
56 /**
57  * Read parameters from input stream.
58  *
59  * \param in input stream
60  * \param parameters parameters
61  * \return input stream
62  */
63 std::istream& operator>>(std::istream& in, JACOUSTICS::JTriggerParameters& parameters);
64 
65 
66 /**
67  * Write parameters to output stream.
68  *
69  * \param out output stream
70  * \param parameters parameters
71  * \return output stream
72  */
73 std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JTriggerParameters& parameters);
74 
75 #endif
ClassDef(JTriggerParameters, 3)
double quantile
quantile for outlier removal
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
double TMax_s
maximal difference between times of emission [s]
int numberOfHits
minimal number of hits to trigger event
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1756
double Q
minimal quality if larger than one; else quantile
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
virtual ~JTriggerParameters()
Virtual destructor.