Jpp  16.0.0-rc.2
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  numberOfHits(0),
37  stdev(2.0)
38  {}
39 
40 
41  /**
42  * Virtual destructor.
43  */
45  {}
46 
48 
49  double Q; ///< minimal quality if larger than one; else quantile
50  double TMax_s; ///< maximal difference between times of emission [s]
51  int numberOfHits; ///< minimal number of hits to trigger event
52  int numberOfOutliers; ///< maximal number of outliers to be removed from event
53  double stdev; ///< minimal number of standard deviations for outlier removal
54  };
55 }
56 
57 
58 /**
59  * Read parameters from input stream.
60  *
61  * \param in input stream
62  * \param parameters parameters
63  * \return input stream
64  */
65 std::istream& operator>>(std::istream& in, JACOUSTICS::JTriggerParameters& parameters);
66 
67 
68 /**
69  * Write parameters to output stream.
70  *
71  * \param out output stream
72  * \param parameters parameters
73  * \return output stream
74  */
75 std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JTriggerParameters& parameters);
76 
77 #endif
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]
double stdev
minimal number of standard deviations for outlier removal
int numberOfHits
minimal number of hits to trigger event
ClassDef(JTriggerParameters, 2)
int numberOfOutliers
maximal number of outliers to be removed from event
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1693
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
virtual ~JTriggerParameters()
Virtual destructor.