|
ATLAS Offline Software
|
Go to the documentation of this file.
48 unsigned int mapIndex)
const
54 return m_calibrationEffNames.at(flavour)[mapIndex];
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)
68 m_calibrationEffNames =
names;
78 return m_calibrationSFNames.at(flavour);
80 catch (
const std::out_of_range&
e) {
81 std::cerr <<
"SFCalibrationName: flavour '" << flavour <<
"' is not known." << std::endl;
91 m_calibrationSFNames =
names;
119 bool SF,
unsigned int mapIndex)
const
125 const std::vector<std::string>& effNames = m_calibrationEffNames.at(flavour);
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;
131 std::string
name =
SF ? m_calibrationSFNames.at(flavour) : effNames[mapIndex];
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
158 if (TMath::Abs(syst.second) > TMath::Abs(
largest))
largest = syst.second;
const std::string & EffCalibrationName(const std::string &flavour, unsigned int mapIndex=0) const
Main interface methods accessing the flavour tagging performance information.
ClassImp(Analysis::CalibrationDataInterfaceBase) Analysis
const float SF[NF]
Cross sections for Fluor.
virtual ~CalibrationDataInterfaceBase()=0
default destructor
const std::string & SFCalibrationName(const std::string &flavour) const
CalibrationDataInterfaceBase()
double combinedUncertainty(double stat, const std::pair< double, double > &syst) const
utility function for combination of statistical and (a priori asymmetric) systematic uncertainty.
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 retrieval of container name
void setSFCalibrationNames(const std::map< std::string, std::string > &names)
std::string getBasename(const std::string &name) const
auxiliary function for retrieval of name within the directory