Jpp
 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 = 50;
35  TMax_ns = 100.0;
36  TMin_ns = -100.0;
37  roadWidth_m = 80.0;
38  E_GeV = 10;
39  R_Hz = 10000;
40  TTS_ns = 2;
41  }
42 
43  /**
44  * Equality
45  *
46  * \param parameters fit parameters
47  * \return true if equals; else false
48  */
50  {
51  return (this->numberOfPrefits == parameters.numberOfPrefits &&
52  this->TMax_ns == parameters.TMax_ns &&
53  this->TMin_ns == parameters.TMin_ns &&
54  this->ctMin == parameters.ctMin &&
55  this->roadWidth_m == parameters.roadWidth_m &&
56  this->E_GeV == parameters.E_GeV &&
57  this->R_Hz == parameters.R_Hz &&
58  this->TTS_ns == parameters.TTS_ns);
59  }
60 
62 
64  double TMax_ns;
65  double TMin_ns;
66  double ctMin;
67  double roadWidth_m;
68  double E_GeV;
69  double R_Hz;
70  double TTS_ns;
71  };
72 }
73 
74 /**
75  * Read fit parameters from input.
76  *
77  * \param in input stream
78  * \param parameters fit parameters
79  * \return input stream
80  */
82 
83 /**
84  * Write fit parameters to output.
85  *
86  * \param out output stream
87  * \param parameters fit parameters
88  * \return output stream
89  */
90 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPositionFitParameters_t& parameters);
91 
92 #endif
bool equals(const JShowerPositionFitParameters_t &parameters) const
Equality.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
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:1278
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)