Public Member Functions | |
virtual StatusCode | initialize ()=0 |
initialize the tool. Call once all properties are set up to your liking | |
virtual CorrectionCode | getEfficiencyScaleFactor (const xAOD::Muon &mu, float &sf, const xAOD::EventInfo *info=0) const =0 |
Retrieve the Scale factor. | |
virtual CorrectionCode | applyEfficiencyScaleFactor (const xAOD::Muon &mu, const xAOD::EventInfo *info=0) const =0 |
decorate the muon with scale factor information | |
virtual CorrectionCode | getEfficiencyScaleFactorReplicas (const xAOD::Muon &mu, std::vector< float > &sf_err, const xAOD::EventInfo *info=0) const =0 |
BONUS functionality. | |
virtual CorrectionCode | applyEfficiencyScaleFactorReplicas (const xAOD::Muon &mu, int nreplicas=50, const xAOD::EventInfo *info=0) const =0 |
decorate the muon with a set of SF replica weights. | |
virtual CorrectionCode | getDataEfficiency (const xAOD::Muon &mu, float &eff, const xAOD::EventInfo *info=0) const =0 |
Obtain the muon efficiency measured using the data. | |
virtual CorrectionCode | applyDataEfficiency (const xAOD::Muon &mu, const xAOD::EventInfo *info=0) const =0 |
decorate a muon with the efficiency information | |
virtual CorrectionCode | getMCEfficiency (const xAOD::Muon &mu, float &eff, const xAOD::EventInfo *info=0) const =0 |
Obtain the muon efficiency measured using the MonteCarlo. | |
virtual CorrectionCode | applyMCEfficiency (const xAOD::Muon &mu, const xAOD::EventInfo *info=0) const =0 |
virtual CorrectionCode CP::IMuonEfficiencyScaleFactors::getEfficiencyScaleFactorReplicas | ( | const xAOD::Muon & | mu, | |
std::vector< float > & | sf_err, | |||
const xAOD::EventInfo * | info = 0 | |||
) | const [pure virtual] |
BONUS functionality.
An optional, less conservative way of treating the SF stat error. Here, we generate a set of SF replicas, each by smearing the SF bin by bin with a gaussian with the width of the SF error in that bin the SF stat systematic is then the variation of the final observable within the replicas
Implemented in CP::MuonEfficiencyScaleFactors.