GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TCalList.h
Go to the documentation of this file.
1#ifndef TCALLIST_H
2#define TCALLIST_H
3
4/** \addtogroup Calibration
5 * @{
6 */
7
8#include "TNamed.h"
9#include "TCalPoint.h"
10#include "TGraphErrors.h"
11
12#include <map>
13
14class TCalList : public TNamed {
15public:
16 TCalList();
17 explicit TCalList(const char* name, const char* title = "");
18 TCalList(const TCalList&);
19 TCalList(TCalList&&) noexcept = default;
20 TCalList& operator=(const TCalList&) = default;
21 TCalList& operator=(TCalList&&) noexcept = default;
22 ~TCalList() = default;
23
24 void AddPoint(const TCalPoint& point);
25 void AddPoint(const UInt_t& idx, const TCalPoint& point);
26 Int_t NPoints() const { return static_cast<Int_t>(fCalList.size()); }
27 void FillGraph(TGraph* graph) const;
28 bool SetPointIndex(const UInt_t& old_idx, const UInt_t& new_idx);
29
30 void Copy(TObject& obj) const override;
31 void Clear(Option_t* opt = "") override;
32 void Print(Option_t* opt = "") const override;
33
34 const std::map<UInt_t, TCalPoint>& Map() const { return fCalList; }
35
36private:
37 std::map<UInt_t, TCalPoint> fCalList;
38
39 /// \cond CLASSIMP
40 ClassDefOverride(TCalList, 1) // NOLINT(readability-else-after-return)
41 /// \endcond
42};
43/*! @} */
44#endif
Int_t NPoints() const
Definition TCalList.h:26
void Copy(TObject &obj) const override
Definition TCalList.cxx:21
void FillGraph(TGraph *graph) const
Definition TCalList.cxx:71
void AddPoint(const TCalPoint &point)
Definition TCalList.cxx:30
TCalList(TCalList &&) noexcept=default
std::map< UInt_t, TCalPoint > fCalList
Definition TCalList.h:37
const std::map< UInt_t, TCalPoint > & Map() const
Definition TCalList.h:34
void Print(Option_t *opt="") const override
Definition TCalList.cxx:56
bool SetPointIndex(const UInt_t &old_idx, const UInt_t &new_idx)
Definition TCalList.cxx:40
void Clear(Option_t *opt="") override
Definition TCalList.cxx:66