ATLAS Offline Software
|
#include <CalibrationDataInterfaceROOT.h>
Classes | |
class | HadronisationReferenceHelper |
Public Types | |
enum | variableType { kEta, kAbsEta, kPt } |
known variable types that can be used as function arguments More... | |
Public Member Functions | |
CalibrationDataInterfaceROOT (const std::string &taggerName, const std::string &configname="BTagCalibration.env", const std::string &pathname="") | |
main constructor for "stand-alone" use (with information fed in from a .env configuration file read by TEnv) More... | |
CalibrationDataInterfaceROOT (const std::string &taggerName, const char *fileSF, const char *fileEff, const std::vector< std::string > &jetAliases, const std::map< std::string, std::string > &SFNames, const std::map< std::string, std::vector< std::string > > &EffNames, const std::map< std::string, std::vector< std::string > > &excludeFromEV, const std::map< std::string, Analysis::EVReductionStrategy > &EVReductions, bool useEV=true, Uncertainty strat=SFEigen, bool useMCMCSF=true, bool useTopologyRescaling=false, bool useRecommendedEVExclusions=false, bool verbose=true, std::vector< std::string > flavours={"B", "C", "Light", "T"}) | |
alternative constructor passing configuration information explicitly (so that no .env file is needed) More... | |
CalibrationDataInterfaceROOT () | |
default constructor for PROOF object retrieval More... | |
CalibrationDataInterfaceROOT (const CalibrationDataInterfaceROOT &other) | |
copy constructor More... | |
virtual | ~CalibrationDataInterfaceROOT () |
default destructor More... | |
CalibResult | getScaleFactor (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc, unsigned int numVariation=0, unsigned int mapIndex=0) |
efficiency scale factor retrieval by name. More... | |
CalibResult | getEfficiency (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc, const std::string &flavour, unsigned int numVariation=0, unsigned int mapIndex=0) |
efficiency retrieval by name More... | |
CalibResult | getInefficiencyScaleFactor (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc, unsigned int numVariation=0, unsigned int mapIndex=0) |
"MC" inefficiency scale factor retrieval by name More... | |
CalibResult | getInefficiency (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc, unsigned int numVariation=0, unsigned int mapIndex=0) |
inefficiency retrieval by name More... | |
CalibResult | getMCEfficiency (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc=None, unsigned int mapIndex=0) |
"MC" efficiency retrieval by name More... | |
CalibResult | getMCInefficiency (const CalibrationDataVariables &variables, const std::string &label, const std::string &OP, Uncertainty unc=None, unsigned int mapIndex=0) |
"MC" inefficiency retrieval by name More... | |
std::vector< std::string > | listScaleFactorUncertainties (const std::string &author, const std::string &label, const std::string &OP, bool named=false) |
retrieve the list of "uncertainties" relevant to the calibration object. More... | |
unsigned int | getNumVariations (const std::string &author, const std::string &label, const std::string &OP, Uncertainty unc) |
retrieve the number of variations relevant to the calibration object. More... | |
bool | retrieveCalibrationIndex (const std::string &label, const std::string &OP, const std::string &author, bool isSF, unsigned int &index, unsigned int mapIndex=0) |
Retrieve the index of the calibration object (container) starting from the label and operating point. More... | |
std::string | nameFromIndex (unsigned int index) const |
Retrieve the name of the calibration object (container) given its index. More... | |
CalibResult | getScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, const std::string &flavour, unsigned int numVariation=0) |
efficiency scale factor retrieval by index #2 More... | |
CalibResult | getEfficiency (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, const std::string &flavour, unsigned int numVariation=0) |
efficiency retrieval by index More... | |
CalibResult | getInefficiencyScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, const std::string &flavour, unsigned int numVariation=0) |
"MC" inefficiency scale factor retrieval by index More... | |
CalibResult | getInefficiency (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, const std::string &flavour, unsigned int numVariation=0) |
inefficiency retrieval by index More... | |
CalibResult | getMCEfficiency (const CalibrationDataVariables &variables, unsigned int index, Uncertainty unc=None) |
"MC" efficiency retrieval by index More... | |
CalibResult | getMCInefficiency (const CalibrationDataVariables &variables, unsigned int index, Uncertainty unc=None) |
"MC" inefficiency retrieval by index More... | |
double | getMCMCScaleFactor (const CalibrationDataVariables &variables, unsigned indexSF, unsigned int indexEff) const |
MC/MC scale factor retrieval. More... | |
std::vector< std::string > | listScaleFactorUncertainties (unsigned int index, const std::string &flavour, bool named=false) |
retrieve the list of "uncertainties" relevant to the calibration object. More... | |
unsigned int | getNumVariations (unsigned int index, Uncertainty unc, const std::string &flavour) |
retrieve the number of variations relevant to the calibration object. More... | |
std::string | fullName (const std::string &author, const std::string &OP, const std::string &label, bool isSF, unsigned mapIndex=0) const |
@ brief construct the full object pathname from its individual components More... | |
CalibrationStatus | getScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation, CalibResult &result, const std::string &flavour) |
efficiency scale factor retrieval by index #3 More... | |
CalibrationStatus | getEfficiency (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation, CalibResult &result, const std::string &flavour) |
efficiency retrieval by index More... | |
CalibrationStatus | getInefficiencyScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation, CalibResult &result, const std::string &flavour) |
"MC" inefficiency scale factor retrieval by index More... | |
CalibrationStatus | getInefficiency (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation, CalibResult &result, const std::string &flavour) |
inefficiency retrieval by index More... | |
CalibrationStatus | getMCEfficiency (const CalibrationDataVariables &variables, unsigned int index, Uncertainty unc, CalibResult &result) |
"MC" efficiency retrieval by index More... | |
CalibResult | getWeightScaleFactor (const CalibrationDataVariables &variables, const std::string &label, Uncertainty unc, unsigned int numVariation=0, unsigned int mapIndex=0) |
efficiency scale factor retrieval by name More... | |
CalibResult | getWeightScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation=0) |
efficiency scale factor retrieval by index More... | |
CalibrationStatus | getWeightScaleFactor (const CalibrationDataVariables &variables, unsigned int indexSF, unsigned int indexEff, Uncertainty unc, unsigned int numVariation, CalibResult &result) |
efficiency scale factor retrieval by index, with different signature More... | |
CalibrationStatus | runEigenVectorRecomposition (const std::string &author, const std::string &label, const std::string &OP, unsigned int mapindex=0) |
run EigenVector Recomposition method More... | |
CalibrationStatus | runEigenVectorRecomposition (const std::string &label, unsigned int mapindex=0) |
std::map< std::string, std::map< std::string, float > > | getEigenVectorRecompositionCoefficientMap () |
Get Eigenvector recomposition map after running runEigenVectorRecomposition() More... | |
const TObject * | getMCEfficiencyObject (const std::string &author, const std::string &label, const std::string &OP, unsigned int mapIndex=0) |
retrieve the MC efficiency (central values) object for the given flavour label and operating point. More... | |
const TH1 * | getBinnedScaleFactors (const std::string &author, const std::string &label, const std::string &OP) |
retrieve the binned calibration object for the given flavour label and operating point. More... | |
const TH1 * | getShiftedScaleFactors (const std::string &author, const std::string &label, const std::string &OP, const std::string &unc, double sigmas) |
retrieve the binned calibration object for the given flavour label and operating point, with the result shifted by the given number of standard deviations for the given systematic uncertainty. More... | |
TMatrixDSym | getScaleFactorCovarianceMatrix (const std::string &author, const std::string &label, const std::string &OP, const std::string &unc="all") |
retrieve the named covariance matrix element corresponding to the binned calibration object. More... | |
void | initialize (const std::string &jetauthor, const std::string &OP, Uncertainty unc) |
initialization for PROOF usage More... | |
CalibrationDataContainer * | retrieveContainer (const std::string &label, const std::string &OP, const std::string &author, const std::string &cntname, bool isSF, bool doPrint=true) |
utility function taking care of object retrieval More... | |
const std::string & | EffCalibrationName (const std::string &flavour, unsigned int mapIndex=0) const |
Main interface methods accessing the flavour tagging performance information. More... | |
void | setEffCalibrationNames (const std::map< std::string, std::vector< std::string > > &names) |
const std::string & | SFCalibrationName (const std::string &flavour) const |
void | setSFCalibrationNames (const std::map< std::string, std::string > &names) |
Protected Member Functions | |
std::string | getContainername (const std::string &flavour, bool SF, unsigned int mapIndex=0) const |
auxiliary function for retrieval of container name More... | |
std::string | getBasename (const std::string &name) const |
auxiliary function for retrieval of name within the directory More... | |
double | combinedUncertainty (double stat, const std::pair< double, double > &syst) const |
utility function for combination of statistical and (a priori asymmetric) systematic uncertainty. More... | |
Protected Attributes | |
std::string | m_taggerName |
tagging algorithm name More... | |
Private Member Functions | |
std::string | getAlias (const std::string &author) const |
associated alias retrieval method More... | |
bool | checkAbsEta (const CalibrationDataVariables &variables, unsigned int index) |
void | increaseCounter (unsigned int index, OutOfBoundsType oob=Main) |
void | checkWeightScaleFactors (unsigned int indexSF, unsigned int indexEff) |
Private Attributes | |
TFile * | m_fileEff {} |
pointer to the TFile object providing access to the calibrations More... | |
TFile * | m_fileSF {} |
Do not attempt to persistify (PROOF) More... | |
std::map< std::string, std::string > | m_aliases |
Do not attempt to persistify (PROOF) More... | |
std::vector< CalibrationDataContainer * > | m_objects |
cache the objects themselves (so that the user will not have to delete them after each call etc.). More... | |
std::map< std::string, unsigned int > | m_objectIndices |
std::string | m_filenameSF |
in addition, store also the filenames themselves (needed for the copy constructor) More... | |
std::string | m_filenameEff |
std::vector< std::string > | m_flavours |
std::map< const CalibrationDataContainer *, std::shared_ptr< CalibrationDataEigenVariations > > | m_eigenVariationsMap |
store the eigenvector class and associate to its CalibrationDataContainer More... | |
bool | m_runEigenVectorMethod {} |
decide whether to run the eigenvector method or not More... | |
Uncertainty | m_EVStrategy {} |
std::map< std::string, Analysis::EVReductionStrategy > | m_EVReductions |
Eigenvector reduction strategy (per flavour) More... | |
std::map< std::string, std::vector< std::string > > | m_excludeFromCovMatrix |
store the uncertainties which should be excluded from building the full covariance matrix More... | |
bool | m_useRecommendedEVExclusions {} |
if true, exclude pre-recommended lists of uncertainties from the covariance matrix building, in addition to the above user specified lists More... | |
bool | m_verbose {} |
if true, allow also for some informational (and not only error/warning) messages More... | |
bool | m_useMCMCSF {} |
specify whether or not to use MC/MC (hadronisation) scale factors (the fact that this is steerable is intended to be temporary only) More... | |
bool | m_useTopologyRescaling {} |
specify whether or not to use MC/MC (topology) scale factors (also this steering option may be removed) More... | |
std::map< std::string, HadronisationReferenceHelper * > | m_refMap |
the following maps (one for each directory) specify the name of the container serving as the 'hadronisation' reference for each object More... | |
std::vector< int > | m_hadronisationReference |
store the 'hadronisation' reference for each object (-1 means no reference found) More... | |
std::map< std::string, std::map< std::string, float > > | m_coefficientMap |
double | m_maxAbsEta {} |
|eta| bounds and strategy for dealing with out-of-bounds conditions More... | |
OutOfBoundsStrategy | m_absEtaStrategy {} |
OutOfBoundsStrategy | m_otherStrategy {} |
std::vector< unsigned int > | m_etaCounters |
counters for flagging out-of-bound cases More... | |
std::vector< unsigned int > | m_mainCounters |
std::vector< unsigned int > | m_extrapolatedCounters |
std::vector< std::pair< unsigned int, unsigned int > > | m_checkedWeightScaleFactors |
double | m_maxTagWeight {} |
std::map< std::string, std::vector< std::string > > | m_calibrationEffNames |
this simply collects the per-flavour properties. More... | |
std::map< std::string, std::string > | m_calibrationSFNames |
This tool provides an interface to flavour tagging performance estimates.
A separate instance should be used for each different tagging algorithm. For each instance, all appropriate jet collections and tagger operating points need to be specified.
The model:
The idea is to use the same physical ROOT file that is also accessed through COOL, but to do so in a stand-alone fashion, so that there is no COOL or Athena dependence. Apart from this, the same infrastructure and limitations as with COOL access (
Definition at line 87 of file CalibrationDataInterfaceROOT.h.
|
inherited |
known variable types that can be used as function arguments
Enumerator | |
---|---|
kEta | |
kAbsEta | |
kPt |
Definition at line 67 of file CalibrationDataInterfaceBase.h.
Analysis::CalibrationDataInterfaceROOT::CalibrationDataInterfaceROOT | ( | const std::string & | taggerName, |
const std::string & | configname = "BTagCalibration.env" , |
||
const std::string & | pathname = "" |
||
) |
main constructor for "stand-alone" use (with information fed in from a .env configuration file read by TEnv)
Analysis::CalibrationDataInterfaceROOT::CalibrationDataInterfaceROOT | ( | const std::string & | taggerName, |
const char * | fileSF, | ||
const char * | fileEff, | ||
const std::vector< std::string > & | jetAliases, | ||
const std::map< std::string, std::string > & | SFNames, | ||
const std::map< std::string, std::vector< std::string > > & | EffNames, | ||
const std::map< std::string, std::vector< std::string > > & | excludeFromEV, | ||
const std::map< std::string, Analysis::EVReductionStrategy > & | EVReductions, | ||
bool | useEV = true , |
||
Uncertainty | strat = SFEigen , |
||
bool | useMCMCSF = true , |
||
bool | useTopologyRescaling = false , |
||
bool | useRecommendedEVExclusions = false , |
||
bool | verbose = true , |
||
std::vector< std::string > | flavours = {"B", "C", "Light", "T"} |
||
) |
alternative constructor passing configuration information explicitly (so that no .env file is needed)
Definition at line 481 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationDataInterfaceROOT::CalibrationDataInterfaceROOT | ( | ) |
default constructor for PROOF object retrieval
Definition at line 603 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationDataInterfaceROOT::CalibrationDataInterfaceROOT | ( | const CalibrationDataInterfaceROOT & | other | ) |
copy constructor
Definition at line 612 of file CalibrationDataInterfaceROOT.cxx.
|
virtual |
default destructor
Definition at line 633 of file CalibrationDataInterfaceROOT.cxx.
|
private |
Definition at line 1919 of file CalibrationDataInterfaceROOT.cxx.
|
private |
Definition at line 1763 of file CalibrationDataInterfaceROOT.cxx.
|
protectedinherited |
utility function for combination of statistical and (a priori asymmetric) systematic uncertainty.
NB perhaps this should be in its own
Definition at line 147 of file CalibrationDataInterfaceBase.cxx.
|
inherited |
Main interface methods accessing the flavour tagging performance information.
Note that for both of the following, the label is assumed to adhere to the TruthInfo conventions (see package PhysicsAnalysis/JetTagging/JetTagInfo).
Definition at line 47 of file CalibrationDataInterfaceBase.cxx.
string Analysis::CalibrationDataInterfaceROOT::fullName | ( | const std::string & | author, |
const std::string & | OP, | ||
const std::string & | label, | ||
bool | isSF, | ||
unsigned | mapIndex = 0 |
||
) | const |
@ brief construct the full object pathname from its individual components
Definition at line 2721 of file CalibrationDataInterfaceROOT.cxx.
|
private |
|
protectedinherited |
auxiliary function for retrieval of name within the directory
Definition at line 138 of file CalibrationDataInterfaceBase.cxx.
const TH1 * Analysis::CalibrationDataInterfaceROOT::getBinnedScaleFactors | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP | ||
) |
retrieve the binned calibration object for the given flavour label and operating point.
A null result will be returned in case of error (e.g. if the calibration object isn't binned to begin with).
Definition at line 2108 of file CalibrationDataInterfaceROOT.cxx.
|
protectedinherited |
auxiliary function for retrieval of container name
Definition at line 118 of file CalibrationDataInterfaceBase.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getEfficiency | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc, | ||
const std::string & | flavour, | ||
unsigned int | numVariation = 0 , |
||
unsigned int | mapIndex = 0 |
||
) |
efficiency retrieval by name
Definition at line 1071 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getEfficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
const std::string & | flavour, | ||
unsigned int | numVariation = 0 |
||
) |
efficiency retrieval by index
Definition at line 1103 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getEfficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation, | ||
Analysis::CalibResult & | result, | ||
const std::string & | flavour | ||
) |
efficiency retrieval by index
Definition at line 1126 of file CalibrationDataInterfaceROOT.cxx.
std::map< std::string, std::map< std::string, float > > Analysis::CalibrationDataInterfaceROOT::getEigenVectorRecompositionCoefficientMap | ( | ) |
Get Eigenvector recomposition map after running runEigenVectorRecomposition()
Definition at line 2267 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getInefficiency | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc, | ||
unsigned int | numVariation = 0 , |
||
unsigned int | mapIndex = 0 |
||
) |
inefficiency retrieval by name
Definition at line 1307 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getInefficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
const std::string & | flavour, | ||
unsigned int | numVariation = 0 |
||
) |
inefficiency retrieval by index
Definition at line 1344 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getInefficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation, | ||
Analysis::CalibResult & | result, | ||
const std::string & | flavour | ||
) |
inefficiency retrieval by index
Definition at line 1368 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getInefficiencyScaleFactor | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc, | ||
unsigned int | numVariation = 0 , |
||
unsigned int | mapIndex = 0 |
||
) |
"MC" inefficiency scale factor retrieval by name
Definition at line 1186 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getInefficiencyScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
const std::string & | flavour, | ||
unsigned int | numVariation = 0 |
||
) |
"MC" inefficiency scale factor retrieval by index
Definition at line 1223 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getInefficiencyScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation, | ||
Analysis::CalibResult & | result, | ||
const std::string & | flavour | ||
) |
"MC" inefficiency scale factor retrieval by index
Definition at line 1247 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getMCEfficiency | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc = None , |
||
unsigned int | mapIndex = 0 |
||
) |
"MC" efficiency retrieval by name
Definition at line 963 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getMCEfficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | index, | ||
Uncertainty | unc, | ||
Analysis::CalibResult & | result | ||
) |
"MC" efficiency retrieval by index
Definition at line 1009 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getMCEfficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | index, | ||
Uncertainty | unc = None |
||
) |
const TObject * Analysis::CalibrationDataInterfaceROOT::getMCEfficiencyObject | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
unsigned int | mapIndex = 0 |
||
) |
retrieve the MC efficiency (central values) object for the given flavour label and operating point.
A null result will be returned in case of error (e.g. if the calibration object isn't binned to begin with). It is the user's responsibility to verify whether the object derives from a TH1 or a TF1.
Definition at line 2130 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getMCInefficiency | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc = None , |
||
unsigned int | mapIndex = 0 |
||
) |
"MC" inefficiency retrieval by name
Definition at line 1422 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getMCInefficiency | ( | const CalibrationDataVariables & | variables, |
unsigned int | index, | ||
Uncertainty | unc = None |
||
) |
"MC" inefficiency retrieval by index
Definition at line 1445 of file CalibrationDataInterfaceROOT.cxx.
double Analysis::CalibrationDataInterfaceROOT::getMCMCScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned | indexSF, | ||
unsigned int | indexEff | ||
) | const |
MC/MC scale factor retrieval.
Normally this is to be used only internally; however, since this information may be of interest it is made public anyway.
Definition at line 1465 of file CalibrationDataInterfaceROOT.cxx.
unsigned int Analysis::CalibrationDataInterfaceROOT::getNumVariations | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc | ||
) |
retrieve the number of variations relevant to the calibration object.
The Uncertainty enum is used to specify the category.
Definition at line 2063 of file CalibrationDataInterfaceROOT.cxx.
unsigned int Analysis::CalibrationDataInterfaceROOT::getNumVariations | ( | unsigned int | index, |
Uncertainty | unc, | ||
const std::string & | flavour | ||
) |
retrieve the number of variations relevant to the calibration object.
The Uncertainty enum is used to specify the category.
Definition at line 2085 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getScaleFactor | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
const std::string & | OP, | ||
Uncertainty | unc, | ||
unsigned int | numVariation = 0 , |
||
unsigned int | mapIndex = 0 |
||
) |
efficiency scale factor retrieval by name.
#1
Definition at line 736 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
const std::string & | flavour, | ||
unsigned int | numVariation = 0 |
||
) |
efficiency scale factor retrieval by index #2
Definition at line 767 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation, | ||
Analysis::CalibResult & | result, | ||
const std::string & | flavour | ||
) |
efficiency scale factor retrieval by index #3
Definition at line 788 of file CalibrationDataInterfaceROOT.cxx.
TMatrixDSym Analysis::CalibrationDataInterfaceROOT::getScaleFactorCovarianceMatrix | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
const std::string & | unc = "all" |
||
) |
retrieve the named covariance matrix element corresponding to the binned calibration object.
The unc argument should correspond to a given source of statistical or systematic uncertainty, or "all" (in case the full covariance matrix is required) For 2D and 3D histograms, the bin numbering follows the "global" bin number as defined by class TH1.
Definition at line 2415 of file CalibrationDataInterfaceROOT.cxx.
const TH1 * Analysis::CalibrationDataInterfaceROOT::getShiftedScaleFactors | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
const std::string & | unc, | ||
double | sigmas | ||
) |
retrieve the binned calibration object for the given flavour label and operating point, with the result shifted by the given number of standard deviations for the given systematic uncertainty.
A null result will be returned in case of error (e.g. if the calibration object isn't binned to begin with, or if the uncertainty asked for isn't fully correlated from bin to bin).
Definition at line 2158 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getWeightScaleFactor | ( | const CalibrationDataVariables & | variables, |
const std::string & | label, | ||
Uncertainty | unc, | ||
unsigned int | numVariation = 0 , |
||
unsigned int | mapIndex = 0 |
||
) |
efficiency scale factor retrieval by name
Definition at line 1485 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::getWeightScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation, | ||
Analysis::CalibResult & | result | ||
) |
efficiency scale factor retrieval by index, with different signature
Definition at line 1550 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibResult Analysis::CalibrationDataInterfaceROOT::getWeightScaleFactor | ( | const CalibrationDataVariables & | variables, |
unsigned int | indexSF, | ||
unsigned int | indexEff, | ||
Uncertainty | unc, | ||
unsigned int | numVariation = 0 |
||
) |
efficiency scale factor retrieval by index
Definition at line 1523 of file CalibrationDataInterfaceROOT.cxx.
|
private |
Definition at line 1959 of file CalibrationDataInterfaceROOT.cxx.
void Analysis::CalibrationDataInterfaceROOT::initialize | ( | const std::string & | jetauthor, |
const std::string & | OP, | ||
Uncertainty | unc | ||
) |
initialization for PROOF usage
Definition at line 2484 of file CalibrationDataInterfaceROOT.cxx.
std::vector< string > Analysis::CalibrationDataInterfaceROOT::listScaleFactorUncertainties | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
bool | named = false |
||
) |
retrieve the list of "uncertainties" relevant to the calibration object.
A few uncertainty names are predetermined: "result", "comment", "statistics", "systematics". Other sources of systematic uncertainty may be added. Note that the "systematics" source does not give access to correlations between bins. If the 'named' argument is true, the list does not include all uncertainties but only those excluded from the eigenvector construction (this option is only relevant if eigenvector use has been switched on to begin with). In this case the order of the uncertainties listed is important since it indicates the index by which the given named uncertainty is identified.
Definition at line 1987 of file CalibrationDataInterfaceROOT.cxx.
std::vector< string > Analysis::CalibrationDataInterfaceROOT::listScaleFactorUncertainties | ( | unsigned int | index, |
const std::string & | flavour, | ||
bool | named = false |
||
) |
retrieve the list of "uncertainties" relevant to the calibration object.
A few uncertainty names are predetermined: "result", "comment", "statistics", "systematics". Other sources of systematic uncertainty may be added. Note that the "systematics" source does not give access to correlations between bins. If the 'named' argument is true, the list does not include all uncertainties but only those excluded from the eigenvector construction (this option is only relevant if eigenvector use has been switched on to begin with). In this case the order of the uncertainties listed is important since it indicates the index by which the given named uncertainty is identified.
Definition at line 2015 of file CalibrationDataInterfaceROOT.cxx.
std::string Analysis::CalibrationDataInterfaceROOT::nameFromIndex | ( | unsigned int | index | ) | const |
Retrieve the name of the calibration object (container) given its index.
Definition at line 1945 of file CalibrationDataInterfaceROOT.cxx.
bool Analysis::CalibrationDataInterfaceROOT::retrieveCalibrationIndex | ( | const std::string & | label, |
const std::string & | OP, | ||
const std::string & | author, | ||
bool | isSF, | ||
unsigned int & | index, | ||
unsigned int | mapIndex = 0 |
||
) |
Retrieve the index of the calibration object (container) starting from the label and operating point.
The return value will be false if the requested object cannot be found.
Definition at line 688 of file CalibrationDataInterfaceROOT.cxx.
CalibrationDataContainer * Analysis::CalibrationDataInterfaceROOT::retrieveContainer | ( | const std::string & | label, |
const std::string & | OP, | ||
const std::string & | author, | ||
const std::string & | cntname, | ||
bool | isSF, | ||
bool | doPrint = true |
||
) |
utility function taking care of object retrieval
Definition at line 2523 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::runEigenVectorRecomposition | ( | const std::string & | author, |
const std::string & | label, | ||
const std::string & | OP, | ||
unsigned int | mapindex = 0 |
||
) |
run EigenVector Recomposition method
Definition at line 2207 of file CalibrationDataInterfaceROOT.cxx.
Analysis::CalibrationStatus Analysis::CalibrationDataInterfaceROOT::runEigenVectorRecomposition | ( | const std::string & | label, |
unsigned int | mapindex = 0 |
||
) |
Definition at line 2236 of file CalibrationDataInterfaceROOT.cxx.
|
inherited |
Definition at line 63 of file CalibrationDataInterfaceBase.cxx.
|
inherited |
Definition at line 87 of file CalibrationDataInterfaceBase.cxx.
|
inherited |
Definition at line 72 of file CalibrationDataInterfaceBase.cxx.
|
private |
Definition at line 474 of file CalibrationDataInterfaceROOT.h.
|
private |
Do not attempt to persistify (PROOF)
jet author aliases (there is no single CalibrationBroker object here to take care of this, so we do it in this class)
Definition at line 405 of file CalibrationDataInterfaceROOT.h.
|
privateinherited |
this simply collects the per-flavour properties.
Definition at line 72 of file CalibrationDataInterfaceBase.h.
|
privateinherited |
Definition at line 73 of file CalibrationDataInterfaceBase.h.
|
private |
Definition at line 488 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 466 of file CalibrationDataInterfaceROOT.h.
|
private |
store the eigenvector class and associate to its CalibrationDataContainer
Definition at line 426 of file CalibrationDataInterfaceROOT.h.
|
private |
counters for flagging out-of-bound cases
Definition at line 480 of file CalibrationDataInterfaceROOT.h.
|
private |
Eigenvector reduction strategy (per flavour)
Definition at line 433 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 430 of file CalibrationDataInterfaceROOT.h.
|
private |
store the uncertainties which should be excluded from building the full covariance matrix
Definition at line 436 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 482 of file CalibrationDataInterfaceROOT.h.
|
private |
pointer to the TFile object providing access to the calibrations
Definition at line 400 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 418 of file CalibrationDataInterfaceROOT.h.
|
private |
in addition, store also the filenames themselves (needed for the copy constructor)
Definition at line 417 of file CalibrationDataInterfaceROOT.h.
|
private |
Do not attempt to persistify (PROOF)
Definition at line 401 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 419 of file CalibrationDataInterfaceROOT.h.
|
private |
store the 'hadronisation' reference for each object (-1 means no reference found)
Definition at line 461 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 481 of file CalibrationDataInterfaceROOT.h.
|
private |
|eta| bounds and strategy for dealing with out-of-bounds conditions
Definition at line 473 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 489 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 411 of file CalibrationDataInterfaceROOT.h.
|
private |
cache the objects themselves (so that the user will not have to delete them after each call etc.).
The caching is done so that objects can be retrieved by number as well as by (OP, flavour, calibration name) combination.
Definition at line 410 of file CalibrationDataInterfaceROOT.h.
|
private |
Definition at line 475 of file CalibrationDataInterfaceROOT.h.
|
private |
the following maps (one for each directory) specify the name of the container serving as the 'hadronisation' reference for each object
Definition at line 459 of file CalibrationDataInterfaceROOT.h.
|
private |
decide whether to run the eigenvector method or not
Definition at line 429 of file CalibrationDataInterfaceROOT.h.
|
protectedinherited |
tagging algorithm name
Definition at line 94 of file CalibrationDataInterfaceBase.h.
|
private |
specify whether or not to use MC/MC (hadronisation) scale factors (the fact that this is steerable is intended to be temporary only)
Definition at line 452 of file CalibrationDataInterfaceROOT.h.
|
private |
if true, exclude pre-recommended lists of uncertainties from the covariance matrix building, in addition to the above user specified lists
Definition at line 441 of file CalibrationDataInterfaceROOT.h.
|
private |
specify whether or not to use MC/MC (topology) scale factors (also this steering option may be removed)
Definition at line 455 of file CalibrationDataInterfaceROOT.h.
|
private |
if true, allow also for some informational (and not only error/warning) messages
Definition at line 444 of file CalibrationDataInterfaceROOT.h.