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 <map>
20#include <vector>
21#include <utility>
22
23#include "TCalGraph.h"
24#include "TCalPoint.h"
25#include "TCalList.h"
26#include "TSourceList.h"
27
28#include "TMath.h"
29
31public:
33 TEfficiencyGraph(const char* name, const char* title) : TCalGraph(name, title) {}
35 TEfficiencyGraph(TEfficiencyGraph&&) noexcept = default;
36 TEfficiencyGraph& operator=(const TEfficiencyGraph&) = default;
37 TEfficiencyGraph& operator=(TEfficiencyGraph&&) noexcept = default;
39
40 void Print(Option_t* opt = "") const override;
41 void Clear(Option_t* opt = "") override;
42
43#if ROOT_VERSION_CODE < ROOT_VERSION(6, 26, 0)
44 void Scale(const double& scale);
45#endif
46 void SetAbsolute(const bool& flag) { fIsAbsolute = flag; }
47 bool IsAbsolute() const { return fIsAbsolute; }
48
49protected:
50 void BuildGraph() override;
51
52private:
53 bool fIsAbsolute{false};
54
55 /// \cond CLASSIMP
56 ClassDefOverride(TEfficiencyGraph, 1) // NOLINT(readability-else-after-return)
57 /// \endcond
58};
59/*! @} */
60#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)