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
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  E_GeV = 10;
39  R_Hz = 10000;
40  TTS_ns = 2;
41  VMax_npe = 20.0;
42  NMax = 1000;
43  }
44 
45  /**
46  * Equality
47  *
48  * \param parameters fit parameters
49  * \return true if equals; else false
50  */
52  {
53  return (this->numberOfPrefits == parameters.numberOfPrefits &&
54  this->TMax_ns == parameters.TMax_ns &&
55  this->TMin_ns == parameters.TMin_ns &&
56  this->ctMin == parameters.ctMin &&
57  this->DMax_m == parameters.DMax_m &&
58  this->E_GeV == parameters.E_GeV &&
59  this->R_Hz == parameters.R_Hz &&
60  this->TTS_ns == parameters.TTS_ns &&
61  this->VMax_npe == parameters.VMax_npe &&
62  this->NMax == parameters.NMax);
63  }
64 
66 
67  size_t numberOfPrefits; ///< number of prefits
68  double TMax_ns; ///< maximum time for local coincidences [ns]
69  double TMin_ns; ///< minimum time for local coincidences [ns]
70  double DMax_m; ///< maximal distance to optical module [m]
71  double ctMin; ///< minimal cosine space angle between PMT axes
72  double E_GeV; ///< energy [GeV]
73  double R_Hz; ///< default rate [Hz]
74  double TTS_ns; ///< transition-time spread [ns]
75  double VMax_npe; ///< maximum number of of photo-electrons
76  int NMax; ///< maximum number of iterations
77  };
78 }
79 
80 /**
81  * Read fit parameters from input.
82  *
83  * \param in input stream
84  * \param parameters fit parameters
85  * \return input stream
86  */
88 
89 /**
90  * Write fit parameters to output.
91  *
92  * \param out output stream
93  * \param parameters fit parameters
94  * \return output stream
95  */
96 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPositionFitParameters_t& parameters);
97 
98 #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]
ClassDef(JShowerPositionFitParameters_t, 1)
double DMax_m
maximal distance to optical module [m]
double ctMin
minimal cosine space angle between PMT axes
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1831
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)