CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
FindCorrectedSubjet Struct Reference

#include <BoostedJetMerger.h>

Public Member Functions

 FindCorrectedSubjet (edm::Ptr< reco::Candidate > const &da)
 
bool operator() (pat::Jet const &subjet) const
 

Public Attributes

edm::Ptr< reco::Candidateda_
 

Detailed Description

Predicate to use for find_if. This checks whether a given edm::Ptr<reco::Candidate> (as you would get from the reco::BasicJet daughters) to see if it matches the original object ref of another pat::Jet (which is to find the corrected / btagged pat::Jet that corresponds to the subjet in question).

Definition at line 38 of file BoostedJetMerger.h.

Constructor & Destructor Documentation

FindCorrectedSubjet::FindCorrectedSubjet ( edm::Ptr< reco::Candidate > const &  da)
inline

Definition at line 40 of file BoostedJetMerger.h.

40 : da_(da) {}
edm::Ptr< reco::Candidate > da_

Member Function Documentation

bool FindCorrectedSubjet::operator() ( pat::Jet const &  subjet) const
inline

Definition at line 43 of file BoostedJetMerger.h.

References da_, and pat::PATObject< ObjectType >::originalObjectRef().

43  {
44  const edm::Ptr<reco::Candidate>& subjetOrigRef = subjet.originalObjectRef();
45  if (da_ == subjetOrigRef) {
46  return true;
47  } else
48  return false;
49  }
edm::Ptr< reco::Candidate > da_

Member Data Documentation

edm::Ptr<reco::Candidate> FindCorrectedSubjet::da_

Definition at line 51 of file BoostedJetMerger.h.

Referenced by operator()().