48 unsigned int mapIndex)
const
56 catch (
const std::out_of_range& e) {
57 std::cerr <<
"EffCalibrationName: flavour '" << flavour <<
"' is not known." << std::endl;
64 std::vector<std::string> >& names)
80 catch (
const std::out_of_range& e) {
81 std::cerr <<
"SFCalibrationName: flavour '" << flavour <<
"' is not known." << std::endl;
119 bool SF,
unsigned int mapIndex)
const
126 if (!SF && mapIndex >= effNames.size()) {
127 std::cerr <<
"getContainername: given mapIndex=" << mapIndex <<
" incompatible with array size "
128 << effNames.size() <<
"; resetting to 0" << std::endl;
132 name += SF ?
"_SF" :
"_Eff";
142 return name.substr(name.find_last_of(
'/')+1, std::string::npos);
148 const std::pair<double, double>& syst)
const
157 double largest = syst.first;
158 if (TMath::Abs(syst.second) > TMath::Abs(largest)) largest = syst.second;
160 return TMath::Sqrt(stat*stat + largest*largest);
ClassImp(Analysis::CalibrationDataInterfaceBase) Analysis
This class provides some common functionality for other classes wishing to access Flavour Tagging per...
CalibrationDataInterfaceBase()
std::map< std::string, std::vector< std::string > > m_calibrationEffNames
this simply collects the per-flavour properties.
const std::string & SFCalibrationName(const std::string &flavour) const
void setEffCalibrationNames(const std::map< std::string, std::vector< std::string > > &names)
std::string getContainername(const std::string &flavour, bool SF, unsigned int mapIndex=0) const
auxiliary function for string concatenation
void setSFCalibrationNames(const std::map< std::string, std::string > &names)
const std::string & EffCalibrationName(const std::string &flavour, unsigned int mapIndex=0) const
Main interface methods accessing the flavour tagging performance information.
virtual ~CalibrationDataInterfaceBase()=0
default destructor
std::string getBasename(const std::string &name) const
auxiliary function for retrieval of name within the directory
std::map< std::string, std::string > m_calibrationSFNames
double combinedUncertainty(double stat, const std::pair< double, double > &syst) const
utility function for combination of statistical and (a priori asymmetric) systematic uncertainty.