Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef JMUONPREFITPARAMETERS_t_INCLUDE
2 #define JMUONPREFITPARAMETERS_t_INCLUDE
3 
4 #include <limits>
5 
6 #include <TROOT.h>
7 #include <TObject.h>
8 
9 /**
10  * \author gmaggi
11  */
12 
13 //#include "JGeometry3D/JOmega3D.hh" -> this crashes because of rootCint and C++ incompatibility
14 #include "JTools/JConstants.hh"
15 
16 namespace JFIT
17 {
18  /**
19  * Data struct that holds the parameters for JMuonPrefit angular reconstruction
20  * This is part of the constructor parameters of JMuonPrefit
21  */
23  public TObject
24  {
25  double sigma_ns;
26  double gridAngle_deg;
27  bool useL0;
30  double Tmax_ns;
31  double ctMin;
32  double roadWidth_m;
33 
35 
37 
38  void reset()
39  {
40  sigma_ns = 5;
41  gridAngle_deg = 1;
42  useL0 = false;
44  numberOfPrefits = 12;
45  Tmax_ns = 18;
46  ctMin = 0;
47  roadWidth_m = 200;
48  }
49 
50  bool equals(const JMuonPrefitParameters_t &parameters) const
51  {
52  return (this->sigma_ns == parameters.sigma_ns and
53  this->gridAngle_deg == parameters.gridAngle_deg and
54  this->useL0 == parameters.useL0 and
55  this->numberOfOutliers == parameters.numberOfOutliers and
56  this->numberOfPrefits == parameters.numberOfPrefits and
57  this->Tmax_ns == parameters.Tmax_ns and
58  this->roadWidth_m == parameters.roadWidth_m);
59  }
60 
61 
63 
64  };
65 
66 }
67 
68 #endif
Definition: JRoot.hh:19
Constants.
Data struct that holds the parameters for JMuonPrefit angular reconstruction This is part of the cons...
ClassDef(JMuonPrefitParameters_t, 1)
bool equals(const JMuonPrefitParameters_t &parameters) const