Jpp  pmt_effective_area_update
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  }
51 
52  /**
53  * Equality
54  *
55  * \param parameters fit parameters
56  * \return true if equals; else false
57  */
59  {
60  return (this->TMax_ns == parameters.TMax_ns &&
61  this->TMin_ns == parameters.TMin_ns &&
62  this->numberOfPrefits == parameters.numberOfPrefits &&
63  this->numberOfOutfits == parameters.numberOfOutfits &&
64  this->roadWidth_m == parameters.roadWidth_m &&
65  this->DMin_m == parameters.DMin_m &&
66  this->E_GeV == parameters.E_GeV &&
67  this->R_Hz == parameters.R_Hz &&
68  this->mestimator == parameters.mestimator &&
69  this->MaxAngle_deg_lowE == parameters.MaxAngle_deg_lowE &&
70  this->scanAngle_deg_lowE == parameters.scanAngle_deg_lowE &&
71  this->MaxAngle_deg_highE == parameters.MaxAngle_deg_highE &&
72  this->scanAngle_deg_highE == parameters.scanAngle_deg_highE);
73  }
74 
76 
79  double TMax_ns;
80  double TMin_ns;
81  double roadWidth_m;
82  double DMin_m;
83  double E_GeV;
84  double R_Hz;
90  };
91 }
92 
93 /**
94  * Read fit parameters from input.
95  *
96  * \param in input stream
97  * \param parameters fit parameters
98  * \return input stream
99  */
101 
102  /**
103  * Write fit parameters to output.
104  *
105  * \param out output stream
106  * \param parameters fit parameters
107  * \return output stream
108  */
109  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerDirectionPrefitParameters_t& parameters);
110 
111 #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
bool equals(const JShowerDirectionPrefitParameters_t &parameters) const
Equality.
ClassDef(JShowerDirectionPrefitParameters_t, 1)
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)
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).