Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JShowerPositionFitParameters_t.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JSHOWERPOSITIONFITPARAMETERS__
2#define __JRECONSTRUCTION__JSHOWERPOSITIONFITPARAMETERS__
3
4#include <TROOT.h>
5#include <TObject.h>
6
7/**
8 * \author adomi
9 */
10namespace JRECONSTRUCTION {
11
13 public TObject
14 {
15 /**
16 * Default constructor.
17 */
19 {
20 this->reset();
21 }
22
23 /**
24 * Virtual destructor.
25 */
28
29 /**
30 * Reset fit parameters.
31 */
32 void reset()
33 {
34 numberOfPrefits = 0; // process all inputs from PointSimplex, which should give a max of 100
35 TMax_ns = 100.0;
36 TMin_ns = -100.0;
37 DMax_m = 80.0;
38 R_Hz = 10000;
39 Emin_GeV = 1;
40 Emax_GeV = 200;
41 En = 10;
42 TTS_ns = 2;
43 VMax_npe = 20.0;
44 NMax = 1000;
45 }
46
47 /**
48 * Equality
49 *
50 * \param parameters fit parameters
51 * \return true if equals; else false
52 */
53 bool equals(const JShowerPositionFitParameters_t& parameters) const
54 {
55 return (this->numberOfPrefits == parameters.numberOfPrefits &&
56 this->TMax_ns == parameters.TMax_ns &&
57 this->TMin_ns == parameters.TMin_ns &&
58 this->DMax_m == parameters.DMax_m &&
59 this->R_Hz == parameters.R_Hz &&
60 this->TTS_ns == parameters.TTS_ns &&
61 this->Emin_GeV == parameters.Emin_GeV &&
62 this->Emax_GeV == parameters.Emax_GeV &&
63 this->En == parameters.En &&
64 this->VMax_npe == parameters.VMax_npe &&
65 this->NMax == parameters.NMax);
66 }
67
69
70 size_t numberOfPrefits; ///< number of prefits
71 double TMax_ns; ///< maximum time for local coincidences [ns]
72 double TMin_ns; ///< minimum time for local coincidences [ns]
73 double DMax_m; ///< maximal distance to optical module [m]
74 double Emin_GeV; ///< minimum energy to scan
75 double Emax_GeV; ///< maximum energy to scan
76 int En; ///< number of points to scan in energy range
77 double R_Hz; ///< default rate [Hz]
78 double TTS_ns; ///< transition-time spread [ns]
79 double VMax_npe; ///< maximum number of of photo-electrons
80 int NMax; ///< maximum number of iterations
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 */
91std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerPositionFitParameters_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 */
100std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPositionFitParameters_t& parameters);
101
102#endif
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerPositionFitParameters_t &parameters)
Read fit parameters from input.
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerPositionFitParameters_t &parameters)
Write fit parameters to output.
Model fits to data.
double VMax_npe
maximum number of of photo-electrons
bool equals(const JShowerPositionFitParameters_t &parameters) const
Equality.
double TMin_ns
minimum time for local coincidences [ns]
double TMax_ns
maximum time for local coincidences [ns]
ClassDef(JShowerPositionFitParameters_t, 2)
double DMax_m
maximal distance to optical module [m]