CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pat::eventhypothesis::ByString Class Reference

#include <EventHypothesisTools.h>

Inheritance diagram for pat::eventhypothesis::ByString:
pat::eventhypothesis::ParticleFilter

Public Member Functions

 ByString (const std::string &cut)
 
bool operator() (const CandRefType &cand, const std::string &role) const override
 
 ~ByString () override
 
- Public Member Functions inherited from pat::eventhypothesis::ParticleFilter
bool operator() (const std::pair< std::string, CandRefType > &p) const
 
virtual ~ParticleFilter ()
 

Private Attributes

StringCutObjectSelector< reco::Candidatesel_
 

Detailed Description

Definition at line 56 of file EventHypothesisTools.h.

Constructor & Destructor Documentation

◆ ByString()

ByString::ByString ( const std::string &  cut)

Definition at line 39 of file EventHypothesisTools.cc.

39 : sel_(cut) {}

◆ ~ByString()

pat::eventhypothesis::ByString::~ByString ( )
inlineoverride

Definition at line 59 of file EventHypothesisTools.h.

59 {}

Member Function Documentation

◆ operator()()

bool ByString::operator() ( const CandRefType cand,
const std::string &  role 
) const
overridevirtual

Implements pat::eventhypothesis::ParticleFilter.

Definition at line 41 of file EventHypothesisTools.cc.

41 { return sel_(*cand); }

References sel_.

Member Data Documentation

◆ sel_

StringCutObjectSelector<reco::Candidate> pat::eventhypothesis::ByString::sel_
private

Definition at line 63 of file EventHypothesisTools.h.

Referenced by operator()().

TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
cand
Definition: decayParser.h:32
pat::eventhypothesis::ByString::sel_
StringCutObjectSelector< reco::Candidate > sel_
Definition: EventHypothesisTools.h:63