Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JMuonStartParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JMUONSTARTPARAMETERS__
2#define __JRECONSTRUCTION__JMUONSTARTPARAMETERS__
3
4#include <limits>
5
6#include <TROOT.h>
7#include <TObject.h>
8
9/**
10 * \author mdejong
11 */
12
13namespace JRECONSTRUCTION {}
14namespace JPP { using namespace JRECONSTRUCTION; }
15
16namespace JRECONSTRUCTION
17{
18 /**
19 * Data structure for fit parameters.
20 */
22 public TObject
23 {
24 /**
25 * Default constructor.
26 */
28 {
29 this->reset();
30 }
31
32 /**
33 * Virtual destructor.
34 */
36 {}
37
38 /**
39 * Reset fit parameters.
40 */
41 void reset()
42 {
43 roadWidth_m = std::numeric_limits<double>::max();
44 R_Hz = 6.0e3;
47 TMin_ns = -25.0;
48 TMax_ns = +75.0;
49 Pmin = 0.0;
50 Pmin1 = 0.0;
51 Pmin2 = 0.0;
52 Nmax2 = 2;
53 }
54
55 /**
56 * Equality
57 *
58 * \param parameters fit parameters
59 * \return true if equals; else false
60 */
61 bool equals(const JMuonStartParameters_t& parameters) const
62 {
63 return (this->roadWidth_m == parameters.roadWidth_m &&
64 this->R_Hz == parameters.R_Hz &&
65 this->numberOfPrefits == parameters.numberOfPrefits &&
66 this->numberOfPostfits == parameters.numberOfPostfits &&
67 this->TMin_ns == parameters.TMin_ns &&
68 this->TMax_ns == parameters.TMax_ns &&
69 this->Pmin == parameters.Pmin &&
70 this->Pmin1 == parameters.Pmin1 &&
71 this->Pmin2 == parameters.Pmin2 &&
72 this->Nmax2 == parameters.Nmax2);
73 }
74
76
77 double roadWidth_m; ///< road width [m]
78 double R_Hz; ///< default rate [Hz]
79 size_t numberOfPrefits; ///< number of prefits
80 size_t numberOfPostfits; ///< number of postfits
81 double TMin_ns; ///< minimal time w.r.t. Cherenkov hypothesis [ns]
82 double TMax_ns; ///< maximal time w.r.t. Cherenkov hypothesis [ns]
83 double Pmin; ///< minimal probability
84 double Pmin1; ///< minimal probability single observation
85 double Pmin2; ///< minimal probability for twofold observations
86 int Nmax2; ///< maximal number for twofold observations
87 };
88}
89
90/**
91 * Read fit parameters from input.
92 *
93 * \param in input stream
94 * \param parameters fit parameters
95 * \return input stream
96 */
97std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonStartParameters_t& parameters);
98
99/**
100 * Write fit parameters to output.
101 *
102 * \param out output stream
103 * \param parameters fit parameters
104 * \return output stream
105 */
106std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonStartParameters_t& parameters);
107
108#endif
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JMuonStartParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JMuonStartParameters_t &parameters)
Write fit parameters to output.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Data structure for fit parameters.
virtual ~JMuonStartParameters_t()
Virtual destructor.
ClassDef(JMuonStartParameters_t, 3)
int Nmax2
maximal number for twofold observations
double Pmin1
minimal probability single observation
bool equals(const JMuonStartParameters_t &parameters) const
Equality.
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]
double Pmin2
minimal probability for twofold observations
double TMax_ns
maximal time w.r.t. Cherenkov hypothesis [ns]