Jpp - 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  }
43 
44  /**
45  * Equality
46  *
47  * \param parameters fit parameters
48  * \return true if equals; else false
49  */
51  {
52  return (this->numberOfPrefits == parameters.numberOfPrefits &&
53  this->numberOfOutfits == parameters.numberOfOutfits &&
54  this->TMax_ns == parameters.TMax_ns &&
55  this->TMin_ns == parameters.TMin_ns &&
56  this->ctMin == parameters.ctMin &&
57  this->roadWidth_m == parameters.roadWidth_m &&
58  this->E_GeV == parameters.E_GeV &&
59  this->R_Hz == parameters.R_Hz &&
60  this->TTS_ns == parameters.TTS_ns);
61  }
62 
64 
67  double TMax_ns;
68  double TMin_ns;
69  double ctMin;
70  double roadWidth_m;
71  double E_GeV;
72  double R_Hz;
73  double TTS_ns;
74  };
75 }
76 
77 /**
78  * Read fit parameters from input.
79  *
80  * \param in input stream
81  * \param parameters fit parameters
82  * \return input stream
83  */
85 
86 /**
87  * Write fit parameters to output.
88  *
89  * \param out output stream
90  * \param parameters fit parameters
91  * \return output stream
92  */
93 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPositionFitParameters_t& parameters);
94 
95 #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
ClassDef(JShowerPositionFitParameters_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:38