BTagCalibration
The 'hierarchy' of stored information is this:
- by tagger (BTagCalibration)
- by operating point or reshape bin
- by jet parton flavor
- by type of measurement
- by systematic
- by eta bin
- as 1D-function dependent of pt or discriminant
#include <BTagCalibration.h>
◆ BTagCalibration() [1/3]
◆ BTagCalibration() [2/3]
◆ BTagCalibration() [3/3]
BTagCalibration |
( |
const std::string & |
tagger, |
|
|
const std::string & |
filename |
|
) |
| |
285 std::ifstream ifs(filename);
287 std::cerr <<
"ERROR in BTagCalibration: "
288 <<
"input file not available: "
290 throw std::exception();
◆ ~BTagCalibration()
◆ addEntry()
◆ getEntries()
304 std::string tok =
token(par);
305 if (!
data_.count(tok)) {
306 std::cerr <<
"ERROR in BTagCalibration: "
307 <<
"(OperatingPoint, measurementType, sysType) not available: "
309 throw std::exception();
311 return data_.at(tok);
◆ makeCSV() [1/2]
std::string makeCSV |
( |
| ) |
const |
354 std::stringstream buff;
◆ makeCSV() [2/2]
void makeCSV |
( |
std::ostream & |
s | ) |
const |
342 for (std::map<std::string, std::vector<BTagEntry> >::const_iterator i
344 const std::vector<BTagEntry> &vec = i->second;
345 for (std::vector<BTagEntry>::const_iterator j
346 = vec.cbegin(); j != vec.cend(); ++j) {
347 s << j->makeCSVLine();
◆ readCSV() [1/2]
void readCSV |
( |
const std::string & |
s | ) |
|
316 std::stringstream buff(s);
◆ readCSV() [2/2]
void readCSV |
( |
std::istream & |
s | ) |
|
326 if (line.find(
"OperatingPoint") == std::string::npos) {
330 while (getline(s,line)) {
◆ tagger()
std::string tagger |
( |
| ) |
const |
|
inline |
◆ token()
361 std::stringstream buff;
◆ data_
std::map<std::string, std::vector<BTagEntry> > data_ |
|
protected |
◆ tagger_
The documentation for this class was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/BTagging/interface/BTagCalibration.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/BTagging/src/BTagCalibration.cc