Jpp  15.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerBjorkenYParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERBJORKENYPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERBJORKENYPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 #include "JFit/JMEstimator.hh"
7 
8 /**
9  * \author adomi
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 = 1;
38  TMax_ns = 30;
39  TMin_ns = -30;
40  roadWidth_m = 80;
41  R_Hz = 10.0e3;
43  fit_step = 0.5;
44  VMax_npe = 20.0;
45  NMax = 1000;
46  }
47 
48  /**
49  * Equality
50  *
51  * \param parameters fit parameters
52  * \return true if equals; else false
53  */
55  {
56  return (this->TMax_ns == parameters.TMax_ns &&
57  this->TMin_ns == parameters.TMin_ns &&
58  this->numberOfPrefits == parameters.numberOfPrefits &&
59  this->roadWidth_m == parameters.roadWidth_m &&
60  this->R_Hz == parameters.R_Hz &&
61  this->mestimator == parameters.mestimator &&
62  this->fit_step == parameters.fit_step &&
63  this->VMax_npe == parameters.VMax_npe &&
64  this->NMax == parameters.NMax);
65  }
66 
68 
69  size_t numberOfPrefits; ///< number of prefits
70  double TMax_ns; ///< maximum time for local coincidences [ns]
71  double TMin_ns; ///< minimum time for local coincidences [ns]
72  double roadWidth_m; ///< road width [m]
73  double R_Hz; ///< default rate [Hz]
74  int mestimator; ///< M-estimator
75  double fit_step; ///< simplex initial step
76  double VMax_npe; ///< maximum number of of photo-electrons
77  int NMax; ///< maximum number of iterations
78  };
79 }
80 
81 /**
82  * Read fit parameters from input.
83  *
84  * \param in input stream
85  * \param parameters fit parameters
86  * \return input stream
87  */
89 
90  /**
91  * Write fit parameters to output.
92  *
93  * \param out output stream
94  * \param parameters fit parameters
95  * \return output stream
96  */
97  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerBjorkenYParameters_t& parameters);
98 
99 #endif
double VMax_npe
maximum number of of photo-electrons
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
double TMin_ns
minimum time for local coincidences [ns]
double TMax_ns
maximum time for local coincidences [ns]
bool equals(const JShowerBjorkenYParameters_t &parameters) const
Equality.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1618
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
ClassDef(JShowerBjorkenYParameters_t, 1)
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:41
Maximum likelihood estimator (M-estimators).