This is a class that contains the basic info about a calibration. Calibrations here are TGraphErrors that are fit, with the resulting fit function being the calibrating function.
Definition at line 28 of file TCalGraph.h.
Public Member Functions | |
TCalGraph () | |
TCalGraph (const char *name, const char *title) | |
TCalGraph (const TCalGraph ©) | |
~TCalGraph () override | |
Int_t | AddLists (const TCalList &cal_list, const TSourceList &src_list) |
void | AddPoint (const TCalPoint &cal_point) |
void | Clear (Option_t *opt="") override |
void | ClearAllPoints (Option_t *opt="") |
void | Draw (Option_t *opt="") override |
Int_t | FindClosestPointX (const Double_t &x_val) |
Double_t | FindDistToClosestPointX (const Double_t &x_val) |
TCalGraph & | operator= (const TCalGraph &)=default |
void | Print (Option_t *opt="") const override |
Protected Attributes | |
std::map< UInt_t, std::pair< TCalPoint, TCalPoint > > | fCompareMap |
Private Member Functions | |
virtual void | BuildGraph ()=0 |
void | CorrectMissingPoints (TCalList &cal_list, TCalList &src_list) |
#include <TCalGraph.h>
TCalGraph::TCalGraph | ( | ) |
Definition at line 10 of file TCalGraph.cxx.
|
inline |
Definition at line 31 of file TCalGraph.h.
|
overridedefault |
TCalGraph::TCalGraph | ( | const TCalGraph & | copy | ) |
Definition at line 18 of file TCalGraph.cxx.
Int_t TCalGraph::AddLists | ( | const TCalList & | cal_list, |
const TSourceList & | src_list | ||
) |
Definition at line 70 of file TCalGraph.cxx.
References TCalList::AddPoint(), CorrectMissingPoints(), DGREEN, DRED, fCompareMap, TCalList::Map(), and RESET_COLOR.
void TCalGraph::AddPoint | ( | const TCalPoint & | cal_point | ) |
Definition at line 43 of file TCalGraph.cxx.
References TCalPoint::Area(), TCalPoint::AreaErr(), TCalPoint::Centroid(), and TCalPoint::CentroidErr().
|
privatepure virtual |
Implemented in TEfficiencyGraph.
Referenced by Draw().
|
override |
Definition at line 37 of file TCalGraph.cxx.
References fCompareMap.
Referenced by TEfficiencyGraph::Clear().
void TCalGraph::ClearAllPoints | ( | Option_t * | opt = "" | ) |
Definition at line 136 of file TCalGraph.cxx.
Referenced by TEfficiencyGraph::BuildGraph().
Definition at line 120 of file TCalGraph.cxx.
References fCompareMap, and TCalList::Map().
Referenced by AddLists().
|
inlineoverride |
Definition at line 46 of file TCalGraph.h.
References BuildGraph().
Int_t TCalGraph::FindClosestPointX | ( | const Double_t & | x_val | ) |
Definition at line 50 of file TCalGraph.cxx.
Referenced by FindDistToClosestPointX(), and TEfficiencyCalibration::ScaleGuess().
Double_t TCalGraph::FindDistToClosestPointX | ( | const Double_t & | x_val | ) |
Definition at line 64 of file TCalGraph.cxx.
References FindClosestPointX().
Referenced by TEfficiencyCalibration::ScaleGuess().
|
override |
Definition at line 23 of file TCalGraph.cxx.
References DBLUE, DGREEN, DRED, fCompareMap, and RESET_COLOR.
Referenced by TEfficiencyGraph::Print().
Definition at line 58 of file TCalGraph.h.
Referenced by AddLists(), TEfficiencyGraph::BuildGraph(), Clear(), CorrectMissingPoints(), and Print().