Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef JSHOWERPREFITPARAMETERS_t_INCLUDE
2 #define JSHOWERPREFITPARAMETERS_t_INCLUDE
3 
4 #include <limits>
5 
6 #include <TROOT.h>
7 #include <TObject.h>
8 
9 #include "JTools/JConstants.hh"
10 #include "JTools/JRange.hh"
11 
12 /**
13  * \author adomi
14  */
15 
16 namespace JFIT
17 {
19  public TObject
20  {
21  double sigma_ns;
22  bool useL0;
24  double Tmax_ns;
25  double ctMin;
26  double Dmax_m;
29  double pos_step;
30  double time_step;
31 
33 
35 
36  void reset()
37  {
38  sigma_ns = 3.0;
39  useL0 = true;
40  numberOfOutliers = 4;
41  Tmax_ns = 20.0;
42  ctMin = -0.7;
43  Dmax_m = 50.0;
45  pos_step = 20;
47  time_step = 25;
48  }
49 
50  bool equals(const JShowerPrefitParameters_t &parameters) const
51  {
52  return (this->sigma_ns == parameters.sigma_ns and
53  this->useL0 == parameters.useL0 and
54  this->numberOfOutliers == parameters.numberOfOutliers and
55  this->Tmax_ns == parameters.Tmax_ns and
56  this->ctMin == parameters.ctMin and
57  this->Dmax_m == parameters.Dmax_m and
58  this->pos_grid == parameters.pos_grid and
59  this->pos_step == parameters.pos_step and
60  this->time_grid == parameters.time_grid and
61  this->time_step == parameters.time_step);
62  }
63 
64 
66 
67  };
68 
69 }
70 
71 #endif
Definition: JRoot.hh:19
Constants.
bool equals(const JShowerPrefitParameters_t &parameters) const
ClassDef(JShowerPrefitParameters_t, 1)
Auxiliary class to define a range between two values.