CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::EgGreaterCut< T, varType > Struct Template Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgGreaterCut< T, varType >:
egHLT::EgHLTDQMCut< T >

Public Member Functions

EgHLTDQMCut< T > * clone () const override
 
 EgGreaterCut (varType cutValue, varType(T::*varFunc)() const)
 
bool pass (const T &obj, const OffEvt &evt) const override
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut ()=default
 
virtual ~EgHLTDQMCut ()=default
 

Private Attributes

varType cutValue_
 
varType(T::* varFunc_ )() const
 

Additional Inherited Members

- Protected Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut (const EgHLTDQMCut &rhs)=default
 

Detailed Description

template<class T, typename varType>
struct egHLT::EgGreaterCut< T, varType >

Definition at line 97 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

template<class T, typename varType>
egHLT::EgGreaterCut< T, varType >::EgGreaterCut ( varType  cutValue,
varType(T::*)() const  varFunc 
)
inline

Definition at line 103 of file EgHLTDQMCut.h.

103 : cutValue_(cutValue), varFunc_(varFunc) {}
varType(T::* varFunc_)() const
Definition: EgHLTDQMCut.h:100

Member Function Documentation

template<class T, typename varType>
EgHLTDQMCut<T>* egHLT::EgGreaterCut< T, varType >::clone ( void  ) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 106 of file EgHLTDQMCut.h.

106 { return new EgGreaterCut(*this); } //default copy constructor is fine
EgGreaterCut(varType cutValue, varType(T::*varFunc)() const)
Definition: EgHLTDQMCut.h:103
template<class T, typename varType>
bool egHLT::EgGreaterCut< T, varType >::pass ( const T obj,
const OffEvt evt 
) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 105 of file EgHLTDQMCut.h.

105 { return (obj.*varFunc_)() > cutValue_; }
varType(T::* varFunc_)() const
Definition: EgHLTDQMCut.h:100

Member Data Documentation

template<class T, typename varType>
varType egHLT::EgGreaterCut< T, varType >::cutValue_
private

Definition at line 99 of file EgHLTDQMCut.h.

template<class T, typename varType>
varType(T::* egHLT::EgGreaterCut< T, varType >::varFunc_) () const
private

Definition at line 100 of file EgHLTDQMCut.h.