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 
16 // system include files
17 #include <memory>
18 
19 // user include files
22 
25 
28 
29 //
30 // class decleration
31 //
32 
33 
41  // Input the daughter you're interested in checking
43  da_(da) {}
44 
45  // Predicate operator to compare an input pat::Jet to.
46  bool operator()( pat::Jet const & subjet ) const {
47  const edm::Ptr<reco::Candidate>& subjetOrigRef = subjet.originalObjectRef();
48  if ( da_ == subjetOrigRef ) {
49  return true;
50  }
51  else return false;
52  }
53 
55 };
56 
58  public:
59  explicit BoostedJetMerger(const edm::ParameterSet&);
60  ~BoostedJetMerger() override;
61 
62  private:
63  void produce(edm::Event&, const edm::EventSetup&) override;
64 
65  // ----------member data ---------------------------
66 
67  // data labels
70 };
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:500
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
edm::Ptr< reco::Candidate > da_
Analysis-level calorimeter jet class.
Definition: Jet.h:80
bool operator()(pat::Jet const &subjet) const
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_