Jpp  17.1.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerFitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 #include "JFit/JMEstimator.hh"
7 
8 /**
9  * \author adomi, gmaggi
10  */
11 namespace JRECONSTRUCTION {
12 
13  /**
14  * Data structure for fit parameters.
15  */
17  public TObject
18  {
19  /**
20  * Default constructor.
21  */
23  {
24  this->reset();
25  }
26 
27  /**
28  * Virtual destructor.
29  */
31 
32  /**
33  * Reset fit parameters.
34  */
35  void reset()
36  {
37  numberOfPrefits = 4;
38  TMax_ns = 30;
39  TMin_ns = -30;
40  roadWidth_m = 80;
41  R_Hz = 10.0e3;
43  fit_step = 0.05;
44  }
45 
46  /**
47  * Equality
48  *
49  * \param parameters fit parameters
50  * \return true if equals; else false
51  */
53  {
54  return (this->TMax_ns == parameters.TMax_ns &&
55  this->TMin_ns == parameters.TMin_ns &&
56  this->numberOfPrefits == parameters.numberOfPrefits &&
57  this->roadWidth_m == parameters.roadWidth_m &&
58  this->R_Hz == parameters.R_Hz &&
59  this->mestimator == parameters.mestimator &&
60  this->fit_step == parameters.fit_step);
61  }
62 
64 
65 
66  size_t numberOfPrefits; ///< number of prefits
67  double TMax_ns; ///< maximum time for local coincidences [ns]
68  double TMin_ns; ///< minimum time for local coincidences [ns]
69  double roadWidth_m; ///< road width [m]
70  double R_Hz; ///< default rate [Hz]
71  int mestimator; ///< M-estimator
72  double fit_step; ///< simplex initial step
73  };
74 }
75 
76 /**
77  * Read fit parameters from input.
78  *
79  * \param in input stream
80  * \param parameters fit parameters
81  * \return input stream
82  */
83  std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerFitParameters_t& parameters);
84 
85  /**
86  * Write fit parameters to output.
87  *
88  * \param out output stream
89  * \param parameters fit parameters
90  * \return output stream
91  */
92  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerFitParameters_t& parameters);
93 
94 #endif
double TMax_ns
maximum time for local coincidences [ns]
double TMin_ns
minimum time for local coincidences [ns]
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
virtual ~JShowerFitParameters_t()
Virtual destructor.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1756
Data structure for fit parameters.
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
ClassDef(JShowerFitParameters_t, 1)
bool equals(const JShowerFitParameters_t &parameters) const
Equality.
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
Maximum likelihood estimator (M-estimators).