Jpp  18.6.0-rc.1
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 
9 /**
10  * \author adomi
11  */
12 namespace JRECONSTRUCTION {
13 
15  public TObject
16  {
17  /**
18  * Default constructor.
19  */
21  {
22  this->reset();
23  }
24 
25  /**
26  * Virtual destructor.
27  */
29  {}
30 
31  /**
32  * Reset fit parameters.
33  */
34  void reset()
35  {
36  numberOfPrefits = 0; // 0 means process all inputs
37  minPrefitsSize = 8;
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;
44  TWindow_ns = JRange_t(-130, 120);
45  pos_grid_m = JRange_t( -20, 20);
46  pos_step_m = 20;
47  time_grid_ns = JRange_t( -90, 90);
48  time_step_ns = 20;
49  simplex_step_m = 5;
50  simplex_step_ns = 10;
51  tukey_std_dev = 20;
52  NMax = 1000;
53  }
54 
55  /**
56  * Equality
57  *
58  * \param parameters fit parameters
59  * \return true if equals; else false
60  */
62  {
63  return (this->numberOfPrefits == parameters.numberOfPrefits &&
64  this->minPrefitsSize == parameters.minPrefitsSize &&
65  this->sigma_ns == parameters.sigma_ns &&
66  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
67  this->TMax_ns == parameters.TMax_ns &&
68  this->TMin_ns == parameters.TMin_ns &&
69  this->DMax_m == parameters.DMax_m &&
70  this->ctMin == parameters.ctMin &&
71  this->TWindow_ns == parameters.TWindow_ns &&
72  this->pos_grid_m == parameters.pos_grid_m &&
73  this->pos_step_m == parameters.pos_step_m &&
74  this->time_grid_ns == parameters.time_grid_ns &&
75  this->time_step_ns == parameters.time_step_ns &&
76  this->simplex_step_m == parameters.simplex_step_m &&
77  this->simplex_step_ns == parameters.simplex_step_ns &&
78  this->tukey_std_dev == parameters.tukey_std_dev &&
79  this->NMax == parameters.NMax);
80  }
81 
83 
84  size_t numberOfPrefits; ///< number of prefits
85  size_t minPrefitsSize; ///< number of prefits under which an event is treated as a very low energy one
86  double sigma_ns; ///< time resolution [ns]
87  double TMaxLocal_ns; ///< time window for local coincidences [ns]
88  double TMax_ns; ///< maximum time for local coincidences [ns]
89  double TMin_ns; ///< minimum time for local coincidences [ns]
90  double DMax_m; ///< maximal distance to optical module [m]
91  double ctMin; ///< minimal cosine space angle between PMT axes
92  JRange_t TWindow_ns; ///< time window for local coincidences [ns] for events with few prefits
93  JRange_t pos_grid_m; ///< edges in [m] of the position grid
94  double pos_step_m; ///< step in [m] of position grid
95  JRange_t time_grid_ns; ///< edges in [ns] of the time grid
96  double time_step_ns; ///< step in [ns] of time grid
97  double simplex_step_m; ///< step in [m] of JSimplex minimiser
98  double simplex_step_ns; ///< step in [ns] of JSimplex minimiser
99  double tukey_std_dev; ///< standard deviation of Tukey estimator
100  int NMax; ///< maximum number of iterations
101  };
102 }
103 
104 /**
105  * Read fit parameters from input.
106  *
107  * \param in input stream
108  * \param parameters fit parameters
109  * \return input stream
110  */
112 
113 /**
114  * Write fit parameters to output.
115  *
116  * \param out output stream
117  * \param parameters fit parameters
118  * \return output stream
119  */
120 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
121 
122 #endif
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
double DMax_m
maximal distance to optical module [m]
JRange_t pos_grid_m
edges in [m] of the position grid
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, 1)
JRange_t TWindow_ns
time window for local coincidences [ns] for events with few prefits
Type definition of range.
Definition: JRange_t.hh:18
double TMaxLocal_ns
time window for local coincidences [ns]
double simplex_step_ns
step in [ns] of JSimplex minimiser
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1831
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
size_t minPrefitsSize
number of prefits under which an event is treated as a very low energy one
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
double TMin_ns
minimum time for local coincidences [ns]
double tukey_std_dev
standard deviation of Tukey estimator
double ctMin
minimal cosine space angle between PMT axes