|
Crombie Tools
|
A rewrite of the Corrector that allows easy standalone correction application. More...
#include <Correction.h>
Public Member Functions | |
| Correction (std::string filename, const std::string &histname, const std::string &denom="") | |
| Reads in one or two histograms from a file. More... | |
| Correction (std::string filename, const char *histname, const char *denom=0) | |
| Reads in one or two histograms from a file. More... | |
| ~Correction () | |
| ~Correction () | |
| double | GetCorrection (const double xval, const double yval) |
| Get the correction value from the histogram. More... | |
| double | GetCorrection (const double xval) |
| double | GetCorrection (const double xval, const double yval) |
| Get the correction value from the histogram. More... | |
| double | GetCorrection (const double xval) |
Private Types | |
| using | minmax = std::pair< double, double > |
| using | minmax = std::pair< double, double > |
Private Member Functions | |
| double | Filter (const minmax &mm, double val) |
| double | Filter (const minmax &mm, double val) |
| double | get (const int bin) |
| double | get (const int bin) |
Private Attributes | |
| H * | hist |
| minmax | xminmax {} |
| minmax | yminmax {} |
A rewrite of the Corrector that allows easy standalone correction application.
| H | The type of the histogram to read |
Definition at line 36 of file old/SkimmingTools/interface/Correction.h.
|
private |
Definition at line 44 of file src/include/crombie/Correction.h.
|
private |
Definition at line 54 of file old/SkimmingTools/interface/Correction.h.
| Correction< H >::Correction | ( | std::string | filename, |
| const char * | histname, | ||
| const char * | denom = 0 |
||
| ) |
Reads in one or two histograms from a file.
Both histograms must have the same binning. If two histograms are given the corrector applies the first histogram divided by the second.
Definition at line 63 of file old/SkimmingTools/interface/Correction.h.
References link::filename, and crombie_completion::files.
|
inline |
Definition at line 45 of file old/SkimmingTools/interface/Correction.h.
| Correction< H >::Correction | ( | std::string | filename, |
| const std::string & | histname, | ||
| const std::string & | denom = "" |
||
| ) |
Reads in one or two histograms from a file.
Both histograms must have the same binning. If two histograms are given the corrector applies the first histogram divided by the second.
Definition at line 53 of file src/include/crombie/Correction.h.
References link::filename, crombie_completion::files, Correction< H >::Filter(), Correction< H >::get(), Correction< H >::GetCorrection(), Correction< H >::hist, Correction< H >::xminmax, and Correction< H >::yminmax.
|
inline |
Definition at line 35 of file src/include/crombie/Correction.h.
References Correction< H >::GetCorrection(), and Correction< H >::hist.
|
private |
|
private |
Definition at line 101 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction().
|
private |
|
private |
Definition at line 96 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction().
| double Correction< H >::GetCorrection | ( | const double | xval, |
| const double | yval | ||
| ) |
Get the correction value from the histogram.
| double Correction< H >::GetCorrection | ( | const double | xval | ) |
| double Correction< H >::GetCorrection | ( | const double | xval, |
| const double | yval | ||
| ) |
Get the correction value from the histogram.
Definition at line 86 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction(), and Correction< H >::~Correction().
| double Correction< H >::GetCorrection | ( | const double | xval | ) |
Definition at line 91 of file old/SkimmingTools/interface/Correction.h.
|
private |
Definition at line 52 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction(), and Correction< H >::~Correction().
|
private |
Definition at line 55 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction().
|
private |
Definition at line 56 of file old/SkimmingTools/interface/Correction.h.
Referenced by Correction< H >::Correction().