Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JShowerParameters.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JSHOWERPARAMETERS__
2#define __JRECONSTRUCTION__JSHOWERPARAMETERS__
3
4#include <istream>
5#include <ostream>
6
14
15#include <TROOT.h>
16#include <TObject.h>
17
18/**
19 * \author adomi
20 */
21namespace JRECONSTRUCTION {
22
23 /**
24 * Shower reconstruction parameters.
25 */
27 public TObject
28 {
29 /**
30 * Default constructor.
31 */
33 {
34 this->reset();
35 }
36
37 /**
38 * Virtual destructor.
39 */
41 {}
42
43 /**
44 * Reset fit parameters.
45 */
46 void reset()
47 {
48 prefit.reset();
53 bjyfit.reset();
54 }
55
56 inline operator JShowerPrefitParameters_t() const {return prefit;} //!< JShowerPrefitParameters_t parameters
57 inline operator JShowerPointSimplexParameters_t() const {return pointsimplex;} //!< JShowerPointSimplexParameters_t parameetrs
58 inline operator JShowerPositionFitParameters_t() const {return positionfit;} //!< JShowerPositionFitParameters_t parameters
59 inline operator JShowerDirectionPrefitParameters_t() const {return directionprefit;} //!< JShowerDirectionPrefitParameters_t parameters
60 inline operator JShowerFitParameters_t() const {return showerfit;} //!< JShowerFitParameters_t parameters
61 inline operator JShowerBjorkenYParameters_t() const {return bjyfit;} //!< JShowerFitParameters_t parameters
62
63 /**
64 * Equality
65 *
66 * \param parameters fit parameters
67 * \return true if equals; else false
68 */
69 bool equals(const JShowerParameters&parameters) const
70 {
71 return (prefit .equals(parameters) &&
72 pointsimplex.equals(parameters) &&
73 positionfit .equals(parameters) &&
74 directionprefit.equals(parameters) &&
75 showerfit.equals(parameters) &&
76 bjyfit.equals(parameters));
77 }
78
85
87 };
88}
89
90/**
91 * Read fit parameters from input.
92 *
93 * \param in input stream
94 * \param parameters fit parameters
95 * \return input stream
96 */
97std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerParameters& parameters);
98
99/**
100 * Write fit parameters to output.
101 *
102 * \param out output stream
103 * \param parameters fit parameters
104 * \return output stream
105 */
106std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerParameters& parameters);
107
108#endif
std::ostream & operator<<(std::ostream &out, const JRECONSTRUCTION::JShowerParameters &parameters)
Write fit parameters to output.
std::istream & operator>>(std::istream &in, JRECONSTRUCTION::JShowerParameters &parameters)
Read fit parameters from input.
Model fits to data.
bool equals(const JShowerBjorkenYParameters_t &parameters) const
Equality.
bool equals(const JShowerDirectionPrefitParameters_t &parameters) const
Equality.
Data structure for fit parameters.
bool equals(const JShowerFitParameters_t &parameters) const
Equality.
Shower reconstruction parameters.
JShowerPositionFitParameters_t positionfit
virtual ~JShowerParameters()
Virtual destructor.
void reset()
Reset fit parameters.
JShowerDirectionPrefitParameters_t directionprefit
JShowerPointSimplexParameters_t pointsimplex
JShowerBjorkenYParameters_t bjyfit
ClassDef(JShowerParameters, 1)
bool equals(const JShowerParameters &parameters) const
Equality.
bool equals(const JShowerPointSimplexParameters_t &parameters) const
Equality.
bool equals(const JShowerPositionFitParameters_t &parameters) const
Equality.