#include <BTagEntry.h>
Classes | |
struct | Parameters |
Public Types | |
enum | JetFlavor { FLAV_B =0, FLAV_C =1, FLAV_UDSG =2 } |
enum | OperatingPoint { OP_LOOSE =0, OP_MEDIUM =1, OP_TIGHT =2, OP_RESHAPING =3 } |
Public Member Functions | |
BTagEntry () | |
BTagEntry (const std::string &csvLine) | |
BTagEntry (const std::string &func, Parameters p) | |
BTagEntry (const TF1 *func, Parameters p) | |
BTagEntry (const TH1 *histo, Parameters p) | |
std::string | makeCSVLine () const |
~BTagEntry () | |
Static Public Member Functions | |
static std::string | makeCSVHeader () |
static std::string | trimStr (std::string str) |
Public Attributes | |
std::string | formula |
Parameters | params |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Represents one pt- or discriminator-dependent calibration function.
measurement_type: e.g. comb, ttbar, di-mu, boosted, ... sys_type: e.g. central, plus, minus, plus_JEC, plus_JER, ...
Everything is converted into a function, as it is easiest to store it in a txt or json file.
Definition at line 24 of file BTagEntry.h.
enum BTagEntry::JetFlavor |
Enumerator | |
---|---|
FLAV_B | |
FLAV_C | |
FLAV_UDSG |
Definition at line 33 of file BTagEntry.h.
Enumerator | |
---|---|
OP_LOOSE | |
OP_MEDIUM | |
OP_TIGHT | |
OP_RESHAPING |
Definition at line 27 of file BTagEntry.h.
|
inline |
Definition at line 67 of file BTagEntry.h.
BTagEntry::BTagEntry | ( | const std::string & | csvLine | ) |
Definition at line 36 of file BTagEntry.cc.
References begin, end, Exception, python.connectstrParser::f1, formula, i, params, AlCaHLTBitMon_QueryRunRegistry::string, and trimStr().
BTagEntry::BTagEntry | ( | const std::string & | func, |
BTagEntry::Parameters | p | ||
) |
Definition at line 99 of file BTagEntry.cc.
References Exception, python.connectstrParser::f1, and formula.
BTagEntry::BTagEntry | ( | const TF1 * | func, |
BTagEntry::Parameters | p | ||
) |
BTagEntry::BTagEntry | ( | const TH1 * | histo, |
BTagEntry::Parameters | p | ||
) |
Definition at line 186 of file BTagEntry.cc.
References BTagEntry::Parameters::discrMax, BTagEntry::Parameters::discrMin, Exception, python.connectstrParser::f1, formula, pileupCalc::nbins, OP_RESHAPING, BTagEntry::Parameters::operatingPoint, params, BTagEntry::Parameters::ptMax, BTagEntry::Parameters::ptMin, th1ToFormulaBinTree(), and th1ToFormulaLin().
|
inline |
Definition at line 72 of file BTagEntry.h.
|
static |
Definition at line 218 of file BTagEntry.cc.
Referenced by BTagCalibration::makeCSV().
std::string BTagEntry::makeCSVLine | ( | ) | const |
Definition at line 233 of file BTagEntry.cc.
References BTagEntry::Parameters::discrMax, BTagEntry::Parameters::discrMin, BTagEntry::Parameters::etaMax, BTagEntry::Parameters::etaMin, formula, BTagEntry::Parameters::jetFlavor, BTagEntry::Parameters::measurementType, BTagEntry::Parameters::operatingPoint, params, BTagEntry::Parameters::ptMax, BTagEntry::Parameters::ptMin, and BTagEntry::Parameters::sysType.
|
private |
|
static |
Definition at line 251 of file BTagEntry.cc.
References alignCSCRings::e, and alignCSCRings::s.
Referenced by BTagEntry(), and BTagCalibration::readCSV().
|
friend |
Definition at line 81 of file BTagEntry.h.
|
friend |
Definition at line 81 of file BTagEntry.h.
std::string BTagEntry::formula |
Definition at line 78 of file BTagEntry.h.
Referenced by BTagEntry(), makeCSVLine(), and BTagCalibrationReader::setupTmpData().
Parameters BTagEntry::params |
Definition at line 79 of file BTagEntry.h.
Referenced by BTagCalibration::addEntry(), BTagEntry(), makeCSVLine(), and BTagCalibrationReader::setupTmpData().