Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
std::istream & operator>>(std::istream &in, JHead &header)
Read header from input.
bool equals(const JMuonGandalfParameters_t &parameters) const
Definition: JRoot.hh:19
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
bool equals(const JMuonParameters &parameters) const
ClassDef(JMuonParameters, 1)
JMuonSimplexParameters_t simplex
Data struct that holds the parameters for JMuonPrefit angular reconstruction This is part of the cons...
bool equals(const JMuonSimplexParameters_t &parameters) const
static int ROOT_IO_VERSION
Streamer version of JMuonParameters as obtained from ROOT file.
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
JMuonPrefitParameters_t prefit
JMuonGandalfParameters_t gandalf
bool equals(const JMuonPrefitParameters_t &parameters) const