Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerFitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERFITPARAMETERS__
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 = 4;
38  TMax_ns = 30;
39  TMin_ns = -30;
40  roadWidth_m = 80;
41  R_Hz = 10.0e3;
43  fit_step = 0.05;
44  }
45 
46  /**
47  * Equality
48  *
49  * \param parameters fit parameters
50  * \return true if equals; else false
51  */
53  {
54  return (this->TMax_ns == parameters.TMax_ns &&
55  this->TMin_ns == parameters.TMin_ns &&
56  this->numberOfPrefits == parameters.numberOfPrefits &&
57  this->roadWidth_m == parameters.roadWidth_m &&
58  this->R_Hz == parameters.R_Hz &&
59  this->mestimator == parameters.mestimator &&
60  this->fit_step == parameters.fit_step);
61  }
62 
64 
66  double TMax_ns;
67  double TMin_ns;
68  double roadWidth_m;
69  double R_Hz;
71  double fit_step;
72  };
73 }
74 
75 /**
76  * Read fit parameters from input.
77  *
78  * \param in input stream
79  * \param parameters fit parameters
80  * \return input stream
81  */
82  std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerFitParameters_t& parameters);
83 
84  /**
85  * Write fit parameters to output.
86  *
87  * \param out output stream
88  * \param parameters fit parameters
89  * \return output stream
90  */
91  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerFitParameters_t& parameters);
92 
93 #endif
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
virtual ~JShowerFitParameters_t()
Virtual destructor.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1593
Data structure for fit parameters.
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
ClassDef(JShowerFitParameters_t, 1)
bool equals(const JShowerFitParameters_t &parameters) const
Equality.
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 source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:36
Maximum likelihood estimator (M-estimators).