DAS  3.0
Das Analysis System
Result

Description

A structure to contain the result of each attempt. It gets cleared and filled again at each call of Step::GetSmoothFit().

#include <Step.h>

+ Collaboration diagram for Result:

Public Member Functions

size_t degree () const
 
double x2n () const
 
double x2nErr () const
 
double prob () const
 
double chi2T () const
 
double chi2V () const
 
double x2nT () const
 
double x2nV () const
 
template<typename POL >
TF1 * GetTF1 (const char *name, POL pol, double m, double M) const
 

Public Attributes

const bool valid
 
double chi2
 
unsigned int ndf
 
std::vector< double > X
 
std::vector< double > chi2sT
 
std::vector< double > chi2sV
 

Member Function Documentation

◆ chi2T()

double chi2T ( ) const
inline
58 { return std::accumulate(std::begin(chi2sT), std::end(chi2sT), 0.) / chi2sT.size(); }

◆ chi2V()

double chi2V ( ) const
inline
59 { return std::accumulate(std::begin(chi2sV), std::end(chi2sV), 0.) / chi2sV.size(); }

◆ degree()

size_t degree ( ) const
inline

degree of polynomial

◆ GetTF1()

TF1* GetTF1 ( const char *  name,
POL  pol,
double  m,
double  M 
) const
inline
65  {
66  pol.npars = X.size();
67  auto f = new TF1(name, pol, m, M, pol.npars);
68  f->SetParameters(X.data());
69  f->SetTitle(Form("#chi^{2}_{%zu}/ndf = %.1f/%d", degree(), chi2, ndf));
70  return f;
71  }

◆ prob()

double prob ( ) const
inline

chi2 fit probability

◆ x2n()

double x2n ( ) const
inline

chi2/ndf

◆ x2nErr()

double x2nErr ( ) const
inline

chi2/ndf error

◆ x2nT()

double x2nT ( ) const
inline
60 { return chi2T() / ndf ; }

◆ x2nV()

double x2nV ( ) const
inline
61 { return chi2V() / (ndf + X.size()); }

Member Data Documentation

◆ chi2

double chi2

chi2

◆ chi2sT

std::vector<double> chi2sT

chi2s from training replicas

◆ chi2sV

std::vector<double> chi2sV

chi2s from validation replicas

◆ ndf

unsigned int ndf

◆ valid

const bool valid

output of ROOT::Math::Minimizer::Minimize()

◆ X

std::vector<double> X

parameters from ROOT Minimizer


The documentation for this struct was generated from the following file:
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
Step::Result::chi2T
double chi2T() const
Definition: Step.h:58
Step::Result::X
std::vector< double > X
parameters from ROOT Minimizer
Definition: Step.h:49
Ntupliser_cfg.f
f
Definition: Ntupliser_cfg.py:256
Step::Result::ndf
unsigned int ndf
Definition: Step.h:48
Step::Result::degree
size_t degree() const
degree of polynomial
Definition: Step.h:50
Step::Result::chi2sV
std::vector< double > chi2sV
chi2s from validation replicas
Definition: Step.h:57
Step::Result::chi2V
double chi2V() const
Definition: Step.h:59
Step::Result::chi2
double chi2
chi2
Definition: Step.h:47
Step::Result::chi2sT
std::vector< double > chi2sT
chi2s from training replicas
Definition: Step.h:56