Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonStartParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JMUONSTARTPARAMETERS__
2 #define __JRECONSTRUCTION__JMUONSTARTPARAMETERS__
3 
4 #include <limits>
5 
6 #include <TROOT.h>
7 #include <TObject.h>
8 
9 /**
10  * \author mdejong
11  */
12 
13 namespace JRECONSTRUCTION {}
14 namespace JPP { using namespace JRECONSTRUCTION; }
15 
16 namespace JRECONSTRUCTION
17 {
18  /**
19  * Data structure for fit parameters.
20  */
22  public TObject
23  {
24  /**
25  * Default constructor.
26  */
28  {
29  this->reset();
30  }
31 
32  /**
33  * Virtual destructor.
34  */
36  {}
37 
38  /**
39  * Reset fit parameters.
40  */
41  void reset()
42  {
43  roadWidth_m = std::numeric_limits<double>::max();
44  R_Hz = 6.0e3;
45  numberOfPrefits = 0;
46  TMin_ns = -25.0;
47  TMax_ns = +75.0;
48  Pmin1 = 0.0;
49  Pmin2 = 0.0;
50  reprocess = false;
51  }
52 
53  /**
54  * Equality
55  *
56  * \param parameters fit parameters
57  * \return true if equals; else false
58  */
60  {
61  return (this->roadWidth_m == parameters.roadWidth_m &&
62  this->R_Hz == parameters.R_Hz &&
63  this->numberOfPrefits == parameters.numberOfPrefits &&
64  this->TMin_ns == parameters.TMin_ns &&
65  this->TMax_ns == parameters.TMax_ns &&
66  this->Pmin1 == parameters.Pmin1 &&
67  this->Pmin2 == parameters.Pmin2 &&
68  this->reprocess == parameters.reprocess);
69  }
70 
72 
73  double roadWidth_m;
74  double R_Hz;
76  double TMin_ns;
77  double TMax_ns;
78  double Pmin1;
79  double Pmin2;
80  bool reprocess;
81  };
82 }
83 
84 /**
85  * Read fit parameters from input.
86  *
87  * \param in input stream
88  * \param parameters fit parameters
89  * \return input stream
90  */
92 
93 /**
94  * Write fit parameters to output.
95  *
96  * \param out output stream
97  * \param parameters fit parameters
98  * \return output stream
99  */
100 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonStartParameters_t& parameters);
101 
102 #endif
bool equals(const JMuonStartParameters_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
Data structure for fit parameters.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1549
ClassDef(JMuonStartParameters_t, 1)
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
virtual ~JMuonStartParameters_t()
Virtual destructor.
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