Jpp  18.3.1
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
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 = 0;
38  numberOfOutfits = 4;
39  TMax_ns = 30;
40  TMin_ns = -30;
41  roadWidth_m = 80;
42  DMin_m = 80;
43  E_GeV = 13;
44  MaxAngle_deg_lowE = 40;
45  scanAngle_deg_lowE = 10;
46  MaxAngle_deg_highE = 20;
48  R_Hz = 10.0e3;
50  VMax_npe = 20.0;
51  NMax = 1000;
52  }
53 
54  /**
55  * Equality
56  *
57  * \param parameters fit parameters
58  * \return true if equals; else false
59  */
61  {
62  return (this->TMax_ns == parameters.TMax_ns &&
63  this->TMin_ns == parameters.TMin_ns &&
64  this->numberOfPrefits == parameters.numberOfPrefits &&
65  this->numberOfOutfits == parameters.numberOfOutfits &&
66  this->roadWidth_m == parameters.roadWidth_m &&
67  this->DMin_m == parameters.DMin_m &&
68  this->E_GeV == parameters.E_GeV &&
69  this->R_Hz == parameters.R_Hz &&
70  this->mestimator == parameters.mestimator &&
71  this->MaxAngle_deg_lowE == parameters.MaxAngle_deg_lowE &&
72  this->scanAngle_deg_lowE == parameters.scanAngle_deg_lowE &&
73  this->MaxAngle_deg_highE == parameters.MaxAngle_deg_highE &&
74  this->scanAngle_deg_highE == parameters.scanAngle_deg_highE &&
75  this->VMax_npe == parameters.VMax_npe &&
76  this->NMax == parameters.NMax);
77  }
78 
80 
81  size_t numberOfPrefits; ///< number of prefits
82  size_t numberOfOutfits; ///< number of fits to be saved in output
83  double TMax_ns; ///< maximum time for local coincidences [ns]
84  double TMin_ns; ///< minimum time for local coincidences [ns]
85  double roadWidth_m; ///< road width [m]
86  double ctMin; ///< minimal cosine space angle between PMT axes
87  double DMin_m; ///< radius of the hit selection for high energy events (used to speedup the code)
88  double E_GeV; ///< energy [GeV]
89  double R_Hz; ///< default rate [Hz]
90  int mestimator; ///< M-estimator
91  double VMax_npe; ///< maximum number of of photo-electrons
92  int NMax; ///< maximum number of iterations
93  double MaxAngle_deg_lowE; ///< maximum scanning angle in [deg] for low energy events
94  double scanAngle_deg_lowE; ///< scanning angle step in [deg] for low energy events
95  double MaxAngle_deg_highE; ///< maximum scanning angle in [deg] for high energy events
96  double scanAngle_deg_highE; ///< scanning angle step in [deg] for high energy events
97  };
98 }
99 
100 /**
101  * Read fit parameters from input.
102  *
103  * \param in input stream
104  * \param parameters fit parameters
105  * \return input stream
106  */
108 
109  /**
110  * Write fit parameters to output.
111  *
112  * \param out output stream
113  * \param parameters fit parameters
114  * \return output stream
115  */
116  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerDirectionPrefitParameters_t& parameters);
117 
118 #endif
double TMax_ns
maximum time for local coincidences [ns]
double ctMin
minimal cosine space angle between PMT axes
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 MaxAngle_deg_lowE
maximum scanning angle in [deg] for low energy events
bool equals(const JShowerDirectionPrefitParameters_t &parameters) const
Equality.
double scanAngle_deg_highE
scanning angle step in [deg] for high energy events
double scanAngle_deg_lowE
scanning angle step in [deg] for low energy events
double DMin_m
radius of the hit selection for high energy events (used to speedup the code)
double MaxAngle_deg_highE
maximum scanning angle in [deg] for high energy events
ClassDef(JShowerDirectionPrefitParameters_t, 1)
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1829
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:48
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
Maximum likelihood estimator (M-estimators).
double TMin_ns
minimum time for local coincidences [ns]