Jpp  17.3.0-rc.2
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  numberOfOutfits = 100;
38  minPrefitsSize = 8;
39  sigma_ns = 1;
40  TMaxLocal_ns = 10;
41  TMax_ns = 60.0;
42  TMin_ns = -60.0;
43  roadWidth_m = 50.0;
44  ctMin = 0.2;
45  TWindow_ns = JRange_t(-130, 120);
46  pos_grid_m = JRange_t( -20, 20);
47  pos_step_m = 20;
48  time_grid_ns = JRange_t( -90, 90);
49  time_step_ns = 20;
50  simplex_step_m = 5;
51  simplex_step_ns = 10;
52  tukey_std_dev = 20;
53  NMax = 1000;
54  }
55 
56  /**
57  * Equality
58  *
59  * \param parameters fit parameters
60  * \return true if equals; else false
61  */
63  {
64  return (this->numberOfPrefits == parameters.numberOfPrefits &&
65  this->numberOfOutfits == parameters.numberOfOutfits &&
66  this->minPrefitsSize == parameters.minPrefitsSize &&
67  this->sigma_ns == parameters.sigma_ns &&
68  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
69  this->TMax_ns == parameters.TMax_ns &&
70  this->TMin_ns == parameters.TMin_ns &&
71  this->roadWidth_m == parameters.roadWidth_m &&
72  this->ctMin == parameters.ctMin &&
73  this->TWindow_ns == parameters.TWindow_ns &&
74  this->pos_grid_m == parameters.pos_grid_m &&
75  this->pos_step_m == parameters.pos_step_m &&
76  this->time_grid_ns == parameters.time_grid_ns &&
77  this->time_step_ns == parameters.time_step_ns &&
78  this->simplex_step_m == parameters.simplex_step_m &&
79  this->simplex_step_ns == parameters.simplex_step_ns &&
80  this->tukey_std_dev == parameters.tukey_std_dev &&
81  this->NMax == parameters.NMax);
82  }
83 
85 
86  size_t numberOfPrefits; ///< number of prefits
87  size_t numberOfOutfits; ///< number of fits to be saved in output
88  size_t minPrefitsSize; ///< number of prefits under which an event is treated as a very low energy one
89  double sigma_ns; ///< time resolution [ns]
90  double TMaxLocal_ns; ///< time window for local coincidences [ns]
91  double TMax_ns; ///< maximum time for local coincidences [ns]
92  double TMin_ns; ///< minimum time for local coincidences [ns]
93  double roadWidth_m; ///< road width [m]
94  double ctMin; ///< minimal cosine space angle between PMT axes
95  JRange_t TWindow_ns; ///< time window for local coincidences [ns] for events with few prefits
96  JRange_t pos_grid_m; ///< edges in [m] of the position grid
97  double pos_step_m; ///< step in [m] of position grid
98  JRange_t time_grid_ns; ///< edges in [ns] of the time grid
99  double time_step_ns; ///< step in [ns] of time grid
100  double simplex_step_m; ///< step in [m] of JSimplex minimiser
101  double simplex_step_ns; ///< step in [ns] of JSimplex minimiser
102  double tukey_std_dev; ///< standard deviation of Tukey estimator
103  int NMax; ///< maximum number of iterations
104  };
105 }
106 
107 /**
108  * Read fit parameters from input.
109  *
110  * \param in input stream
111  * \param parameters fit parameters
112  * \return input stream
113  */
115 
116 /**
117  * Write fit parameters to output.
118  *
119  * \param out output stream
120  * \param parameters fit parameters
121  * \return output stream
122  */
123 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
124 
125 #endif
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
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
size_t numberOfOutfits
number of fits to be saved in output
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:1756
double TMax_ns
maximum time for local coincidences [ns]
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
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] 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:46