Jpp  18.0.0-rc.1
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  }
54 
55  /**
56  * Equality
57  *
58  * \param parameters fit parameters
59  * \return true if equals; else false
60  */
62  {
63  return (this->factoryLimit == parameters.factoryLimit &&
64  this->NMaxHits == parameters.NMaxHits &&
65  this->sigma_ns == parameters.sigma_ns &&
66  this->gridAngle_deg == parameters.gridAngle_deg &&
67  this->useL0 == parameters.useL0 &&
68  this->numberOfOutliers == parameters.numberOfOutliers &&
69  this->numberOfPrefits == parameters.numberOfPrefits &&
70  this->DZMax == parameters.DZMax &&
71  this->numberOfDZMax == parameters.numberOfDZMax &&
72  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
73  this->roadWidth_m == parameters.roadWidth_m);
74  }
75 
77 
78  int factoryLimit; ///< factory limit for combinatorics
79  int NMaxHits; ///< maximal number of hits
80  double sigma_ns; ///< time resolution [ns]
81  double gridAngle_deg; ///< grid angle for directions [deg]
82  bool useL0; ///< option for L0 hit use
83  int numberOfOutliers; ///< maximum number of outliers
84  size_t numberOfPrefits; ///< number of prefits
85  double DZMax; ///< maximal slope for downward pointing solutions
86  size_t numberOfDZMax; ///< additional number of downward pointing solutions
87  double TMaxLocal_ns; ///< time window for local coincidences [ns]
88  double ctMin; ///< minimal cosine space angle between PMT axes
89  double roadWidth_m; ///< road width [m]
90  };
91 }
92 
93 /**
94  * Read fit parameters from input.
95  *
96  * \param in input stream
97  * \param parameters fit parameters
98  * \return input stream
99  */
101 
102 /**
103  * Write fit parameters to output.
104  *
105  * \param out output stream
106  * \param parameters fit parameters
107  * \return output stream
108  */
109 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JMuonPrefitParameters_t& parameters);
110 
111 #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:1814
double DZMax
maximal slope for downward pointing solutions
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.
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:46
double ctMin
minimal cosine space angle between PMT axes