|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef IDPVM_ResolutionHelper_h
7 #define IDPVM_ResolutionHelper_h
97 static std::string
reportUOBinVal(
const std::string& p_histName,
const std::vector< std::pair<unsigned int,double> >& p_vecBinVal);
112 void setFout(
double p_nsig,
double p_ntot);
Class to retrieve associated truth from a track, implementing a cached response.
bool initialize(TH1 *p_input_hist)
helper to fill-in starting values of the results vector
void makeResolutions(const TH2 *h_input2D, TH1 *hwidth, TH1 *hmean, TH1 *hproj[], bool saveProjections, IDPVM::ResolutionHelper::methods theMethod=IDPVM::ResolutionHelper::iterRMS_convergence)
extract 1D resolution plots from a 2D "residual vs observable" histogram.
double getMean()
results getters
void setResults(TH1 *p_input_hist, methods p_method)
wrapper to set mean,rms,and fraction of events in tails nb: some of the methods are allowed to modify...
double getFracUOflow()
fraction of events in under- and over-flow bins of input histogram if this is large,...
double outlierFracError
uncertainty on the outlier fraction. Mainly for book-keeping at this time.
double widthError
uncertainty on the residual / pull width
package the output of a single bin resolution measurement
const std::vector< std::string > & getWarnings()
double outlierFrac
fraction of the population in outlier bins. Used to detect possible binning issues and warn the user
std::vector< std::string > m_errors
const std::vector< std::string > & getInfos()
double getFracOut()
fraction of events that is within the range of input histogram, but goes out-of range during width an...
double width
the residual / pull width (either RMS or fit outcome)
Class to provide easy MsgStream access and capabilities.
std::vector< std::string > m_infos
int setIterativeConvergence(TH1 *p_input_hist)
iteratively change histogram range, until convergence return # remaining iterations before hitting th...
std::vector< std::string > m_debugs
int setGaussFit(TH1 *p_input_hist)
methods
methods acc to which mean&RMS can be evaluated
void setFout(double p_nsig, double p_ntot)
evaluate the fraction of evens out of signal region and its uncertainty
std::vector< std::string > m_warnings
static void cloneHistogram(TH1D *h, TH1 *hcopy)
@ fusion_iterRMS_Gaussfit
double m_mean
results/outputs:
const std::vector< std::string > & getDebugs()
return accumulated messages
double mean
mean of the residual / pull
void setLargeError()
set large mean and RMS errors in case we eg. exclude too many events during evaluation
const std::vector< std::string > & getErrors()
static std::string reportUOBinVal(const std::string &p_histName, const std::vector< std::pair< unsigned int, double > > &p_vecBinVal)
helper to report bin and fraction of under-/over- flow events, as accumulated by top-level pull or re...
double meanError
uncertainty on the mean
resolutionResultInBin ResolutionHelperResultsModUnits(TH1D *p_input_hist, IDPVM::ResolutionHelper::methods theMethod=IDPVM::ResolutionHelper::iterRMS_convergence)
single-bin resolution evaluation, also internally used by makeResolutions