GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TEfficiencyCal.h
Go to the documentation of this file.
1#ifndef TEFFICIENCYCAL_H
2#define TEFFICIENCYCAL_H
3
4/** \addtogroup Calibration
5 * @{
6 */
7
8#include "TCal.h"
9#include "TPeak.h"
10#include "TSpectrum.h"
11
12class TEfficiencyCal : public TCal {
13public:
14 TEfficiencyCal() = default;
15 TEfficiencyCal(const char* name, const char* title) : TCal(name, title) {}
17 TEfficiencyCal(TEfficiencyCal&&) noexcept = default;
18 TEfficiencyCal& operator=(const TEfficiencyCal&) = default;
19 TEfficiencyCal& operator=(TEfficiencyCal&&) noexcept = default;
20 ~TEfficiencyCal() = default;
21
22 void Copy(TObject& obj) const override;
23#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 24, 0)
24 using TGraph::AddPoint;
25#endif
26 void AddPoint(Double_t energy, Double_t area, Double_t dEnergy = 0.0, Double_t dArea = 0.0);
27 void AddPoint(TPeak* peak);
28
29 void Clear(Option_t* opt = "") override;
30 void Print(Option_t* opt = "") const override;
31
32 Bool_t IsGroupable() const override { return true; }
33
34 void ScaleGraph(Double_t scaleFactor);
35
36private:
37 Double_t fScaleFactor{1.};
38
39 /// \cond CLASSIMP
40 ClassDefOverride(TEfficiencyCal, 1) // NOLINT(readability-else-after-return)
41 /// \endcond
42};
43/*! @} */
44#endif
Definition TCal.h:44
Double_t fScaleFactor
TEfficiencyCal()=default
TEfficiencyCal(const char *name, const char *title)
Bool_t IsGroupable() const override
void Print(Option_t *opt="") const override
void Clear(Option_t *opt="") override
void Copy(TObject &obj) const override
void ScaleGraph(Double_t scaleFactor)
TEfficiencyCal(TEfficiencyCal &&) noexcept=default
void AddPoint(Double_t energy, Double_t area, Double_t dEnergy=0.0, Double_t dArea=0.0)
Definition TPeak.h:28