Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonEnergyParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JMUONENERGYPARAMETERS__
2 #define __JRECONSTRUCTION__JMUONENERGYPARAMETERS__
3 
4 #include <limits>
5 
6 #include <TROOT.h>
7 #include <TObject.h>
8 
9 #include "JFit/JMEstimator.hh"
10 
11 
12 /**
13  * \author mdejong
14  */
15 
16 namespace JRECONSTRUCTION {}
17 namespace JPP { using namespace JRECONSTRUCTION; }
18 
19 namespace JRECONSTRUCTION
20 {
21  /**
22  * Data structure for fit parameters.
23  */
25  public TObject
26  {
27  /**
28  * Default constructor.
29  */
31  {
32  this->reset();
33  }
34 
35  /**
36  * Virtual destructor.
37  */
39  {}
40 
41  /**
42  * Reset fit parameters.
43  */
44  void reset()
45  {
46  roadWidth_m = std::numeric_limits<double>::max();
47  R_Hz = 6.0e3;
48  numberOfPrefits = 0;
49  EMin_log = 1.0;
50  EMax_log = 8.0;
51  TMin_ns = -50.0;
52  TMax_ns = +450.0;
53  ZMin_m = std::numeric_limits<double>::lowest();
54  resolution = 0.01;
56  reprocess = false;
57  }
58 
59  /**
60  * Equality
61  *
62  * \param parameters fit parameters
63  * \return true if equals; else false
64  */
66  {
67  return (this->roadWidth_m == parameters.roadWidth_m &&
68  this->R_Hz == parameters.R_Hz &&
69  this->numberOfPrefits == parameters.numberOfPrefits &&
70  this->EMin_log == parameters.EMin_log &&
71  this->EMax_log == parameters.EMax_log &&
72  this->TMin_ns == parameters.TMin_ns &&
73  this->TMax_ns == parameters.TMax_ns &&
74  this->ZMin_m == parameters.ZMin_m &&
75  this->resolution == parameters.resolution &&
76  this->mestimator == parameters.mestimator &&
77  this->reprocess == parameters.reprocess);
78  }
79 
81 
82  double roadWidth_m; ///< road width [m]
83  double R_Hz; ///< default rate [Hz]
84  size_t numberOfPrefits; ///< number of prefits
85  double EMin_log; ///< minimal energy [log10(GeV)]
86  double EMax_log; ///< maximal energy [log10(GeV)]
87  double TMin_ns; ///< minimal time w.r.t. Cherenkov hypothesis [ns]
88  double TMax_ns; ///< maximal time w.r.t. Cherenkov hypothesis [ns]
89  double ZMin_m; ///< minimal z-position [m]
90  double resolution; ///< energy resolution [log10(GeV)]
91  int mestimator; ///< M-estimator
92  bool reprocess; ///< reprocess
93  };
94 }
95 
96 /**
97  * Read fit parameters from input.
98  *
99  * \param in input stream
100  * \param parameters fit parameters
101  * \return input stream
102  */
104 
105 /**
106  * Write fit parameters to output.
107  *
108  * \param out output stream
109  * \param parameters fit parameters
110  * \return output stream
111  */
112 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonEnergyParameters_t& parameters);
113 
114 #endif
bool equals(const JMuonEnergyParameters_t &parameters) const
Equality.
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]
ClassDef(JMuonEnergyParameters_t, 1)
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
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
double resolution
energy resolution [log10(GeV)]
Data structure for fit parameters.
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1693
double EMin_log
minimal energy [log10(GeV)]
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
double TMax_ns
maximal time w.r.t. Cherenkov hypothesis [ns]
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
Maximum likelihood estimator (M-estimators).
double EMax_log
maximal energy [log10(GeV)]
virtual ~JMuonEnergyParameters_t()
Virtual destructor.