GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TGRSITransition.h
Go to the documentation of this file.
1#ifndef TGRSITRANSITION_H
2#define TGRSITRANSITION_H
3
4/** \addtogroup Fitting Fitting & Analysis
5 * @{
6 */
7
8#include <cstdio>
9
10#include "TObject.h"
11
12/////////////////////////////////////////////////////////////////
13///
14/// \class TGRSITransition
15///
16/// This Class contains the information about a nuclear
17/// transition. These transitions are a part of a TNucleus
18/// and are typically set within the TNucleus framework
19///
20/////////////////////////////////////////////////////////////////
21
22class TGRSITransition : public TObject {
23 friend class TNucleus;
24
25public:
28 TGRSITransition(TGRSITransition&&) noexcept = default;
29 TGRSITransition& operator=(const TGRSITransition&) = default;
30 TGRSITransition& operator=(TGRSITransition&&) noexcept = default;
31 ~TGRSITransition() = default;
32
33 bool IsSortable() const override { return true; }
34 int Compare(const TObject* obj) const override;
35
36 void SetEnergy(double& tmpenergy) { fEnergy = tmpenergy; }
37 void SetEnergyUncertainty(double& tmperror) { fEnergyUncertainty = tmperror; }
38 void SetIntensity(double& tmpintens) { fIntensity = tmpintens; }
39 void SetIntensityUncertainty(double& tmpinterror) { fIntensityUncertainty = tmpinterror; }
40
41 double GetEnergy() const { return fEnergy; }
42 double GetEnergyUncertainty() const { return fEnergyUncertainty; }
43 double GetIntensity() const { return fIntensity; }
45
46 void Clear(Option_t* opt = "") override;
47 void Print(Option_t* opt = "") const override;
48
49 std::string PrintToString() const;
50
51private:
52 double fEnergy{0.}; // Energy of the transition
53 double fEnergyUncertainty{0.}; // Uncertainty in the energy of the transition
54 double fIntensity{0.}; // Intensity of the transition
55 double fIntensityUncertainty{0.}; // Uncertainty in the intensity
56
57 /// \cond CLASSIMP
58 ClassDefOverride(TGRSITransition, 1) // NOLINT(readability-else-after-return)
59 /// \endcond
60};
61/*! @} */
62#endif
double GetEnergyUncertainty() const
TGRSITransition(const TGRSITransition &)=default
void Clear(Option_t *opt="") override
double GetIntensityUncertainty() const
void SetEnergyUncertainty(double &tmperror)
void SetIntensity(double &tmpintens)
int Compare(const TObject *obj) const override
void Print(Option_t *opt="") const override
double GetIntensity() const
double GetEnergy() const
void SetEnergy(double &tmpenergy)
TGRSITransition(TGRSITransition &&) noexcept=default
double fIntensityUncertainty
bool IsSortable() const override
void SetIntensityUncertainty(double &tmpinterror)
std::string PrintToString() const