Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerPositionFitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERPOSITIONFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERPOSITIONFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 /**
8  * \author adomi
9  */
10 namespace JRECONSTRUCTION {
11 
13  public TObject
14  {
15  /**
16  * Default constructor.
17  */
19  {
20  this->reset();
21  }
22 
23  /**
24  * Virtual destructor.
25  */
27  {}
28 
29  /**
30  * Reset fit parameters.
31  */
32  void reset()
33  {
34  numberOfPrefits = 0; // process all inputs from PointSimplex, which should give a max of 100
35  TMax_ns = 100.0;
36  TMin_ns = -100.0;
37  DMax_m = 80.0;
38  R_Hz = 10000;
39  Emin_GeV = 1;
40  Emax_GeV = 200;
41  En = 10;
42  TTS_ns = 2;
43  VMax_npe = 20.0;
44  NMax = 1000;
45  }
46 
47  /**
48  * Equality
49  *
50  * \param parameters fit parameters
51  * \return true if equals; else false
52  */
54  {
55  return (this->numberOfPrefits == parameters.numberOfPrefits &&
56  this->TMax_ns == parameters.TMax_ns &&
57  this->TMin_ns == parameters.TMin_ns &&
58  this->DMax_m == parameters.DMax_m &&
59  this->R_Hz == parameters.R_Hz &&
60  this->TTS_ns == parameters.TTS_ns &&
61  this->Emin_GeV == parameters.Emin_GeV &&
62  this->Emax_GeV == parameters.Emax_GeV &&
63  this->En == parameters.En &&
64  this->VMax_npe == parameters.VMax_npe &&
65  this->NMax == parameters.NMax);
66  }
67 
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 DMax_m; ///< maximal distance to optical module [m]
74  double Emin_GeV; ///< minimum energy to scan
75  double Emax_GeV; ///< maximum energy to scan
76  int En; ///< number of points to scan in energy range
77  double R_Hz; ///< default rate [Hz]
78  double TTS_ns; ///< transition-time spread [ns]
79  double VMax_npe; ///< maximum number of of photo-electrons
80  int NMax; ///< maximum number of iterations
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::JShowerPositionFitParameters_t& parameters);
101 
102 #endif
bool equals(const JShowerPositionFitParameters_t &parameters) const
Equality.
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 TMin_ns
minimum time for local coincidences [ns]
double VMax_npe
maximum number of of photo-electrons
double TMax_ns
maximum time for local coincidences [ns]
int En
number of points to scan in energy range
double DMax_m
maximal distance to optical module [m]
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)
ClassDef(JShowerPositionFitParameters_t, 2)