Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JMUONPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JMUONPREFITPARAMETERS__
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  factoryLimit = 8;
42  NMaxHits = 50;
43  sigma_ns = 5;
44  gridAngle_deg = 1;
45  useL0 = false;
46  numberOfOutliers = 3;
47  numberOfPrefits = 12;
48  DZMax = 0.0;
49  numberOfDZMax = 1;
50  TMaxLocal_ns = 18.0;
51  ctMin = 0;
52  roadWidth_m = 200;
53  Qmin = 0.0;
54  }
55 
56  /**
57  * Equality
58  *
59  * \param parameters fit parameters
60  * \return true if equals; else false
61  */
63  {
64  return (this->factoryLimit == parameters.factoryLimit &&
65  this->NMaxHits == parameters.NMaxHits &&
66  this->sigma_ns == parameters.sigma_ns &&
67  this->gridAngle_deg == parameters.gridAngle_deg &&
68  this->useL0 == parameters.useL0 &&
69  this->numberOfOutliers == parameters.numberOfOutliers &&
70  this->numberOfPrefits == parameters.numberOfPrefits &&
71  this->DZMax == parameters.DZMax &&
72  this->numberOfDZMax == parameters.numberOfDZMax &&
73  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
74  this->roadWidth_m == parameters.roadWidth_m &&
75  this->Qmin == parameters.Qmin);
76  }
77 
79 
80  int factoryLimit; ///< factory limit for combinatorics
81  int NMaxHits; ///< maximal number of hits
82  double sigma_ns; ///< time resolution [ns]
83  double gridAngle_deg; ///< grid angle for directions [deg]
84  bool useL0; ///< option for L0 hit use
85  int numberOfOutliers; ///< maximum number of outliers
86  size_t numberOfPrefits; ///< number of prefits
87  double DZMax; ///< maximal slope for downward pointing solutions
88  size_t numberOfDZMax; ///< additional number of downward pointing solutions
89  double TMaxLocal_ns; ///< time window for local coincidences [ns]
90  double ctMin; ///< minimal cosine space angle between PMT axes
91  double roadWidth_m; ///< road width [m]
92  double Qmin; ///< minimal quality step
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::JMuonPrefitParameters_t& parameters);
113 
114 #endif
Definition: JRoot.hh:19
Data structure for fit parameters.
*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(JMuonPrefitParameters_t, 1)
int numberOfOutliers
maximum number of outliers
virtual ~JMuonPrefitParameters_t()
Virtual destructor.
double gridAngle_deg
grid angle for directions [deg]
double TMaxLocal_ns
time window for local coincidences [ns]
int factoryLimit
factory limit for combinatorics
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1832
double DZMax
maximal slope for downward pointing solutions
then fatal The output file must have the wildcard in the e g root fi 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)
size_t numberOfDZMax
additional number of downward pointing solutions
bool equals(const JMuonPrefitParameters_t &parameters) const
Equality.
double ctMin
minimal cosine space angle between PMT axes