GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TSourceList.h
Go to the documentation of this file.
1#ifndef TSOURCECALLIST_H
2#define TSOURCECALLIST_H
3
4/** \addtogroup Calibration
5 * @{
6 */
7
8#include "TNamed.h"
9#include "TCalList.h"
10#include "TGraphErrors.h"
11#include "TNucleus.h"
12
13#include <string>
14
15class TSourceList : public TCalList {
16public:
18 TSourceList(const TNucleus& nuc, const char* name, const char* title = "");
19 explicit TSourceList(const char* name, const char* title = "");
20 explicit TSourceList(const TNucleus& nuc);
22 TSourceList(TSourceList&&) noexcept = default;
23 TSourceList& operator=(const TSourceList&) = default;
24 TSourceList& operator=(TSourceList&&) noexcept = default;
25 ~TSourceList() = default;
26
27 void Copy(TObject& obj) const override;
28 void Clear(Option_t* opt = "") override;
29 void Print(Option_t* opt = "") const override;
30
31 Int_t SetNucleus(const TNucleus& nuc);
32 Int_t SetNucleus(const char* nuc) { return SetNucleus(TNucleus(nuc)); }
33
34private:
35 bool AddTransition(TTransition* tran);
36
37 std::string fNucleusName;
38
39 /// \cond CLASSIMP
40 ClassDefOverride(TSourceList, 1) // NOLINT(readability-else-after-return)
41 /// \endcond
42};
43/*! @} */
44#endif
Int_t SetNucleus(const TNucleus &nuc)
void Copy(TObject &obj) const override
std::string fNucleusName
Definition TSourceList.h:37
bool AddTransition(TTransition *tran)
void Clear(Option_t *opt="") override
void Print(Option_t *opt="") const override
TSourceList(TSourceList &&) noexcept=default
Int_t SetNucleus(const char *nuc)
Definition TSourceList.h:32