Jpp master_rocky-44-g75b7c4f75
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 reprocess = false;
51 }
52
53 /**
54 * Equality
55 *
56 * \param parameters fit parameters
57 * \return true if equals; else false
58 */
59 bool equals(const JMuonSimplexParameters_t& parameters) const
60 {
61 return (this->sigma_ns == parameters.sigma_ns &&
62 this->useL0 == parameters.useL0 &&
63 this->numberOfPrefits == parameters.numberOfPrefits &&
64 this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
65 this->ctMin == parameters.ctMin &&
66 this->roadWidth_m == parameters.roadWidth_m &&
67 this->TMin_ns == parameters.TMin_ns &&
68 this->TMax_ns == parameters.TMax_ns &&
69 this->NMax == parameters.NMax &&
70 this->reprocess == parameters.reprocess);
71 }
72
74
75 double sigma_ns; ///< time resolution [ns]
76 bool useL0; ///< option for L0 hit use
77 size_t numberOfPrefits; ///< number of prefits
78 double TMaxLocal_ns; ///< time window for local coincidences [ns]
79 double ctMin; ///< minimal cosine space angle between PMT axes
80 double roadWidth_m; ///< road width [m]
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 int NMax; ///< maximum number of iterations
84 bool reprocess; ///< reprocess
85 };
86}
87
88/**
89 * Read fit parameters from input.
90 *
91 * \param in input stream
92 * \param parameters fit parameters
93 * \return input stream
94 */
95std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonSimplexParameters_t& parameters);
96
97/**
98 * Write fit parameters to output.
99 *
100 * \param out output stream
101 * \param parameters fit parameters
102 * \return output stream
103 */
104std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonSimplexParameters_t& parameters);
105
106#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.
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]
ClassDef(JMuonSimplexParameters_t, 2)
double ctMin
minimal cosine space angle between PMT axes