Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerPositionFitParameters_t.hh
Go to the documentation of this file.
1 #ifndef JSHOWERPOSITIONFITPARAMETERS_t_INCLUDE
2 #define JSHOWERPOSITIONFITPARAMETERS_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  * Class used for EM shower reconstruction in ORCA.
16  * It sets the optimal values for the shower position reconstruction.
17  * These values can be changed from command line if needed.
18  */
19 
20 namespace JFIT
21 {
23  public TObject
24  {
26  double Tmax_ns;
27  double ctMin;
28  double Dmax_m;
31  double pos_step;
32  double time_step;
33 
35 
37 
38  void reset()
39  {
40  numberOfPrefits = 1;
41  Tmax_ns = 20.0; // [ns]
42  ctMin = -0.7; // optimal value
43  Dmax_m = 80.0; // [m]
44  pos_grid = JTOOLS::JRange<double>(-28, 28); // scanning grid definition [m]
45  pos_step = 6; // grid density [m]
46  time_grid = JTOOLS::JRange<double>(-60, 60); // scanning grid definition [ns]
47  time_step = 15; // grid density [ns]
48  }
49 
50  bool equals(const JShowerPositionFitParameters_t &parameters) const
51  {
52  return (this->numberOfPrefits == parameters.numberOfPrefits and
53  this->Tmax_ns == parameters.Tmax_ns and
54  this->ctMin == parameters.ctMin and
55  this->Dmax_m == parameters.Dmax_m and
56  this->pos_grid == parameters.pos_grid and
57  this->pos_step == parameters.pos_step and
58  this->time_grid == parameters.time_grid and
59  this->time_step == parameters.time_step);
60  }
61 
62 
64 
65  };
66 
67 }
68 
69 #endif
Definition: JRoot.hh:19
bool equals(const JShowerPositionFitParameters_t &parameters) const
Constants.
Auxiliary class to define a range between two values.
ClassDef(JShowerPositionFitParameters_t, 1)