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