Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerDirectionPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERDIRECTIONPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERDIRECTIONPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 #include "JFit/JMEstimator.hh"
7 
8 /**
9  * \author adomi, gmaggi, vcarretero
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  DMax_m = 80;
41  scanAngle_deg = 10;
42  R_Hz = 10.0e3;
43  VMax_npe = 20.0;
44  Emin_GeV = 1;
45  Emax_GeV = 1000;
46  En = 50;
47  }
48 
49  /**
50  * Equality
51  *
52  * \param parameters fit parameters
53  * \return true if equals; else false
54  */
56  {
57  return (this->TMax_ns == parameters.TMax_ns &&
58  this->TMin_ns == parameters.TMin_ns &&
59  this->numberOfPrefits == parameters.numberOfPrefits &&
60  this->DMax_m == parameters.DMax_m &&
61  this->R_Hz == parameters.R_Hz &&
62  this->scanAngle_deg == parameters.scanAngle_deg &&
63  this->VMax_npe == parameters.VMax_npe &&
64  this->Emin_GeV == parameters.Emin_GeV &&
65  this->Emax_GeV == parameters.Emax_GeV &&
66  this->En == parameters.En );
67  }
68 
70 
71  size_t numberOfPrefits; ///< number of prefits
72  double TMax_ns; ///< maximum time for local coincidences [ns]
73  double TMin_ns; ///< minimum time for local coincidences [ns]
74  double DMax_m; ///< maximal distance to optical module [m]
75  double R_Hz; ///< default rate [Hz]
76  double VMax_npe; ///< maximum number of of photo-electrons
77  double scanAngle_deg; ///< scanning angle step in [deg]
78  double Emin_GeV; ///< minimum energy to scan
79  double Emax_GeV; ///< maximum energy to scan
80  int En; ///< number of points to scan in energy range
81  };
82 }
83 
84 /**
85  * Read fit parameters from input.
86  *
87  * \param in input stream
88  * \param parameters fit parameters
89  * \return input stream
90  */
92 
93  /**
94  * Write fit parameters to output.
95  *
96  * \param out output stream
97  * \param parameters fit parameters
98  * \return output stream
99  */
100  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerDirectionPrefitParameters_t& parameters);
101 
102 #endif
double TMax_ns
maximum 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
ClassDef(JShowerDirectionPrefitParameters_t, 2)
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
bool equals(const JShowerDirectionPrefitParameters_t &parameters) const
Equality.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1832
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)
Maximum likelihood estimator (M-estimators).
double TMin_ns
minimum time for local coincidences [ns]