CMS 3D CMS Logo

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

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::ChargeCut< T >:
egHLT::EgHLTDQMCut< T >

Public Member Functions

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

Private Attributes

int charge_
 

Additional Inherited Members

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

Detailed Description

template<class T>
struct egHLT::ChargeCut< T >

Definition at line 252 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

◆ ChargeCut()

template<class T >
egHLT::ChargeCut< T >::ChargeCut ( int  charge)
inline

Definition at line 257 of file EgHLTDQMCut.h.

257 : charge_(charge) {}

Referenced by egHLT::ChargeCut< T >::clone().

◆ ~ChargeCut()

template<class T >
egHLT::ChargeCut< T >::~ChargeCut ( )
overridedefault

Member Function Documentation

◆ clone()

template<class T >
EgHLTDQMCut<T>* egHLT::ChargeCut< T >::clone ( void  ) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 261 of file EgHLTDQMCut.h.

261 { return new ChargeCut(*this); }

References egHLT::ChargeCut< T >::ChargeCut().

◆ pass()

template<class T >
bool egHLT::ChargeCut< T >::pass ( const T obj,
const OffEvt evt 
) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 260 of file EgHLTDQMCut.h.

260 { return obj.charge() == charge_; }

References egHLT::ChargeCut< T >::charge_, and getGTfromDQMFile::obj.

Member Data Documentation

◆ charge_

template<class T >
int egHLT::ChargeCut< T >::charge_
private

Definition at line 254 of file EgHLTDQMCut.h.

Referenced by egHLT::ChargeCut< T >::pass().

egHLT::ChargeCut::charge_
int charge_
Definition: EgHLTDQMCut.h:254
egHLT::ChargeCut::ChargeCut
ChargeCut(int charge)
Definition: EgHLTDQMCut.h:257
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47