Jpp master_rocky-44-g75b7c4f75
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 "JROOT/JRoot.hh"
16
17#include <TROOT.h>
18#include <TObject.h>
19
20/**
21 * \author adomi
22 */
23namespace JRECONSTRUCTION {
24
25 /**
26 * Shower reconstruction parameters.
27 */
29 public TObject
30 {
31 /**
32 * Default constructor.
33 */
35 {
36 this->reset();
37 }
38
39 /**
40 * Virtual destructor.
41 */
43 {}
44
45 /**
46 * Reset fit parameters.
47 */
48 void reset()
49 {
50 prefit.reset();
55 bjyfit.reset();
56 }
57
58 inline operator JShowerPrefitParameters_t() const {return prefit;} //!< JShowerPrefitParameters_t parameters
59 inline operator JShowerPointSimplexParameters_t() const {return pointsimplex;} //!< JShowerPointSimplexParameters_t parameetrs
60 inline operator JShowerPositionFitParameters_t() const {return positionfit;} //!< JShowerPositionFitParameters_t parameters
61 inline operator JShowerDirectionPrefitParameters_t() const {return directionprefit;} //!< JShowerDirectionPrefitParameters_t parameters
62 inline operator JShowerFitParameters_t() const {return showerfit;} //!< JShowerFitParameters_t parameters
63 inline operator JShowerBjorkenYParameters_t() const {return bjyfit;} //!< JShowerFitParameters_t parameters
64
65 /**
66 * Equality
67 *
68 * \param parameters fit parameters
69 * \return true if equals; else false
70 */
71 bool equals(const JShowerParameters&parameters) const
72 {
73 return (prefit .equals(parameters) &&
74 pointsimplex.equals(parameters) &&
75 positionfit .equals(parameters) &&
76 directionprefit.equals(parameters) &&
77 showerfit.equals(parameters) &&
78 bjyfit.equals(parameters));
79 }
80
87
89 };
90}
91
92/**
93 * Read fit parameters from input.
94 *
95 * \param in input stream
96 * \param parameters fit parameters
97 * \return input stream
98 */
99std::istream& operator>>(std::istream& in, JRECONSTRUCTION::JShowerParameters& parameters);
100
101/**
102 * Write fit parameters to output.
103 *
104 * \param out output stream
105 * \param parameters fit parameters
106 * \return output stream
107 */
108std::ostream& operator<<(std::ostream& out, const JRECONSTRUCTION::JShowerParameters& parameters);
109
110#endif
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
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.