All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory Class Reference

#include <TriggerEfficiencyPlotsBase.h>

Public Types

using QualifyFunc_t = std::function< bool(EventInfo_t const &)>
 Type of test function. More...
 

Public Member Functions

 PlotCategory (std::string name, std::string descr={}, QualifyFunc_t &&test=[](EventInfo_t const &){return true;})
 Constructor from category name and test function. More...
 
std::string const & name () const
 Returns the name of the category. More...
 
std::string const & description () const
 Returns the description of the category. More...
 
bool test (EventInfo_t const &info) const
 Returns whether the event belong to this category. More...
 
 operator std::string () const
 
bool operator() (EventInfo_t const &info) const
 

Private Attributes

std::string fName
 
std::string fDescr
 
QualifyFunc_t fTest
 

Detailed Description

Definition at line 1157 of file TriggerEfficiencyPlotsBase.h.

Member Typedef Documentation

Type of test function.

Definition at line 1162 of file TriggerEfficiencyPlotsBase.h.

Constructor & Destructor Documentation

icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::PlotCategory ( std::string  name,
std::string  descr = {},
QualifyFunc_t &&  test = [](EventInfo_t const&){ return true; } 
)
inline

Constructor from category name and test function.

Definition at line 1166 of file TriggerEfficiencyPlotsBase.h.

1167  {},
1168  QualifyFunc_t&& test = [](EventInfo_t const&){ return true; }
1169  )
1170  : fName(std::move(name)), fDescr(std::move(descr)), fTest(std::move(test))
1171  {}
std::string const & name() const
Returns the name of the category.
Information about the event.
bool test(EventInfo_t const &info) const
Returns whether the event belong to this category.
std::function< bool(EventInfo_t const &)> QualifyFunc_t
Type of test function.

Member Function Documentation

std::string const& icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::description ( ) const
inline

Returns the description of the category.

Definition at line 1177 of file TriggerEfficiencyPlotsBase.h.

std::string const& icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::name ( ) const
inline

Returns the name of the category.

Definition at line 1174 of file TriggerEfficiencyPlotsBase.h.

icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::operator std::string ( ) const
inline

Definition at line 1182 of file TriggerEfficiencyPlotsBase.h.

1182 { return name(); }
std::string const & name() const
Returns the name of the category.
bool icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::operator() ( EventInfo_t const &  info) const
inline

Definition at line 1183 of file TriggerEfficiencyPlotsBase.h.

1183 { return test(info); }
bool test(EventInfo_t const &info) const
Returns whether the event belong to this category.
bool icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::test ( EventInfo_t const &  info) const
inline

Returns whether the event belong to this category.

Definition at line 1180 of file TriggerEfficiencyPlotsBase.h.

Member Data Documentation

std::string icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::fDescr
private

Definition at line 1188 of file TriggerEfficiencyPlotsBase.h.

std::string icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::fName
private

Definition at line 1187 of file TriggerEfficiencyPlotsBase.h.

QualifyFunc_t icarus::trigger::TriggerEfficiencyPlotsBase::PlotCategory::fTest
private

Definition at line 1189 of file TriggerEfficiencyPlotsBase.h.


The documentation for this class was generated from the following file: