Jpp  15.0.1-rc.1-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerEnergyPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERENERGYPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERENERGYPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 #include "JFit/JMEstimator.hh"
8 #include "JFit/JEnergy.hh"
9 
10 /**
11  * \author adomi
12  */
13 namespace JRECONSTRUCTION {
14 
15  /**
16  * Data structure for fit parameters.
17  */
19  public TObject
20  {
21  /**
22  * Default constructor.
23  */
25  {
26  this->reset();
27  }
28 
29  /**
30  * Virtual destructor.
31  */
33 
34  /**
35  * Reset fit parameters.
36  */
37  void reset()
38  {
39  TMax_ns = 500;
40  TMin_ns = -500;
41  roadWidth_m = 80;
42  Emin_GeV = 1;
43  Emax_GeV = 100;
44  resolution = 0.01;
45  R_Hz = 10.0e3;
47  numberOfPrefits = 0;
48  numberOfOutfits = 1;
49  VMax_npe = 20;
50  NMax = 1000;
51  }
52 
53  /**
54  * Equality
55  *
56  * \param parameters fit parameters
57  * \return true if equals; else false
58  */
60  {
61  return (this->TMax_ns == parameters.TMax_ns &&
62  this->TMin_ns == parameters.TMin_ns &&
63  this->numberOfPrefits == parameters.numberOfPrefits &&
64  this->numberOfOutfits == parameters.numberOfOutfits &&
65  this->roadWidth_m == parameters.roadWidth_m &&
66  this->Emin_GeV == parameters.Emin_GeV &&
67  this->Emax_GeV == parameters.Emax_GeV &&
68  this->resolution == parameters.resolution &&
69  this->R_Hz == parameters.R_Hz &&
70  this->mestimator == parameters.mestimator &&
71  this->VMax_npe == parameters.VMax_npe &&
72  this->NMax == parameters.NMax);
73  }
74 
76 
77 
78  size_t numberOfPrefits; ///< number of prefits
79  size_t numberOfOutfits; ///< number of fits to be saved in output
80  double TMax_ns; ///< maximum time for local coincidences [ns]
81  double TMin_ns; ///< minimum time for local coincidences [ns]
82  double roadWidth_m; ///< road width [m]
83  double Emin_GeV; ///< minimum energy [GeV]
84  double Emax_GeV; ///< maximum energy [GeV]
85  double resolution; ///< energy resolution [log10(GeV)]
86  double R_Hz; ///< default rate [Hz]
87  int mestimator; ///< M-estimator
88  double VMax_npe; ///< maximum number of of photo-electrons
89  int NMax; ///< maximum number of iterations
90  };
91 }
92 
93 /**
94  * Read fit parameters from input.
95  *
96  * \param in input stream
97  * \param parameters fit parameters
98  * \return input stream
99  */
101 
102 /**
103  * Write fit parameters to output.
104  *
105  * \param out output stream
106  * \param parameters fit parameters
107  * \return output stream
108  */
109 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerEnergyPrefitParameters_t& parameters);
110 
111 #endif
ClassDef(JShowerEnergyPrefitParameters_t, 1)
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 VMax_npe
maximum number of of photo-electrons
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1618
double TMax_ns
maximum time for local coincidences [ns]
size_t numberOfOutfits
number of fits to be saved in output
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
bool equals(const JShowerEnergyPrefitParameters_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 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).