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