CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::EgDiEleCut Struct Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgDiEleCut:
egHLT::EgHLTDQMCut< OffEle >

Public Member Functions

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

Private Attributes

int cutCode_
 
int(OffEle::* cutCodeFunc_ )() const
 

Additional Inherited Members

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

Detailed Description

Definition at line 391 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

◆ EgDiEleCut()

egHLT::EgDiEleCut::EgDiEleCut ( int  cutCode,
int(OffEle::*)() const  cutCodeFunc 
)
inline

Definition at line 397 of file EgHLTDQMCut.h.

397 : cutCode_(cutCode), cutCodeFunc_(cutCodeFunc) {}

Referenced by clone().

Member Function Documentation

◆ clone()

EgHLTDQMCut<OffEle>* egHLT::EgDiEleCut::clone ( void  ) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 399 of file EgHLTDQMCut.h.

399 { return new EgDiEleCut(*this); }

References EgDiEleCut().

◆ pass()

bool EgDiEleCut::pass ( const OffEle obj,
const OffEvt evt 
) const
overridevirtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 98 of file EgHLTDQMCut.cc.

98  {
99  const std::vector<OffEle>& eles = evt.eles();
100  for (auto const& ele : eles) {
101  if (&ele != &obj) { //different electrons
102 
103  int diEleCutCode = (obj.*cutCodeFunc_)() | (ele.*cutCodeFunc_)();
104  if ((diEleCutCode & cutCode_) == 0x0)
105  return true;
106  }
107  }
108  return false;
109 }

References cutCode_, cutCodeFunc_, egHLT::OffEvt::eles(), and getGTfromDQMFile::obj.

Member Data Documentation

◆ cutCode_

int egHLT::EgDiEleCut::cutCode_
private

Definition at line 393 of file EgHLTDQMCut.h.

Referenced by pass().

◆ cutCodeFunc_

int(OffEle::* egHLT::EgDiEleCut::cutCodeFunc_) () const
private

Definition at line 394 of file EgHLTDQMCut.h.

Referenced by pass().

egHLT::EgDiEleCut::EgDiEleCut
EgDiEleCut(int cutCode, int(OffEle::*cutCodeFunc)() const)
Definition: EgHLTDQMCut.h:397
egHLT::EgDiEleCut::cutCodeFunc_
int(OffEle::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:394
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
egHLT::OffEvt::eles
const std::vector< OffEle > & eles() const
Definition: EgHLTOffEvt.h:48
egHLT::EgDiEleCut::cutCode_
int cutCode_
Definition: EgHLTDQMCut.h:393