Jpp  pmt_effective_area_update_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 
7 #include "JTools/JRange.hh"
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  using namespace JPP;
37 
38  numberOfPrefits = 0; // 0 means process all inputs
39  numberOfOutfits = 100;
40  minPrefitsSize = 8;
41  sigma_ns = 1;
42  TMaxLocal_ns = 10;
43  TMax_ns = 60.0;
44  TMin_ns = -60.0;
45  roadWidth_m = 50.0;
46  ctMin = 0.2;
47  TWindow_ns = JRange<double>(-130, 120);
48  pos_grid_m = JRange<double>( -20, 20);
49  pos_step_m = 20;
50  time_grid_ns = JRange<double>( -90, 90);
51  time_step_ns = 20;
52  simplex_step_m = 5;
53  simplex_step_ns = 10;
54  tukey_std_dev = 20;
55  }
56 
57  /**
58  * Equality
59  *
60  * \param parameters fit parameters
61  * \return true if equals; else false
62  */
64  {
65  return (this->numberOfPrefits == parameters.numberOfPrefits &&
66  this->numberOfOutfits == parameters.numberOfOutfits &&
67  this->minPrefitsSize == parameters.minPrefitsSize &&
68  this->sigma_ns == parameters.sigma_ns &&
69  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
70  this->TMax_ns == parameters.TMax_ns &&
71  this->TMin_ns == parameters.TMin_ns &&
72  this->roadWidth_m == parameters.roadWidth_m &&
73  this->ctMin == parameters.ctMin &&
74  this->TWindow_ns == parameters.TWindow_ns &&
75  this->pos_grid_m == parameters.pos_grid_m &&
76  this->pos_step_m == parameters.pos_step_m &&
77  this->time_grid_ns == parameters.time_grid_ns &&
78  this->time_step_ns == parameters.time_step_ns &&
79  this->simplex_step_m == parameters.simplex_step_m &&
80  this->simplex_step_ns == parameters.simplex_step_ns &&
81  this->tukey_std_dev == parameters.tukey_std_dev);
82  }
83 
85 
89  double sigma_ns;
90  double TMaxLocal_ns;
91  double TMax_ns;
92  double TMin_ns;
93  double roadWidth_m;
94  double ctMin;
97  double pos_step_m;
99  double time_step_ns;
103  };
104 }
105 
106 /**
107  * Read fit parameters from input.
108  *
109  * \param in input stream
110  * \param parameters fit parameters
111  * \return input stream
112  */
114 
115 /**
116  * Write fit parameters to output.
117  *
118  * \param out output stream
119  * \param parameters fit parameters
120  * \return output stream
121  */
122 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
123 
124 #endif
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
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
ClassDef(JShowerPointSimplexParameters_t, 1)
Range of values.
Definition: JRange.hh:38
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1618
Auxiliary class to define a range between two values.
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:40