Jpp  debug
the software that should make you happy
JShowerPointSimplexParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERPOINTSIMPLEXPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERPOINTSIMPLEXPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
8 #include "JFit/JMEstimator.hh"
9 
10 /**
11  * \author adomi, vcarretero
12  */
13 namespace JRECONSTRUCTION {
14 
16  public TObject
17  {
18  /**
19  * Default constructor.
20  */
22  {
23  this->reset();
24  }
25 
26  /**
27  * Virtual destructor.
28  */
30  {}
31 
32  /**
33  * Reset fit parameters.
34  */
35  void reset()
36  {
37  numberOfPrefits = 0; // 0 means process all inputs
38  sigma_ns = 1;
39  TMaxLocal_ns = 10;
40  TMax_ns = 60.0;
41  TMin_ns = -60.0;
42  DMax_m = 50.0;
43  ctMin = 0.2;
45  NMax = 1000;
46  }
47 
48  /**
49  * Equality
50  *
51  * \param parameters fit parameters
52  * \return true if equals; else false
53  */
54  bool equals(const JShowerPointSimplexParameters_t& parameters) const
55  {
56  return (this->numberOfPrefits == parameters.numberOfPrefits &&
57  this->sigma_ns == parameters.sigma_ns &&
58  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
59  this->TMax_ns == parameters.TMax_ns &&
60  this->TMin_ns == parameters.TMin_ns &&
61  this->DMax_m == parameters.DMax_m &&
62  this->ctMin == parameters.ctMin &&
63  this->mestimator == parameters.mestimator &&
64  this->NMax == parameters.NMax
65  );
66  }
67 
69 
70  size_t numberOfPrefits; ///< number of prefits
71  double sigma_ns; ///< time resolution [ns]
72  double TMaxLocal_ns; ///< time window for local coincidences [ns]
73  double TMax_ns; ///< maximum time for local coincidences [ns]
74  double TMin_ns; ///< minimum time for local coincidences [ns]
75  double DMax_m; ///< maximal distance to optical module [m]
76  double ctMin; ///< minimal cosine space angle between PMT axes
77  int mestimator; ///< m-estimator
78  int NMax; ///< maximum number of iterations
79  };
80 }
81 
82 /**
83  * Read fit parameters from input.
84  *
85  * \param in input stream
86  * \param parameters fit parameters
87  * \return input stream
88  */
89 std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
90 
91 /**
92  * Write fit parameters to output.
93  *
94  * \param out output stream
95  * \param parameters fit parameters
96  * \return output stream
97  */
98 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
99 
100 #endif
Maximum likelihood estimator (M-estimators).
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerPointSimplexParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t &parameters)
Write fit parameters to output.
@ EM_LORENTZIAN
Definition: JMEstimator.hh:187
Model fits to data.
double TMin_ns
minimum time for local coincidences [ns]
double TMaxLocal_ns
time window for local coincidences [ns]
ClassDef(JShowerPointSimplexParameters_t, 2)
double TMax_ns
maximum time for local coincidences [ns]
double ctMin
minimal cosine space angle between PMT axes
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
double DMax_m
maximal distance to optical module [m]
Definition: JRoot.hh:19