CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual bool operator() (const CandRefType &cand, const std::string &role) const
 
virtual ~ByString ()
 
- Public Member Functions inherited from pat::eventhypothesis::ParticleFilter
bool operator() (const std::pair< std::string, CandRefType > &p) const
 
virtual ~ParticleFilter ()
 

Private Attributes

StringCutObjectSelector
< reco::Candidate
sel_
 

Detailed Description

Definition at line 44 of file EventHypothesisTools.h.

Constructor & Destructor Documentation

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

Definition at line 43 of file EventHypothesisTools.cc.

43  :
44  sel_(cut)
45 {
46 }
StringCutObjectSelector< reco::Candidate > sel_
virtual pat::eventhypothesis::ByString::~ByString ( )
inlinevirtual

Definition at line 47 of file EventHypothesisTools.h.

47 {}

Member Function Documentation

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

Implements pat::eventhypothesis::ParticleFilter.

Definition at line 48 of file EventHypothesisTools.cc.

References sel_.

48  {
49  return sel_(*cand);
50 }
StringCutObjectSelector< reco::Candidate > sel_

Member Data Documentation

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

Definition at line 50 of file EventHypothesisTools.h.

Referenced by operator()().