GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TEfficiencyGraph.h
Go to the documentation of this file.
1#ifndef TEFFICIENCYGRAPH_H
2#define TEFFICIENCYGRAPH_H
3
4/** \addtogroup Calibration
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////////
9///
10/// \class TEfficiencyGraph
11///
12/// This is a class that contains the basic info
13/// about a calibration. Calibrations here are TGraphErrors
14/// that are fit, with the resulting fit function being the
15/// calibrating function.
16///
17/////////////////////////////////////////////////////////////////
18
19#include "TCalGraph.h"
20
22public:
24 TEfficiencyGraph(const char* name, const char* title) : TCalGraph(name, title) {}
26 TEfficiencyGraph(TEfficiencyGraph&&) noexcept = default;
27 TEfficiencyGraph& operator=(const TEfficiencyGraph&) = default;
28 TEfficiencyGraph& operator=(TEfficiencyGraph&&) noexcept = default;
30
31 void Print(Option_t* opt = "") const override;
32 void Clear(Option_t* opt = "") override;
33
34#if ROOT_VERSION_CODE < ROOT_VERSION(6, 26, 0)
35 void Scale(const double& scale);
36#endif
37 void SetAbsolute(const bool& flag) { fIsAbsolute = flag; }
38 bool IsAbsolute() const { return fIsAbsolute; }
39
40protected:
41 void BuildGraph() override;
42
43private:
44 bool fIsAbsolute{false};
45
46 /// \cond CLASSIMP
47 ClassDefOverride(TEfficiencyGraph, 1) // NOLINT(readability-else-after-return)
48 /// \endcond
49};
50/*! @} */
51#endif
TEfficiencyGraph(const char *name, const char *title)
bool IsAbsolute() const
TEfficiencyGraph(const TEfficiencyGraph &)=default
void BuildGraph() override
void Clear(Option_t *opt="") override
void Print(Option_t *opt="") const override
TEfficiencyGraph(TEfficiencyGraph &&) noexcept=default
void SetAbsolute(const bool &flag)