Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 /**
8  * \author adomi
9  */
10 namespace JRECONSTRUCTION {
11 
12  /**
13  * Data structure for fit parameters.
14  */
16  public TObject
17  {
18  /**
19  * Default constructor.
20  */
22  {
23  this->reset();
24  }
25 
26  /**
27  * Virtual destructor.
28  */
30  {}
31 
32  /**
33  * Reset fit parameters.
34  */
35  void reset()
36  {
37  factoryLimit = 40;
38  NMaxHits = 20;
39  sigma_ns = 3.0;
40  numberOfOutliers = 4;
41  TMaxLocal_ns = 20.0;
42  ctMin = -0.7;
43  roadWidth_m = 50.0;
44  }
45 
46  /**
47  * Equality
48  *
49  * \param parameters fit parameters
50  * \return true if equals; else false
51  */
53  {
54  return (this->factoryLimit == parameters.factoryLimit &&
55  this->NMaxHits == parameters.NMaxHits &&
56  this->sigma_ns == parameters.sigma_ns &&
57  this->numberOfOutliers == parameters.numberOfOutliers &&
58  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
59  this->ctMin == parameters.ctMin &&
60  this->roadWidth_m == parameters.roadWidth_m);
61  }
62 
64 
66  size_t NMaxHits;
67  double sigma_ns;
69  double TMaxLocal_ns;
70  double ctMin;
71  double roadWidth_m;
72  };
73 }
74 
75 /**
76  * Read fit parameters from input.
77  *
78  * \param in input stream
79  * \param parameters fit parameters
80  * \return input stream
81  */
83 
84 /**
85  * Write fit parameters to output.
86  *
87  * \param out output stream
88  * \param parameters fit parameters
89  * \return output stream
90  */
91 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPrefitParameters_t& parameters);
92 
93 #endif
virtual ~JShowerPrefitParameters_t()
Virtual destructor.
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
bool equals(const JShowerPrefitParameters_t &parameters) const
Equality.
ClassDef(JShowerPrefitParameters_t, 2)
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)