Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerDirectionPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERDIRECTIONPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERDIRECTIONPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 #include "JFit/JMEstimator.hh"
7 
8 /**
9  * \author adomi, gmaggi
10  */
11 namespace JRECONSTRUCTION {
12 
13  /**
14  * Data structure for fit parameters.
15  */
17  public TObject
18  {
19  /**
20  * Default constructor.
21  */
23  {
24  this->reset();
25  }
26 
27  /**
28  * Virtual destructor.
29  */
31 
32  /**
33  * Reset fit parameters.
34  */
35  void reset()
36  {
37  numberOfPrefits = 1;
38  TMax_ns = 30;
39  TMin_ns = -30;
40  roadWidth_m = 80;
41  DMin_m = 80;
42  E_GeV = 13;
43  MaxAngle_deg_lowE = 40;
44  scanAngle_deg_lowE = 10;
45  MaxAngle_deg_highE = 20;
47  R_Hz = 10.0e3;
49  }
50 
51  /**
52  * Equality
53  *
54  * \param parameters fit parameters
55  * \return true if equals; else false
56  */
58  {
59  return (this->TMax_ns == parameters.TMax_ns &&
60  this->TMin_ns == parameters.TMin_ns &&
61  this->numberOfPrefits == parameters.numberOfPrefits &&
62  this->roadWidth_m == parameters.roadWidth_m &&
63  this->DMin_m == parameters.DMin_m &&
64  this->E_GeV == parameters.E_GeV &&
65  this->R_Hz == parameters.R_Hz &&
66  this->mestimator == parameters.mestimator &&
67  this->MaxAngle_deg_lowE == parameters.MaxAngle_deg_lowE &&
68  this->scanAngle_deg_lowE == parameters.scanAngle_deg_lowE &&
69  this->MaxAngle_deg_highE == parameters.MaxAngle_deg_highE &&
70  this->scanAngle_deg_highE == parameters.scanAngle_deg_highE);
71  }
72 
74 
76  double TMax_ns;
77  double TMin_ns;
78  double roadWidth_m;
79  double DMin_m;
80  double E_GeV;
81  double R_Hz;
87  };
88 }
89 
90 /**
91  * Read fit parameters from input.
92  *
93  * \param in input stream
94  * \param parameters fit parameters
95  * \return input stream
96  */
98 
99  /**
100  * Write fit parameters to output.
101  *
102  * \param out output stream
103  * \param parameters fit parameters
104  * \return output stream
105  */
106  std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerDirectionPrefitParameters_t& parameters);
107 
108 #endif
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 JShowerDirectionPrefitParameters_t &parameters) const
Equality.
ClassDef(JShowerDirectionPrefitParameters_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)
Maximum likelihood estimator (M-estimators).