Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JMuonPrefitParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JMUONPREFITPARAMETERS__
2#define __JRECONSTRUCTION__JMUONPREFITPARAMETERS__
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 */
34 {}
35
36 /**
37 * Reset fit parameters.
38 */
39 void reset()
40 {
41 factoryLimit = 8;
42 NMaxHits = 50;
43 sigma_ns = 5;
44 gridAngle_deg = 1;
45 useL0 = false;
47 numberOfPrefits = 12;
49 TMaxLocal_ns = 18.0;
50 ctMin = 0;
51 roadWidth_m = 200;
52 Qwatershed = 0.0;
53 }
54
55 /**
56 * Equality
57 *
58 * \param parameters fit parameters
59 * \return true if equals; else false
60 */
61 bool equals(const JMuonPrefitParameters_t& parameters) const
62 {
63 return (this->factoryLimit == parameters.factoryLimit &&
64 this->NMaxHits == parameters.NMaxHits &&
65 this->sigma_ns == parameters.sigma_ns &&
66 this->gridAngle_deg == parameters.gridAngle_deg &&
67 this->useL0 == parameters.useL0 &&
68 this->numberOfOutliers == parameters.numberOfOutliers &&
69 this->numberOfPrefits == parameters.numberOfPrefits &&
70 this->numberOfPostfits == parameters.numberOfPostfits &&
71 this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
72 this->roadWidth_m == parameters.roadWidth_m &&
73 this->Qwatershed == parameters.Qwatershed);
74 }
75
77
78 int factoryLimit; ///< factory limit for combinatorics
79 int NMaxHits; ///< maximal number of hits
80 double sigma_ns; ///< time resolution [ns]
81 double gridAngle_deg; ///< grid angle for directions [deg]
82 bool useL0; ///< option for L0 hit use
83 int numberOfOutliers; ///< maximum number of outliers
84 size_t numberOfPrefits; ///< number of prefits
85 size_t numberOfPostfits; ///< number of postfits
86 double TMaxLocal_ns; ///< time window for local coincidences [ns]
87 double ctMin; ///< minimal cosine space angle between PMT axes
88 double roadWidth_m; ///< road width [m]
89 double Qwatershed; ///< minimal quality step
90 };
91}
92
93/**
94 * Read fit parameters from input.
95 *
96 * \param in input stream
97 * \param parameters fit parameters
98 * \return input stream
99 */
100std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonPrefitParameters_t& parameters);
101
102/**
103 * Write fit parameters to output.
104 *
105 * \param out output stream
106 * \param parameters fit parameters
107 * \return output stream
108 */
109std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonPrefitParameters_t& parameters);
110
111#endif
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JMuonPrefitParameters_t &parameters)
Write fit parameters to output.
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JMuonPrefitParameters_t &parameters)
Read fit parameters from input.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
ClassDef(JMuonPrefitParameters_t, 1)
double ctMin
minimal cosine space angle between PMT axes
virtual ~JMuonPrefitParameters_t()
Virtual destructor.
int factoryLimit
factory limit for combinatorics
double TMaxLocal_ns
time window for local coincidences [ns]
double gridAngle_deg
grid angle for directions [deg]
bool equals(const JMuonPrefitParameters_t &parameters) const
Equality.