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
11#include <map>
12
13class TCalList : public TNamed {
14public:
15 TCalList();
16 explicit TCalList(const char* name, const char* title = "");
17 TCalList(const TCalList&);
18 TCalList(TCalList&&) noexcept = default;
19 TCalList& operator=(const TCalList&) = default;
20 TCalList& operator=(TCalList&&) noexcept = default;
21 ~TCalList() = default;
22
23 void AddPoint(const TCalPoint& point);
24 void AddPoint(const UInt_t& idx, const TCalPoint& point);
25 Int_t NPoints() const { return static_cast<Int_t>(fCalList.size()); }
26 void FillGraph(TGraph* graph) const;
27 bool SetPointIndex(const UInt_t& old_idx, const UInt_t& new_idx);
28
29 void Copy(TObject& obj) const override;
30 void Clear(Option_t* opt = "") override;
31 void Print(Option_t* opt = "") const override;
32
33 const std::map<UInt_t, TCalPoint>& Map() const { return fCalList; }
34
35private:
36 std::map<UInt_t, TCalPoint> fCalList;
37
38 /// \cond CLASSIMP
39 ClassDefOverride(TCalList, 1) // NOLINT(readability-else-after-return)
40 /// \endcond
41};
42/*! @} */
43#endif
Int_t NPoints() const
Definition TCalList.h:25
void Copy(TObject &obj) const override
Definition TCalList.cxx:22
void FillGraph(TGraph *graph) const
Definition TCalList.cxx:72
void AddPoint(const TCalPoint &point)
Definition TCalList.cxx:31
TCalList(TCalList &&) noexcept=default
std::map< UInt_t, TCalPoint > fCalList
Definition TCalList.h:36
const std::map< UInt_t, TCalPoint > & Map() const
Definition TCalList.h:33
void Print(Option_t *opt="") const override
Definition TCalList.cxx:57
bool SetPointIndex(const UInt_t &old_idx, const UInt_t &new_idx)
Definition TCalList.cxx:41
void Clear(Option_t *opt="") override
Definition TCalList.cxx:67