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 "TClass.h"
11#include "TObject.h"
12
13/////////////////////////////////////////////////////////////////
14///
15/// \class TGRSITransition
16///
17/// This Class contains the information about a nuclear
18/// transition. These transitions are a part of a TNucleus
19/// and are typically set within the TNucleus framework
20///
21/////////////////////////////////////////////////////////////////
22
23class TGRSITransition : public TObject {
24 friend class TNucleus;
25
26public:
29 TGRSITransition(TGRSITransition&&) noexcept = default;
30 TGRSITransition& operator=(const TGRSITransition&) = default;
31 TGRSITransition& operator=(TGRSITransition&&) noexcept = default;
32 ~TGRSITransition() = default;
33
34 bool IsSortable() const override { return true; }
35 int Compare(const TObject* obj) const override;
36
37 void SetEnergy(double& tmpenergy) { fEnergy = tmpenergy; }
38 void SetEnergyUncertainty(double& tmperror) { fEnergyUncertainty = tmperror; }
39 void SetIntensity(double& tmpintens) { fIntensity = tmpintens; }
40 void SetIntensityUncertainty(double& tmpinterror) { fIntensityUncertainty = tmpinterror; }
41
42 double GetEnergy() const { return fEnergy; }
43 double GetEnergyUncertainty() const { return fEnergyUncertainty; }
44 double GetIntensity() const { return fIntensity; }
46
47 void Clear(Option_t* opt = "") override;
48 void Print(Option_t* opt = "") const override;
49
50 std::string PrintToString() const;
51
52private:
53 double fEnergy{0.}; // Energy of the transition
54 double fEnergyUncertainty{0.}; // Uncertainty in the energy of the transition
55 double fIntensity{0.}; // Intensity of the transition
56 double fIntensityUncertainty{0.}; // Uncertainty in the intensity
57
58 /// \cond CLASSIMP
59 ClassDefOverride(TGRSITransition, 1) // NOLINT(readability-else-after-return)
60 /// \endcond
61};
62/*! @} */
63#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