40auto tupleSort = [](std::tuple<Float_t, Float_t, Bool_t> _a, std::tuple<Float_t, Float_t, Bool_t>
_b) {
41 return std::get<0>(_a) < std::get<0>(
_b);
60 for (
UInt_t i = 0; i < mvaValues.size(); i++) {
75 for (
UInt_t i = 0; i < mvaValues.size(); i++) {
125 if(fGraph)
delete fGraph;
150 for (
auto &
ev : fMva) {
152 auto weight = std::get<1>(
ev);
186 for (
auto it = fMva.rbegin(); it != fMva.rend(); ++it) {
188 auto weight = std::get<1>(*it);
276 if (fGraph !=
nullptr) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
const_iterator begin() const
const_iterator end() const
A TGraph is an object made of two arrays X and Y with npoints each.
ostringstream derivative to redirect and format output
std::vector< Double_t > ComputeSpecificity(const UInt_t num_points)
ROCCurve(const std::vector< std::tuple< Float_t, Float_t, Bool_t > > &mvas)
Double_t GetEffSForEffB(Double_t effB, const UInt_t num_points=41)
Calculate the signal efficiency (sensitivity) for a given background efficiency (sensitivity).
std::vector< Double_t > ComputeSensitivity(const UInt_t num_points)
Double_t GetROCIntegral(const UInt_t points=41)
Calculates the ROC integral (AUC)
std::vector< std::tuple< Float_t, Float_t, Bool_t > > fMva
TGraph * GetROCCurve(const UInt_t points=100)
Returns a new TGraph containing the ROC curve.
Linear interpolation of TGraph.
create variable transformations
void mvas(TString dataset, TString fin="TMVA.root", HistType htype=kMVAType, Bool_t useTMVAStyle=kTRUE)