Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JShowerBjorkenYParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JSHOWERBJORKENYPARAMETERS__
2#define __JRECONSTRUCTION__JSHOWERBJORKENYPARAMETERS__
3
4#include <TROOT.h>
5#include <TObject.h>
6#include "JFit/JMEstimator.hh"
7
8/**
9 * \author adomi
10 */
11namespace 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 {
38 TMax_ns = 30;
39 TMin_ns = -30;
40 roadWidth_m = 80;
41 R_Hz = 10.0e3;
43 fit_step = 0.5;
44 VMax_npe = 20.0;
45 NMax = 1000;
46 }
47
48 /**
49 * Equality
50 *
51 * \param parameters fit parameters
52 * \return true if equals; else false
53 */
54 bool equals(const JShowerBjorkenYParameters_t& parameters) const
55 {
56 return (this->TMax_ns == parameters.TMax_ns &&
57 this->TMin_ns == parameters.TMin_ns &&
58 this->numberOfPrefits == parameters.numberOfPrefits &&
59 this->roadWidth_m == parameters.roadWidth_m &&
60 this->R_Hz == parameters.R_Hz &&
61 this->mestimator == parameters.mestimator &&
62 this->fit_step == parameters.fit_step &&
63 this->VMax_npe == parameters.VMax_npe &&
64 this->NMax == parameters.NMax);
65 }
66
68
69 size_t numberOfPrefits; ///< number of prefits
70 double TMax_ns; ///< maximum time for local coincidences [ns]
71 double TMin_ns; ///< minimum time for local coincidences [ns]
72 double roadWidth_m; ///< road width [m]
73 double R_Hz; ///< default rate [Hz]
74 int mestimator; ///< M-estimator
75 double fit_step; ///< simplex initial step
76 double VMax_npe; ///< maximum number of of photo-electrons
77 int NMax; ///< maximum number of iterations
78 };
79}
80
81/**
82 * Read fit parameters from input.
83 *
84 * \param in input stream
85 * \param parameters fit parameters
86 * \return input stream
87 */
88 std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerBjorkenYParameters_t& parameters);
89
90 /**
91 * Write fit parameters to output.
92 *
93 * \param out output stream
94 * \param parameters fit parameters
95 * \return output stream
96 */
97 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerBjorkenYParameters_t& parameters);
98
99#endif
Maximum likelihood estimator (M-estimators).
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerBjorkenYParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerBjorkenYParameters_t &parameters)
Write fit parameters to output.
Model fits to data.
double TMax_ns
maximum time for local coincidences [ns]
double VMax_npe
maximum number of of photo-electrons
ClassDef(JShowerBjorkenYParameters_t, 1)
bool equals(const JShowerBjorkenYParameters_t &parameters) const
Equality.
double TMin_ns
minimum time for local coincidences [ns]