CMS 3D CMS Logo

BoostedJetMerger.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: BoostedJetMerger
4 // Class: BoostedJetMerger
5 //
6 // \class BoostedJetMerger BoostedJetMerger.h PhysicsTools/PatUtils/interface/BoostedJetMerger.h
7 // Description: Class to "deswizzle" information from various pat::Jet collections.
8 //
9 // Original Author: "Salvatore Rappoccio"
10 // Created: Thu May 1 11:37:48 CDT 2008
11 // $Id: BoostedJetMerger.cc,v 1.1 2013/03/07 20:13:55 srappocc Exp $
12 //
13 //
14 
15 // system include files
16 #include <memory>
17 
18 // user include files
21 
24 
27 
28 //
29 // class decleration
30 //
31 
39  // Input the daughter you're interested in checking
41 
42  // Predicate operator to compare an input pat::Jet to.
43  bool operator()(pat::Jet const& subjet) const {
44  const edm::Ptr<reco::Candidate>& subjetOrigRef = subjet.originalObjectRef();
45  if (da_ == subjetOrigRef) {
46  return true;
47  } else
48  return false;
49  }
50 
52 };
53 
55 public:
56  explicit BoostedJetMerger(const edm::ParameterSet&);
57  ~BoostedJetMerger() override;
58 
59 private:
60  void produce(edm::Event&, const edm::EventSetup&) override;
61 
62  // ----------member data ---------------------------
63 
64  // data labels
67 };
FindCorrectedSubjet(edm::Ptr< reco::Candidate > const &da)
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
Definition: PATObject.h:542
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
edm::Ptr< reco::Candidate > da_
Analysis-level calorimeter jet class.
Definition: Jet.h:77
bool operator()(pat::Jet const &subjet) const
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_