Rivet API documentation

Rivet 4.1.3
Analysis macros

Macros

#define RIVET_DECLARE_PLUGIN(clsname)
#define RIVET_DECLARE_ALIASED_PLUGIN(clsname, alias)
#define RIVET_DEFAULT_ANALYSIS_CTOR(clsname)
#define RIVET_REGISTER_TYPE(...)
#define RIVET_REGISTER_BINNED_SET(...)

Detailed Description

Macro Definition Documentation

◆ RIVET_DECLARE_ALIASED_PLUGIN

#define RIVET_DECLARE_ALIASED_PLUGIN ( clsname,
alias )
Value:
RIVET_DECLARE_PLUGIN(clsname)( #alias )
#define RIVET_DECLARE_PLUGIN(clsname)
Definition Analysis.hh:2040

Preprocessor define to prettify the global-object plugin hook mechanism, with an extra alias name for this analysis

◆ RIVET_DECLARE_PLUGIN

#define RIVET_DECLARE_PLUGIN ( clsname)
Value:
::Rivet::AnalysisBuilder<clsname> plugin_ ## clsname

Preprocessor define to prettify the global-object plugin hook mechanism

◆ RIVET_DEFAULT_ANALYSIS_CTOR

#define RIVET_DEFAULT_ANALYSIS_CTOR ( clsname)
Value:
clsname() : Analysis(# clsname) {}

Preprocessor define to prettify the awkward constructor, with a name-string argument

◆ RIVET_REGISTER_BINNED_SET

#define RIVET_REGISTER_BINNED_SET ( ...)
Value:
{ \
RIVET_REGISTER_TYPE(YODA::BinnedHisto<__VA_ARGS__>); \
RIVET_REGISTER_TYPE(YODA::BinnedProfile<__VA_ARGS__>); \
RIVET_REGISTER_TYPE(YODA::BinnedEstimate<__VA_ARGS__>); }

Preprocessor define to prettify on-the-fly type registration

◆ RIVET_REGISTER_TYPE

#define RIVET_REGISTER_TYPE ( ...)
Value:
handler().registerType<__VA_ARGS__>()

Preprocessor define to prettify on-the-fly type registration