Jpp  pmt_effective_area_update
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerEnergyPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERENERGYPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERENERGYPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 #include "JFit/JMEstimator.hh"
8 #include "JFit/JEnergy.hh"
9 
10 /**
11  * \author adomi
12  */
13 namespace JRECONSTRUCTION {
14 
15  /**
16  * Data structure for fit parameters.
17  */
19  public TObject
20  {
21  /**
22  * Default constructor.
23  */
25  {
26  this->reset();
27  }
28 
29  /**
30  * Virtual destructor.
31  */
33 
34  /**
35  * Reset fit parameters.
36  */
37  void reset()
38  {
39  TMax_ns = 500;
40  TMin_ns = -500;
41  roadWidth_m = 80;
42  Emin_GeV = 1;
43  Emax_GeV = 100;
44  resolution = 0.01;
45  R_Hz = 10.0e3;
47  numberOfPrefits = 0;
48  numberOfOutfits = 1;
49  }
50 
51  /**
52  * Equality
53  *
54  * \param parameters fit parameters
55  * \return true if equals; else false
56  */
58  {
59  return (this->TMax_ns == parameters.TMax_ns &&
60  this->TMin_ns == parameters.TMin_ns &&
61  this->numberOfPrefits == parameters.numberOfPrefits &&
62  this->numberOfOutfits == parameters.numberOfOutfits &&
63  this->roadWidth_m == parameters.roadWidth_m &&
64  this->Emin_GeV == parameters.Emin_GeV &&
65  this->Emax_GeV == parameters.Emax_GeV &&
66  this->resolution == parameters.resolution &&
67  this->R_Hz == parameters.R_Hz &&
68  this->mestimator == parameters.mestimator);
69  }
70 
72 
73  double TMax_ns;
74  double TMin_ns;
75  double roadWidth_m;
76  double Emin_GeV;
77  double Emax_GeV;
78  double resolution;
79  double R_Hz;
83  };
84 }
85 
86 /**
87  * Read fit parameters from input.
88  *
89  * \param in input stream
90  * \param parameters fit parameters
91  * \return input stream
92  */
94 
95 /**
96  * Write fit parameters to output.
97  *
98  * \param out output stream
99  * \param parameters fit parameters
100  * \return output stream
101  */
102 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerEnergyPrefitParameters_t& parameters);
103 
104 #endif
ClassDef(JShowerEnergyPrefitParameters_t, 1)
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
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1618
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
bool equals(const JShowerEnergyPrefitParameters_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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:40
Maximum likelihood estimator (M-estimators).