CMS 3D CMS Logo

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::FindCorrectedSubjet ( edm::Ptr< reco::Candidate > const &  da)
inline

Definition at line 40 of file BoostedJetMerger.h.

40 : da_(da) {}

Member Function Documentation

◆ operator()()

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

Definition at line 43 of file BoostedJetMerger.h.

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

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

Member Data Documentation

◆ da_

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

Definition at line 51 of file BoostedJetMerger.h.

Referenced by operator()().

Calorimetry_cff.da
da
Definition: Calorimetry_cff.py:154
edm::Ptr< reco::Candidate >
FindCorrectedSubjet::da_
edm::Ptr< reco::Candidate > da_
Definition: BoostedJetMerger.h:51