Public Member Functions | |
EfficiencyScaleFactor () | |
default constructor - will create the histos as NULL pointers | |
EfficiencyScaleFactor (const std::string &file, const std::string &time_unit, SystematicSet sys, CP::MuonEfficiencyType effType, bool is_lowpt=false, bool hasPtDepSys=false) | |
constructor to use in real life - will read in the histos from the given file | |
EfficiencyScaleFactor (EfficiencyScaleFactor *Nominal, const std::string &file, const std::string &time_unit, SystematicSet sys, CP::MuonEfficiencyType effType, bool is_lowpt=false, bool hasPtDepSys=false) | |
EfficiencyScaleFactor (const EfficiencyScaleFactor &other) | |
EfficiencyScaleFactor & | operator= (const EfficiencyScaleFactor &other) |
bool | ReadFromFile (std::string file, std::string time_unit) |
Read SF histrograms from a given input file. | |
HistHandler * | ReadHistFromFile (std::string name, TFile *f, std::string time_unit) |
void | ApplySysVariation () |
bool | CheckConsistency () |
check the consistency - all histograms should be well defined | |
int | nBinsSF () const |
int | nBinsEfficiency () const |
bool | SetSystematicBin (int bin) |
CorrectionCode | ScaleFactor (const xAOD::Muon &mu, float &SF) const |
the important bits - extract SF info | |
CorrectionCode | ScaleFactorReplicas (const xAOD::Muon &mu, std::vector< float > &SF) |
CorrectionCode | DataEfficiency (const xAOD::Muon &mu, float &Eff) const |
... and absolute efficiencies | |
CorrectionCode | DataEfficiencyReplicas (const xAOD::Muon &mu, std::vector< float > &eff) |
CorrectionCode | MCEfficiency (const xAOD::Muon &mu, float &Eff) const |
CorrectionCode | MCEfficiencyReplicas (const xAOD::Muon &mu, std::vector< float > &eff) |
void | DebugPrint () |
debug method | |
std::string | sysname () const |
CorrectionCode EfficiencyScaleFactor::ScaleFactor | ( | const xAOD::Muon & | mu, | |
float & | SF | |||
) | const |
the important bits - extract SF info
scale factors...