Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShowerParameters.hh
Go to the documentation of this file.
1 #ifndef JSHOWERPARAMETERS_INCLUDE
2 #define JSHOWERPARAMETERS_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 adomi
16  */
17 
18 namespace JFIT
19 {
21  public TObject
22  {
26 
27  JShowerParameters() {this->reset();}
28 
29  void reset()
30  {
31  prefit.reset();
33  showerfit.reset();
34  }
35 
36  virtual ~JShowerParameters(){}
37 
38  inline operator JShowerPrefitParameters_t() const { return prefit;} //!< JShowerPrefitParameters_t parameters
39 
40  inline operator JShowerPositionFitParameters_t() const { return positionfit;} //!< JShowerPositionFitParameters_t parameters
41  inline operator JShowerFitParameters_t() const { return showerfit;} //!< JShowerFitParameters_t parameters
42 
43  bool equals(const JShowerParameters &parameters) const
44  {
45  return (prefit.equals(parameters) and
46  positionfit.equals(parameters) and
47  showerfit.equals(parameters));
48  }
49 
50 
52 
53  static int ROOT_IO_VERSION;
54  };
55 
56 }
57 
58 std::istream& operator>>(std::istream& in,
59  JFIT::JShowerParameters& parameters);
60 
61 std::ostream& operator<<(std::ostream& out,
62  const JFIT::JShowerParameters& parameters);
63 
64 
65 #endif
bool equals(const JShowerParameters &parameters) const
std::istream & operator>>(std::istream &in, JHead &header)
Read header from input.
Definition: JRoot.hh:19
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
ClassDef(JShowerParameters, 1)
bool equals(const JShowerPositionFitParameters_t &parameters) const
bool equals(const JShowerFitParameters_t &parameters) const
JShowerPrefitParameters_t prefit
JShowerPositionFitParameters_t positionfit
bool equals(const JShowerPrefitParameters_t &parameters) const
std::ostream & operator<<(std::ostream &stream, const CLBCommonHeader &header)
static int ROOT_IO_VERSION
Streamer version of JShowerParameters as obtained from ROOT file.
struct that holds the Parameters used for JORCAShowerFit
JShowerFitParameters_t showerfit