Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JMuonSimplexParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JMUONSIMPLEXPARAMETERS__
2#define __JRECONSTRUCTION__JMUONSIMPLEXPARAMETERS__
3
4#include <TROOT.h>
5#include <TObject.h>
6
7/**
8 * \author gmaggi
9 */
10
11namespace JRECONSTRUCTION {}
12namespace JPP { using namespace JRECONSTRUCTION; }
13
14namespace JRECONSTRUCTION
15{
16 /**
17 * Data structure for fit parameters.
18 */
20 public TObject
21 {
22 /**
23 * Default constructor.
24 */
26 {
27 this->reset();
28 }
29
30 /**
31 * Virtual destructor.
32 */
35
36 /**
37 * Reset fit parameters.
38 */
39 void reset()
40 {
41 sigma_ns = 3;
42 useL0 = true;
44 TMaxLocal_ns = 15.0;
45 ctMin = 0.0;
46 roadWidth_m = 200.0;
47 TMin_ns = -50.0;
48 TMax_ns = +50.0;
49 NMax = 1000;
50 }
51
52 /**
53 * Equality
54 *
55 * \param parameters fit parameters
56 * \return true if equals; else false
57 */
58 bool equals(const JMuonSimplexParameters_t& parameters) const
59 {
60 return (this->sigma_ns == parameters.sigma_ns &&
61 this->useL0 == parameters.useL0 &&
62 this->numberOfPrefits == parameters.numberOfPrefits &&
63 this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
64 this->ctMin == parameters.ctMin &&
65 this->roadWidth_m == parameters.roadWidth_m &&
66 this->TMin_ns == parameters.TMin_ns &&
67 this->TMax_ns == parameters.TMax_ns &&
68 this->NMax == parameters.NMax);
69 }
70
72
73 double sigma_ns; ///< time resolution [ns]
74 bool useL0; ///< option for L0 hit use
75 size_t numberOfPrefits; ///< number of prefits
76 double TMaxLocal_ns; ///< time window for local coincidences [ns]
77 double ctMin; ///< minimal cosine space angle between PMT axes
78 double roadWidth_m; ///< road width [m]
79 double TMin_ns; ///< minimal time w.r.t. Cherenkov hypothesis [ns]
80 double TMax_ns; ///< maximal time w.r.t. Cherenkov hypothesis [ns]
81 int NMax; ///< maximum number of iterations
82 };
83}
84
85/**
86 * Read fit parameters from input.
87 *
88 * \param in input stream
89 * \param parameters fit parameters
90 * \return input stream
91 */
92std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonSimplexParameters_t& parameters);
93
94/**
95 * Write fit parameters to output.
96 *
97 * \param out output stream
98 * \param parameters fit parameters
99 * \return output stream
100 */
101std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonSimplexParameters_t& parameters);
102
103#endif
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JMuonSimplexParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JMuonSimplexParameters_t &parameters)
Write fit parameters to output.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Model fits to data.
double TMax_ns
maximal time w.r.t. Cherenkov hypothesis [ns]
double TMaxLocal_ns
time window for local coincidences [ns]
bool equals(const JMuonSimplexParameters_t &parameters) const
Equality.
ClassDef(JMuonSimplexParameters_t, 3)
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]
double ctMin
minimal cosine space angle between PMT axes