Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMuonGandalfParameters_t.hh
Go to the documentation of this file.
1 #ifndef JMUONGANDALFPARAMETERS_t_INCLUDE
2 #define JMUONGANDALFPARAMETERS_t_INCLUDE
3 
4 #include <cstddef>
5 
6 #include <TROOT.h>
7 #include <TObject.h>
8 
9 /**
10  * \author gmaggi
11  */
12 
13 namespace JFIT
14 {
16  public TObject
17  {
18  double roadWidth_m;
19  double R_Hz;
20  std::size_t numberOfPrefits;
21  double TTS_ns;
22  double E_GeV;
23  bool reprocess;
24 
26 
28 
29  void reset()
30  {
31  roadWidth_m = 999;
32  R_Hz = 6.0e3;
33  numberOfPrefits = 0;
34  TTS_ns = 2;
35  E_GeV = 1.0e3;
36  reprocess = false;
37  }
38 
39  bool equals(const JMuonGandalfParameters_t &parameters) const
40  {
41  return (this->roadWidth_m == parameters.roadWidth_m and
42  this->R_Hz == parameters.R_Hz and
43  this->numberOfPrefits == parameters.numberOfPrefits and
44  this->TTS_ns == parameters.TTS_ns and
45  this->E_GeV == parameters.E_GeV and
46  this->reprocess == parameters.reprocess);
47  }
48 
49 
51 
52  };
53 
54 }
55 
56 #endif
ClassDef(JMuonGandalfParameters_t, 1)
bool equals(const JMuonGandalfParameters_t &parameters) const
Definition: JRoot.hh:19