Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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, vcarretero
10 */
11namespace JRECONSTRUCTION {
12
13 /**
14 * Data structure for fit parameters.
15 */
17 public TObject
18 {
19 /**
20 * Default constructor.
21 */
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 DMax_m = 80;
41 scanAngle_deg = 10;
42 R_Hz = 10.0e3;
43 VMax_npe = 20.0;
44 Emin_GeV = 1;
45 Emax_GeV = 1000;
46 En = 50;
47 }
48
49 /**
50 * Equality
51 *
52 * \param parameters fit parameters
53 * \return true if equals; else false
54 */
55 bool equals(const JShowerDirectionPrefitParameters_t& parameters) const
56 {
57 return (this->TMax_ns == parameters.TMax_ns &&
58 this->TMin_ns == parameters.TMin_ns &&
59 this->numberOfPrefits == parameters.numberOfPrefits &&
60 this->DMax_m == parameters.DMax_m &&
61 this->R_Hz == parameters.R_Hz &&
62 this->scanAngle_deg == parameters.scanAngle_deg &&
63 this->VMax_npe == parameters.VMax_npe &&
64 this->Emin_GeV == parameters.Emin_GeV &&
65 this->Emax_GeV == parameters.Emax_GeV &&
66 this->En == parameters.En );
67 }
68
70
71 size_t numberOfPrefits; ///< number of prefits
72 double TMax_ns; ///< maximum time for local coincidences [ns]
73 double TMin_ns; ///< minimum time for local coincidences [ns]
74 double DMax_m; ///< maximal distance to optical module [m]
75 double R_Hz; ///< default rate [Hz]
76 double VMax_npe; ///< maximum number of of photo-electrons
77 double scanAngle_deg; ///< scanning angle step in [deg]
78 double Emin_GeV; ///< minimum energy to scan
79 double Emax_GeV; ///< maximum energy to scan
80 int En; ///< number of points to scan in energy range
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 */
91 std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerDirectionPrefitParameters_t& parameters);
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::JShowerDirectionPrefitParameters_t& parameters);
101
102#endif
Maximum likelihood estimator (M-estimators).
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerDirectionPrefitParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerDirectionPrefitParameters_t &parameters)
Write fit parameters to output.
Model fits to data.
bool equals(const JShowerDirectionPrefitParameters_t &parameters) const
Equality.
ClassDef(JShowerDirectionPrefitParameters_t, 2)