CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 40 of file BoostedJetMerger.h.

Constructor & Destructor Documentation

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

Definition at line 42 of file BoostedJetMerger.h.

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

Member Function Documentation

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

Definition at line 46 of file BoostedJetMerger.h.

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

46  {
47  edm::Ptr<reco::Candidate> subjetOrigRef = subjet.originalObjectRef();
48  if ( da_ == subjetOrigRef ) {
49  return true;
50  }
51  else return false;
52  }
edm::Ptr< reco::Candidate > da_

Member Data Documentation

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

Definition at line 54 of file BoostedJetMerger.h.

Referenced by operator()().