![]() |
DAS
3.0
Das Analysis System
|
Applier class with context. Use unique_ptr to check that we don't inadvertently copy (since unique_ptr cannot be copied).
Public Member Functions | |
ContextApplier (const fs::path &filePath, bool correction, bool uncertainties) | |
bool | passes (const SimpleObject &, const unique_ptr< int > &ctx) const override |
int | binIndex (const SimpleObject &obj, const unique_ptr< int > &ctx, const unique_ptr< TH1 > &hist) const override |
![]() | |
GenericSFApplier (const std::filesystem::path &filePath, bool correction, bool uncertainties) | |
virtual | ~GenericSFApplier () noexcept=default |
void | operator() (SimpleObject &object, const Context &... ctx) const |
void | operator() (std::vector< SimpleObject > &objects, const Context &... ctx) const |
std::vector< std::string > | weightNames () const |
Public Attributes | |
unique_ptr< int > | expectedContext = make_unique<int>(42) |
Additional Inherited Members | |
![]() | |
enum | Interpretation |
![]() | |
void | loadNominal (const std::string &histPath) |
void | loadBinWiseUnc (const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent) |
void | loadGlobalUnc (const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent) |
virtual bool | passes (const SimpleObject &obj, const Context &... ctx) const=0 |
virtual int | binIndex (const SimpleObject &obj, const Context &... ctx, const std::unique_ptr< TH1 > &hist) const=0 |
|
inline |
|
inlineoverride |
|
inlineoverride |
unique_ptr<int> expectedContext = make_unique<int>(42) |
The test passes this pointer and we check that we receive it correctly.