Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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 */
18namespace JACOUSTICS {}
19namespace JPP { using namespace JACOUSTICS; }
20
21namespace 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),
36 {}
37
38
39 /**
40 * Virtual destructor.
41 */
43 {}
44
46
47 double Q; ///< minimal quality if larger than one; else minimal normalised quality
48 double TMax_s; ///< maximal difference between times of emission [s]
49 int numberOfHits; ///< minimal number of hits to trigger event
50 };
51}
52
53
54/**
55 * Read parameters from input stream.
56 *
57 * \param in input stream
58 * \param parameters parameters
59 * \return input stream
60 */
61std::istream& operator>>(std::istream& in, JACOUSTICS::JTriggerParameters& parameters);
62
63
64/**
65 * Write parameters to output stream.
66 *
67 * \param out output stream
68 * \param parameters parameters
69 * \return output stream
70 */
71std::ostream& operator<<(std::ostream& out, const JACOUSTICS::JTriggerParameters& parameters);
72
73#endif
std::ostream & operator<<(std::ostream &out, const JACOUSTICS::JTriggerParameters &parameters)
Write parameters to output stream.
std::istream & operator>>(std::istream &in, JACOUSTICS::JTriggerParameters &parameters)
Read parameters from input stream.
Auxiliary classes and methods for acoustic position calibration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual ~JTriggerParameters()
Virtual destructor.
ClassDef(JTriggerParameters, 3)
double Q
minimal quality if larger than one; else minimal normalised quality
double TMax_s
maximal difference between times of emission [s]
int numberOfHits
minimal number of hits to trigger event