Jpp  18.6.0-rc.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  DStep_m = 5;
41  DMax_m = 60;
42  R_Hz = 10.0e3;
44  Vmax_npe = 20;
45  epsilon = 0.001;
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->DStep_m == parameters.DStep_m &&
60  this->DMax_m == parameters.DMax_m &&
61  this->R_Hz == parameters.R_Hz &&
62  this->mestimator == parameters.mestimator &&
63  this->Vmax_npe == parameters.Vmax_npe &&
64  this->epsilon == parameters.epsilon);
65  }
66 
68 
69 
70  size_t numberOfPrefits; ///< number of prefits
71  double TMax_ns; ///< maximum time for local coincidences [ns]
72  double TMin_ns; ///< minimum time for local coincidences [ns]
73  double DStep_m; ///< step increase for the distance to optical module [m]
74  double R_Hz; ///< default rate [Hz]
75  int mestimator; ///< M-estimator
76  double Vmax_npe; ///< maximum number of of photo-electrons
77  double DMax_m; ///< maximal distance to optical module [m]
78  double epsilon; ///< tolerance for minimisation
79  };
80 }
81 
82 /**
83  * Read fit parameters from input.
84  *
85  * \param in input stream
86  * \param parameters fit parameters
87  * \return input stream
88  */
89  std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerFitParameters_t& parameters);
90 
91  /**
92  * Write fit parameters to output.
93  *
94  * \param out output stream
95  * \param parameters fit parameters
96  * \return output stream
97  */
98  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerFitParameters_t& parameters);
99 
100 #endif
double TMax_ns
maximum time for local coincidences [ns]
double TMin_ns
minimum time for local coincidences [ns]
double DMax_m
maximal distance to optical module [m]
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
double epsilon
tolerance for minimisation
virtual ~JShowerFitParameters_t()
Virtual destructor.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1831
Data structure for fit parameters.
then fatal The output file must have the wildcard in the e g root fi 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:48
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
ClassDef(JShowerFitParameters_t, 1)
double Vmax_npe
maximum number of of photo-electrons
bool equals(const JShowerFitParameters_t &parameters) const
Equality.
Maximum likelihood estimator (M-estimators).
double DStep_m
step increase for the distance to optical module [m]