Jpp  master_rocky
the software that should make you happy
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 
11 namespace JRECONSTRUCTION {}
12 namespace JPP { using namespace JRECONSTRUCTION; }
13 
14 namespace 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;
46  numberOfOutliers = 3;
47  numberOfPrefits = 12;
48  DZMax = 0.0;
49  numberOfDZMax = 1;
50  TMaxLocal_ns = 18.0;
51  ctMin = 0;
52  roadWidth_m = 200;
53  Qmin = 0.0;
54  }
55 
56  /**
57  * Equality
58  *
59  * \param parameters fit parameters
60  * \return true if equals; else false
61  */
62  bool equals(const JMuonPrefitParameters_t& parameters) const
63  {
64  return (this->factoryLimit == parameters.factoryLimit &&
65  this->NMaxHits == parameters.NMaxHits &&
66  this->sigma_ns == parameters.sigma_ns &&
67  this->gridAngle_deg == parameters.gridAngle_deg &&
68  this->useL0 == parameters.useL0 &&
69  this->numberOfOutliers == parameters.numberOfOutliers &&
70  this->numberOfPrefits == parameters.numberOfPrefits &&
71  this->DZMax == parameters.DZMax &&
72  this->numberOfDZMax == parameters.numberOfDZMax &&
73  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
74  this->roadWidth_m == parameters.roadWidth_m &&
75  this->Qmin == parameters.Qmin);
76  }
77 
79 
80  int factoryLimit; ///< factory limit for combinatorics
81  int NMaxHits; ///< maximal number of hits
82  double sigma_ns; ///< time resolution [ns]
83  double gridAngle_deg; ///< grid angle for directions [deg]
84  bool useL0; ///< option for L0 hit use
85  int numberOfOutliers; ///< maximum number of outliers
86  size_t numberOfPrefits; ///< number of prefits
87  double DZMax; ///< maximal slope for downward pointing solutions
88  size_t numberOfDZMax; ///< additional number of downward pointing solutions
89  double TMaxLocal_ns; ///< time window for local coincidences [ns]
90  double ctMin; ///< minimal cosine space angle between PMT axes
91  double roadWidth_m; ///< road width [m]
92  double Qmin; ///< minimal quality step
93  };
94 }
95 
96 /**
97  * Read fit parameters from input.
98  *
99  * \param in input stream
100  * \param parameters fit parameters
101  * \return input stream
102  */
103 std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JMuonPrefitParameters_t& parameters);
104 
105 /**
106  * Write fit parameters to output.
107  *
108  * \param out output stream
109  * \param parameters fit parameters
110  * \return output stream
111  */
112 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonPrefitParameters_t& parameters);
113 
114 #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).
Model fits to data.
Data structure for fit parameters.
int numberOfOutliers
maximum number of outliers
ClassDef(JMuonPrefitParameters_t, 1)
double ctMin
minimal cosine space angle between PMT axes
virtual ~JMuonPrefitParameters_t()
Virtual destructor.
double DZMax
maximal slope for downward pointing solutions
int factoryLimit
factory limit for combinatorics
double TMaxLocal_ns
time window for local coincidences [ns]
double gridAngle_deg
grid angle for directions [deg]
size_t numberOfDZMax
additional number of downward pointing solutions
bool equals(const JMuonPrefitParameters_t &parameters) const
Equality.
Definition: JRoot.hh:19