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 "TCalList.h"
9#include "TNucleus.h"
10
11#include <string>
12
13class TSourceList : public TCalList {
14public:
16 TSourceList(const TNucleus& nuc, const char* name, const char* title = "");
17 explicit TSourceList(const char* name, const char* title = "");
18 explicit TSourceList(const TNucleus& nuc);
20 TSourceList(TSourceList&&) noexcept = default;
21 TSourceList& operator=(const TSourceList&) = default;
22 TSourceList& operator=(TSourceList&&) noexcept = default;
23 ~TSourceList() = default;
24
25 void Copy(TObject& obj) const override;
26 void Clear(Option_t* opt = "") override;
27 void Print(Option_t* opt = "") const override;
28
29 Int_t SetNucleus(const TNucleus& nuc);
30 Int_t SetNucleus(const char* nuc) { return SetNucleus(TNucleus(nuc)); }
31
32private:
33 bool AddTransition(TTransition* tran);
34
35 std::string fNucleusName;
36
37 /// \cond CLASSIMP
38 ClassDefOverride(TSourceList, 1) // NOLINT(readability-else-after-return)
39 /// \endcond
40};
41/*! @} */
42#endif
Int_t SetNucleus(const TNucleus &nuc)
void Copy(TObject &obj) const override
std::string fNucleusName
Definition TSourceList.h:35
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:30