Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonSimplexParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JMUONSIMPLEXPARAMETERS__
2 #define __JRECONSTRUCTION__JMUONSIMPLEXPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 /**
8  * \author gmaggi
9  */
10 
11 namespace JRECONSTRUCTION {}
12 namespace JPP { using namespace JRECONSTRUCTION; }
13 
14 namespace JRECONSTRUCTION
15 {
16  /**
17  * Data structure for fit parameters.
18  */
20  public TObject
21  {
22  /**
23  * Default constructor.
24  */
26  {
27  this->reset();
28  }
29 
30  /**
31  * Virtual destructor.
32  */
34  {}
35 
36  /**
37  * Reset fit parameters.
38  */
39  void reset()
40  {
41  sigma_ns = 3;
42  useL0 = true;
43  numberOfPrefits = 0;
44  TMaxLocal_ns = 15.0;
45  ctMin = 0.0;
46  roadWidth_m = 200.0;
47  TMin_ns = -50.0;
48  TMax_ns = +50.0;
49  NMax = 1000;
50  reprocess = false;
51  }
52 
53  /**
54  * Equality
55  *
56  * \param parameters fit parameters
57  * \return true if equals; else false
58  */
60  {
61  return (this->sigma_ns == parameters.sigma_ns &&
62  this->useL0 == parameters.useL0 &&
63  this->numberOfPrefits == parameters.numberOfPrefits &&
64  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
65  this->ctMin == parameters.ctMin &&
66  this->roadWidth_m == parameters.roadWidth_m &&
67  this->TMin_ns == parameters.TMin_ns &&
68  this->TMax_ns == parameters.TMax_ns &&
69  this->NMax == parameters.NMax &&
70  this->reprocess == parameters.reprocess);
71  }
72 
74 
75  double sigma_ns; ///< time resolution [ns]
76  bool useL0; ///< option for L0 hit use
77  size_t numberOfPrefits; ///< number of prefits
78  double TMaxLocal_ns; ///< time window for local coincidences [ns]
79  double ctMin; ///< minimal cosine space angle between PMT axes
80  double roadWidth_m; ///< road width [m]
81  double TMin_ns; ///< minimal time w.r.t. Cherenkov hypothesis [ns]
82  double TMax_ns; ///< maximal time w.r.t. Cherenkov hypothesis [ns]
83  int NMax; ///< maximum number of iterations
84  bool reprocess; ///< reprocess
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  */
96 
97 /**
98  * Write fit parameters to output.
99  *
100  * \param out output stream
101  * \param parameters fit parameters
102  * \return output stream
103  */
104 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonSimplexParameters_t& parameters);
105 
106 #endif
double TMax_ns
maximal time w.r.t. Cherenkov hypothesis [ns]
double TMaxLocal_ns
time window for local coincidences [ns]
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
ClassDef(JMuonSimplexParameters_t, 2)
bool equals(const JMuonSimplexParameters_t &parameters) const
Equality.
virtual ~JMuonSimplexParameters_t()
Virtual destructor.
double TMin_ns
minimal time w.r.t. Cherenkov hypothesis [ns]
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1829
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
double ctMin
minimal cosine space angle between PMT axes