Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  */
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  */
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
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
double DMax_m
maximal distance to optical module [m]
Definition: JRoot.hh:19
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
ClassDef(JShowerPointSimplexParameters_t, 2)
double TMaxLocal_ns
time window for local coincidences [ns]
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1832
double TMax_ns
maximum time for local coincidences [ns]
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
double TMin_ns
minimum time for local coincidences [ns]
double ctMin
minimal cosine space angle between PMT axes
Maximum likelihood estimator (M-estimators).