Jpp
JMuonParameters.hh
Go to the documentation of this file.
1 #ifndef JMUONPARAMETERS_INCLUDE
2 #define JMUONPARAMETERS_INCLUDE
3 
4 #include "JFit/JEvt.hh"
8 
9 #include "JROOT/JRoot.hh"
10 
11 #include <TROOT.h>
12 #include <TObject.h>
13 
14 /**
15  * \author gmaggi
16  */
17 
18 namespace JFIT
19 {
20  struct JMuonParameters:
21  public TObject
22  {
26 
27  JMuonParameters() {this->reset();}
28 
29  void reset()
30  {
31  prefit.reset();
32  simplex.reset();
33  gandalf.reset();
34  }
35 
36  virtual ~JMuonParameters(){}
37 
38  inline operator JMuonPrefitParameters_t() const { return prefit;} //!< JMuonPrefitParameters_t parameters
39 
40  inline operator JMuonSimplexParameters_t() const { return simplex;} //!< JMuonSimplexParameters_t parameters
41 
42  inline operator JMuonGandalfParameters_t() const { return gandalf;} //!< JMuonSimplexParameters_t parameters
43 
44  bool equals(const JMuonParameters &parameters) const
45  {
46  return (prefit.equals(parameters) and
47  simplex.equals(parameters) and
48  gandalf.equals(parameters) );
49  }
50 
51 
53 
54  static int ROOT_IO_VERSION;
55  };
56 
57 }
58 
59  std::istream& operator>>(std::istream& in,
60  JFIT::JMuonParameters& parameters);
61 
62  std::ostream& operator<<(std::ostream& out,
63  const JFIT::JMuonParameters& parameters);
64 
65 
66 #endif
JFIT::JMuonParameters::equals
bool equals(const JMuonParameters &parameters) const
Definition: JMuonParameters.hh:44
JMuonPrefitParameters_t.hh
TObject
Definition: JRoot.hh:19
JFIT::JMuonSimplexParameters_t::equals
bool equals(const JMuonSimplexParameters_t &parameters) const
Definition: JMuonSimplexParameters_t.hh:39
JFIT
Auxiliary classes and methods for linear and iterative data regression.
Definition: JEnergy.hh:15
JFIT::JMuonParameters::JMuonParameters
JMuonParameters()
Definition: JMuonParameters.hh:27
JMuonSimplexParameters_t.hh
JFIT::JMuonGandalfParameters_t::equals
bool equals(const JMuonGandalfParameters_t &parameters) const
Definition: JMuonGandalfParameters_t.hh:39
JFIT::JMuonParameters
Definition: JMuonParameters.hh:20
JFIT::JMuonPrefitParameters_t::reset
void reset()
Definition: JMuonPrefitParameters_t.hh:38
JFIT::JMuonGandalfParameters_t::reset
void reset()
Definition: JMuonGandalfParameters_t.hh:29
JFIT::JMuonParameters::simplex
JMuonSimplexParameters_t simplex
Definition: JMuonParameters.hh:24
JFIT::JMuonParameters::~JMuonParameters
virtual ~JMuonParameters()
Definition: JMuonParameters.hh:36
JFIT::JMuonParameters::ClassDef
ClassDef(JMuonParameters, 1)
JEvt.hh
operator>>
std::istream & operator>>(std::istream &in, JFIT::JMuonParameters &parameters)
Read fit parameters from input.
Definition: JMuonParameters.cc:28
operator<<
std::ostream & operator<<(std::ostream &out, const JFIT::JMuonParameters &parameters)
Write fit parameters to output.
Definition: JMuonParameters.cc:52
JFIT::JMuonPrefitParameters_t
Data struct that holds the parameters for JMuonPrefit angular reconstruction This is part of the cons...
Definition: JMuonPrefitParameters_t.hh:22
JFIT::JMuonParameters::ROOT_IO_VERSION
static int ROOT_IO_VERSION
Streamer version of JMuonParameters as obtained from ROOT file.
Definition: JMuonParameters.hh:54
JFIT::JMuonPrefitParameters_t::equals
bool equals(const JMuonPrefitParameters_t &parameters) const
Definition: JMuonPrefitParameters_t.hh:50
JFIT::JMuonParameters::prefit
JMuonPrefitParameters_t prefit
Definition: JMuonParameters.hh:23
JFIT::JMuonSimplexParameters_t
Definition: JMuonSimplexParameters_t.hh:13
JFIT::JMuonParameters::gandalf
JMuonGandalfParameters_t gandalf
Definition: JMuonParameters.hh:25
JRoot.hh
JMuonGandalfParameters_t.hh
JFIT::JMuonGandalfParameters_t
Definition: JMuonGandalfParameters_t.hh:15
JFIT::JMuonParameters::reset
void reset()
Definition: JMuonParameters.hh:29
JFIT::JMuonSimplexParameters_t::reset
void reset()
Definition: JMuonSimplexParameters_t.hh:28