Jpp
 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/JTimeRange.hh"
8 #include "JTools/JRange.hh"
9 
10 /**
11  * \author adomi
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 = 50;
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 = JTOOLS::JTimeRange(-130, 120);
47  pos_step_m = 20;
49  time_step_ns = 20;
50  simplex_step_m = 5;
51  simplex_step_ns = 10;
52  tukey_std_dev = 20;
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->roadWidth_m == parameters.roadWidth_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  }
80 
82 
85  double sigma_ns;
86  double TMaxLocal_ns;
87  double TMax_ns;
88  double TMin_ns;
89  double roadWidth_m;
90  double ctMin;
93  double pos_step_m;
95  double time_step_ns;
98  double tukey_std_dev;
99  };
100 }
101 
102 /**
103  * Read fit parameters from input.
104  *
105  * \param in input stream
106  * \param parameters fit parameters
107  * \return input stream
108  */
110 
111 /**
112  * Write fit parameters to output.
113  *
114  * \param out output stream
115  * \param parameters fit parameters
116  * \return output stream
117  */
118 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
119 
120 #endif
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
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)
JRange< double > JTimeRange
Type definition for time range.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1278
Auxiliary class to define a range between two values.
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)