Jpp
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
TObject
Definition: JRoot.hh:19
JFIT
Auxiliary classes and methods for linear and iterative data regression.
Definition: JEnergy.hh:15
JFIT::JShowerPositionFitParameters_t::pos_grid
JTOOLS::JRange< double > pos_grid
Definition: JShowerPositionFitParameters_t.hh:29
JTOOLS::JRange< double >
JFIT::JShowerPositionFitParameters_t::numberOfPrefits
int numberOfPrefits
Definition: JShowerPositionFitParameters_t.hh:25
JFIT::JShowerPositionFitParameters_t::ClassDef
ClassDef(JShowerPositionFitParameters_t, 1)
JFIT::JShowerPositionFitParameters_t::Tmax_ns
double Tmax_ns
Definition: JShowerPositionFitParameters_t.hh:26
JFIT::JShowerPositionFitParameters_t::JShowerPositionFitParameters_t
JShowerPositionFitParameters_t()
Definition: JShowerPositionFitParameters_t.hh:34
JFIT::JShowerPositionFitParameters_t::reset
void reset()
Definition: JShowerPositionFitParameters_t.hh:38
JRange.hh
JFIT::JShowerPositionFitParameters_t
Definition: JShowerPositionFitParameters_t.hh:22
JConstants.hh
JFIT::JShowerPositionFitParameters_t::ctMin
double ctMin
Definition: JShowerPositionFitParameters_t.hh:27
JFIT::JShowerPositionFitParameters_t::Dmax_m
double Dmax_m
Definition: JShowerPositionFitParameters_t.hh:28
JFIT::JShowerPositionFitParameters_t::~JShowerPositionFitParameters_t
virtual ~JShowerPositionFitParameters_t()
Definition: JShowerPositionFitParameters_t.hh:36
JFIT::JShowerPositionFitParameters_t::time_grid
JTOOLS::JRange< double > time_grid
Definition: JShowerPositionFitParameters_t.hh:30
JFIT::JShowerPositionFitParameters_t::time_step
double time_step
Definition: JShowerPositionFitParameters_t.hh:32
JFIT::JShowerPositionFitParameters_t::pos_step
double pos_step
Definition: JShowerPositionFitParameters_t.hh:31
JFIT::JShowerPositionFitParameters_t::equals
bool equals(const JShowerPositionFitParameters_t &parameters) const
Definition: JShowerPositionFitParameters_t.hh:50