KLFitter
v1.3.2
Documentation of the KLFitter library -- The Kinematic Likelihood Fitter
|
A base class for describing detectors. More...
#include <DetectorBase.h>
Public Member Functions | |
DetectorBase (std::string folder="") | |
The default constructor. More... | |
virtual | ~DetectorBase () |
The (defaulted) destructor. | |
Member functions (Get) | |
virtual ResolutionBase * | ResEnergyLightJet (double)=0 |
Return the energy resolution of light jets. More... | |
virtual ResolutionBase * | ResEnergyBJet (double)=0 |
Return the energy resolution of b jets. More... | |
virtual ResolutionBase * | ResEnergyGluonJet (double)=0 |
Return the energy resolution of gluon jets. More... | |
virtual ResolutionBase * | ResEnergyElectron (double)=0 |
Return the energy resolution of electrons. More... | |
virtual ResolutionBase * | ResEnergyMuon (double)=0 |
Return the energy resolution of muons. More... | |
virtual ResolutionBase * | ResEnergyPhoton (double)=0 |
Return the energy resolution of photons. More... | |
virtual ResolutionBase * | ResMissingET ()=0 |
Return the missing ET resolution. More... | |
virtual ResolutionBase * | ResEtaLightJet (double)=0 |
Return the eta resolution of light jets. More... | |
virtual ResolutionBase * | ResEtaBJet (double)=0 |
Return the eta resolution of b jets. More... | |
virtual ResolutionBase * | ResPhiLightJet (double)=0 |
Return the phi resolution of light jets. More... | |
virtual ResolutionBase * | ResPhiBJet (double)=0 |
Return the phi resolution of b jets. More... | |
Member functions (misc) | |
int | Status () |
void | RequestResolutionType (const ResolutionType &type) |
Request a resolution type from the detector. More... | |
Protected Member Functions | |
ResolutionBase * | ResolutionUndefined (const std::string &type) |
Handle the call to a resolution object that is not defined, and throw an exception. More... | |
void | ResolutionParametersUnavailable (const std::string &type) |
Handle cases where the parameters for a resolution type are not available. More... | |
Protected Attributes | |
std::set< ResolutionType > | res_type_requested |
Requested resolutions that the detector must provide. | |
A base class for describing detectors.
This base class contains the energy resolution of different objects. More information (angular resolutions, acceptance, correections, etc.) can be added here.
|
explicit |
The default constructor.
folder | The folder with transfer function parameters. |
void KLFitter::DetectorBase::RequestResolutionType | ( | const ResolutionType & | type | ) |
Request a resolution type from the detector.
The likelihoods should define which resolution types are needed and make the appropriate requests to the detector class. Requested resolution types are then checked in the Status() function.
type | The ResolutionType object |
|
pure virtual |
Return the energy resolution of b jets.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorSnowmass, KLFitter::DetectorAtlas_CrystalBall, and KLFitter::DetectorAtlas_7TeV.
|
pure virtual |
Return the energy resolution of electrons.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
pure virtual |
Return the energy resolution of gluon jets.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorSnowmass, KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, and KLFitter::DetectorAtlas_7TeV.
|
pure virtual |
Return the energy resolution of light jets.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorSnowmass, KLFitter::DetectorAtlas_CrystalBall, and KLFitter::DetectorAtlas_7TeV.
|
pure virtual |
Return the energy resolution of muons.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
pure virtual |
Return the energy resolution of photons.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorSnowmass, KLFitter::DetectorAtlas_CrystalBall, and KLFitter::DetectorAtlas_7TeV.
|
pure virtual |
Return the eta resolution of b jets.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
pure virtual |
Return the eta resolution of light jets.
eta | The eta of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
pure virtual |
Return the missing ET resolution.
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
protected |
Handle cases where the parameters for a resolution type are not available.
This prints an error message and throws an exception of type std::invalid_argument.
type | The name of the resolution function |
|
protected |
Handle the call to a resolution object that is not defined, and throw an exception.
The derived detector classes are expected to reimplement all resolution functions and, if not supported by the detector, return this dummy object that throws the exception accordingly.
type | The type of resolution function |
|
pure virtual |
Return the phi resolution of b jets.
eta | The phi of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.
|
pure virtual |
Return the phi resolution of light jets.
eta | The phi of the particle. |
Implemented in KLFitter::DetectorAtlas_8TeV, KLFitter::DetectorAtlas_CrystalBall, KLFitter::DetectorAtlas_7TeV, and KLFitter::DetectorSnowmass.