DAS  3.0
Das Analysis System
SimpleObjectApplier

Description

Simple applier class. Selects objects with bin > 1. Has two uncertainties.

+ Inheritance diagram for SimpleObjectApplier:
+ Collaboration diagram for SimpleObjectApplier:

Public Member Functions

 SimpleObjectApplier (const fs::path &filePath, bool correction, bool uncertainties)
 
bool passes (const SimpleObject &obj) const override
 
int binIndex (const SimpleObject &obj, const unique_ptr< TH1 > &hist) const override
 
- Public Member Functions inherited from GenericSFApplier< SimpleObject >
 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
 

Additional Inherited Members

- Protected Types inherited from GenericSFApplier< SimpleObject >
enum  Interpretation
 
- Protected Member Functions inherited from GenericSFApplier< SimpleObject >
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
 

Constructor & Destructor Documentation

◆ SimpleObjectApplier()

SimpleObjectApplier ( const fs::path &  filePath,
bool  correction,
bool  uncertainties 
)
inline
90  : GenericSFApplier(filePath, correction, uncertainties)
91  {
95  }

Member Function Documentation

◆ binIndex()

int binIndex ( const SimpleObject obj,
const unique_ptr< TH1 > &  hist 
) const
inlineoverride
102  { return hist->FindBin(obj.bin); }

◆ passes()

bool passes ( const SimpleObject obj) const
inlineoverride
98  { return obj.bin > 1; }

The documentation for this struct was generated from the following file:
DAS::GenericSFApplier< SimpleObject >::GenericSFApplier
GenericSFApplier(const std::filesystem::path &filePath, bool correction, bool uncertainties)
Constructor.
Definition: GenericSFApplier.h:153
DAS::GenericSFApplier< SimpleObject >::loadNominal
void loadNominal(const std::string &histPath)
Loads the histogram with the nominal scale factor. Has no effect when not applying the correction.
Definition: GenericSFApplier.h:259
BIN_WISE_NAME
#define BIN_WISE_NAME
Definition: testGenericSFApplier.cc:22
HIST_PREFIX
#define HIST_PREFIX
Definition: testGenericSFApplier.cc:21
DAS::GenericSFApplier< SimpleObject >::loadBinWiseUnc
void loadBinWiseUnc(const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent)
Loads a systematic with bin-by-bin correlations.
Definition: GenericSFApplier.h:275
GLOBAL_NAME
#define GLOBAL_NAME
Definition: testGenericSFApplier.cc:23
SimpleObject::bin
int bin
Definition: testGenericSFApplier.cc:80
DAS::GenericSFApplier< SimpleObject >::loadGlobalUnc
void loadGlobalUnc(const std::string &name, const std::string &histPath, Interpretation intp=UseBinContent)
Loads a fully correlated systematic.
Definition: GenericSFApplier.h:295