NSL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Protected Attributes | Friends | List of all members
NSL::Selection Class Reference

#include <Selection.h>

Inheritance diagram for NSL::Selection:
NSL::Selections::InnerTracker::ChargeInRange NSL::Selections::InnerTracker::ChargeRMSLessThan NSL::Selections::InnerTracker::HitPattern NSL::Selections::InnerTracker::NGoodClustersGreaterThan NSL::Selections::InnerTracker::NHitsGreaterThan NSL::Selections::Tof::BetaInRange NSL::Selections::Tof::ChargeInRange NSL::Selections::Tof::GoodPathlength NSL::Selections::Track::ChiSquareLessThan NSL::Selections::Track::HitCut NSL::Selections::Track::InnerFiducialVolume NSL::Selections::Track::L1FiducialVolume NSL::Selections::Track::L1NormResidualLessThan NSL::Selections::Track::L9FiducialVolume NSL::Selections::TrackerLayer::ChargeAsymmetry NSL::Selections::TrackerLayer::ChargeInRange NSL::Selections::TrackerLayer::ChargeStatus NSL::Selections::Trigger::HasPhysicsTrigger

Public Member Functions

template<class Hook , std::enable_if_t< std::is_convertible< Hook, matcher::hookType >::value, bool > = true>
SelectionAddPreHook (Hook &&preHook)
 
template<class Hook , std::enable_if_t< std::is_convertible< Hook, matcher::hookType >::value, bool > = true>
SelectionAddPostHook (Hook &&preHook, PostHookCondition condition=PostHookCondition::OnSuccess)
 
virtual bool operator() (Event &ev)
 
template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selectionoperator&= (T &&rhs)
 
template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selectionoperator|= (T &&rhs)
 

Protected Attributes

RefCMatcher m_matcher = std::make_shared<boolMatcher>([](Event &ev) { return true; })
 

Friends

template<typename T , typename U , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true, std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< U >>::value, bool > = true>
Selection operator&& (T &&lhs, U &&rhs)
 
template<typename T , typename U , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true, std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< U >>::value, bool > = true>
Selection operator|| (T &&lhs, U &&rhs)
 
template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selection operator! (T &&lhs)
 

Detailed Description

Definition at line 12 of file Selection.h.

Member Function Documentation

template<class Hook , std::enable_if_t< std::is_convertible< Hook, matcher::hookType >::value, bool > = true>
Selection& NSL::Selection::AddPostHook ( Hook &&  preHook,
PostHookCondition  condition = PostHookCondition::OnSuccess 
)
inline

Definition at line 51 of file Selection.h.

References m_matcher.

template<class Hook , std::enable_if_t< std::is_convertible< Hook, matcher::hookType >::value, bool > = true>
Selection& NSL::Selection::AddPreHook ( Hook &&  preHook)
inline

Definition at line 45 of file Selection.h.

References m_matcher.

template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selection& NSL::Selection::operator&= ( T &&  rhs)
inline

Definition at line 59 of file Selection.h.

References m_matcher.

virtual bool NSL::Selection::operator() ( Event ev)
inlinevirtual

Definition at line 56 of file Selection.h.

References m_matcher.

template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selection& NSL::Selection::operator|= ( T &&  rhs)
inline

Definition at line 66 of file Selection.h.

References m_matcher.

Friends And Related Function Documentation

template<typename T , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true>
Selection operator! ( T &&  lhs)
friend

Definition at line 36 of file Selection.h.

template<typename T , typename U , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true, std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< U >>::value, bool > = true>
Selection operator&& ( T &&  lhs,
U &&  rhs 
)
friend

Definition at line 17 of file Selection.h.

template<typename T , typename U , std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< T >>::value, bool > = true, std::enable_if_t< std::is_base_of< Selection, std::remove_reference_t< U >>::value, bool > = true>
Selection operator|| ( T &&  lhs,
U &&  rhs 
)
friend

Definition at line 27 of file Selection.h.

Member Data Documentation

RefCMatcher NSL::Selection::m_matcher = std::make_shared<boolMatcher>([](Event &ev) { return true; })
protected

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