Jpp  16.0.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerPrefitParameters_t.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JSHOWERPREFITPARAMETERS__
2 #define __JRECONSTRUCTION__JSHOWERPREFITPARAMETERS__
3 
4 #include <TROOT.h>
5 #include <TObject.h>
6 
7 /**
8  * \author adomi
9  */
10 namespace JRECONSTRUCTION {
11 
12  /**
13  * Data structure for fit parameters.
14  */
16  public TObject
17  {
18  /**
19  * Default constructor.
20  */
22  {
23  this->reset();
24  }
25 
26  /**
27  * Virtual destructor.
28  */
30  {}
31 
32  /**
33  * Reset fit parameters.
34  */
35  void reset()
36  {
37  factoryLimit = 40;
38  NMaxHits = 20;
39  sigma_ns = 3.0;
40  numberOfOutliers = 4;
41  TMaxLocal_ns = 20.0;
42  ctMin = -0.7;
43  roadWidth_m = 50.0;
44  numberOfPrefits = 50;
45  }
46 
47  /**
48  * Equality
49  *
50  * \param parameters fit parameters
51  * \return true if equals; else false
52  */
54  {
55  return (this->factoryLimit == parameters.factoryLimit &&
56  this->NMaxHits == parameters.NMaxHits &&
57  this->sigma_ns == parameters.sigma_ns &&
58  this->numberOfOutliers == parameters.numberOfOutliers &&
59  this->TMaxLocal_ns == parameters.TMaxLocal_ns &&
60  this->ctMin == parameters.ctMin &&
61  this->roadWidth_m == parameters.roadWidth_m &&
62  this->numberOfPrefits == parameters.numberOfPrefits);
63  }
64 
66 
67  int factoryLimit; ///< factory limit for combinatorics
68  size_t NMaxHits; ///< maximal number of hits
69  double sigma_ns; ///< time resolution [ns]
70  int numberOfOutliers; ///< maximum number of outliers
71  double TMaxLocal_ns; ///< time window for local coincidences [ns]
72  double ctMin; ///< minimal cosine space angle between PMT axes
73  double roadWidth_m; ///< road width [m]
74  size_t numberOfPrefits; ///< number of prefits to be saved in output
75  };
76 }
77 
78 /**
79  * Read fit parameters from input.
80  *
81  * \param in input stream
82  * \param parameters fit parameters
83  * \return input stream
84  */
86 
87 /**
88  * Write fit parameters to output.
89  *
90  * \param out output stream
91  * \param parameters fit parameters
92  * \return output stream
93  */
94 std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerPrefitParameters_t& parameters);
95 
96 #endif
int factoryLimit
factory limit for combinatorics
virtual ~JShowerPrefitParameters_t()
Virtual destructor.
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
bool equals(const JShowerPrefitParameters_t &parameters) const
Equality.
double ctMin
minimal cosine space angle between PMT axes
size_t numberOfPrefits
number of prefits to be saved in output
ClassDef(JShowerPrefitParameters_t, 2)
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input.
Definition: JHead.hh:1693
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
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
double TMaxLocal_ns
time window for local coincidences [ns]