Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JShowerPointSimplexParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JSHOWERPOINTSIMPLEXPARAMETERS__
2#define __JRECONSTRUCTION__JSHOWERPOINTSIMPLEXPARAMETERS__
3
4#include <TROOT.h>
5#include <TObject.h>
6
8#include "JFit/JMEstimator.hh"
9
10/**
11 * \author adomi, vcarretero
12 */
13namespace JRECONSTRUCTION {
14
16 public TObject
17 {
18 /**
19 * Default constructor.
20 */
22 {
23 this->reset();
24 }
25
26 /**
27 * Virtual destructor.
28 */
31
32 /**
33 * Reset fit parameters.
34 */
35 void reset()
36 {
37 numberOfPrefits = 0; // 0 means process all inputs
38 numberOfPostfits = 0; // 0 means do not select
39 Qwatershed = 0; // 0 means no watershed algorithm
40 sigma_ns = 1;
41 TMaxLocal_ns = 10;
42 TMax_ns = 60.0;
43 TMin_ns = -60.0;
44 DMax_m = 50.0;
45 ctMin = 0.2;
47 NMax = 1000;
48 }
49
50 /**
51 * Equality
52 *
53 * \param parameters fit parameters
54 * \return true if equals; else false
55 */
56 bool equals(const JShowerPointSimplexParameters_t& parameters) const
57 {
58 return (this->numberOfPrefits == parameters.numberOfPrefits &&
59 this->numberOfPostfits == parameters.numberOfPostfits &&
60 this->Qwatershed == parameters.Qwatershed &&
61 this->sigma_ns == parameters.sigma_ns &&
62 this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
63 this->TMax_ns == parameters.TMax_ns &&
64 this->TMin_ns == parameters.TMin_ns &&
65 this->DMax_m == parameters.DMax_m &&
66 this->ctMin == parameters.ctMin &&
67 this->mestimator == parameters.mestimator &&
68 this->NMax == parameters.NMax
69 );
70 }
71
73
74 size_t numberOfPrefits; ///< number of prefits
75 size_t numberOfPostfits; ///< number of postfits
76 double Qwatershed; ///< quality threshold
77 double sigma_ns; ///< time resolution [ns]
78 double TMaxLocal_ns; ///< time window for local coincidences [ns]
79 double TMax_ns; ///< maximum time for local coincidences [ns]
80 double TMin_ns; ///< minimum time for local coincidences [ns]
81 double DMax_m; ///< maximal distance to optical module [m]
82 double ctMin; ///< minimal cosine space angle between PMT axes
83 int mestimator; ///< m-estimator (see JFIT::JMEstimator_t)
84 int NMax; ///< maximum number of iterations
85 };
86}
87
88/**
89 * Read fit parameters from input.
90 *
91 * \param in input stream
92 * \param parameters fit parameters
93 * \return input stream
94 */
95std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
96
97/**
98 * Write fit parameters to output.
99 *
100 * \param out output stream
101 * \param parameters fit parameters
102 * \return output stream
103 */
104std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t& parameters);
105
106#endif
Maximum likelihood estimator (M-estimators).
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerPointSimplexParameters_t &parameters)
Write fit parameters to output.
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerPointSimplexParameters_t &parameters)
Read fit parameters from input.
@ EM_LORENTZIAN
double TMin_ns
minimum time for local coincidences [ns]
double TMaxLocal_ns
time window for local coincidences [ns]
ClassDef(JShowerPointSimplexParameters_t, 3)
double TMax_ns
maximum time for local coincidences [ns]
double ctMin
minimal cosine space angle between PMT axes
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
double DMax_m
maximal distance to optical module [m]