CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  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&);
61 
62  private:
63  virtual void beginJob(const edm::EventSetup&) ;
64  virtual void produce(edm::Event&, const edm::EventSetup&);
65  virtual void endJob() ;
66 
67  // ----------member data ---------------------------
68 
69  // data labels
72 };
virtual void endJob()
virtual void beginJob()
Definition: EDProducer.h:65
FindCorrectedSubjet(edm::Ptr< reco::Candidate > const &da)
BoostedJetMerger(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
Definition: PATObject.h:482
edm::Ptr< reco::Candidate > da_
Analysis-level calorimeter jet class.
Definition: Jet.h:71
bool operator()(pat::Jet const &subjet) const
edm::InputTag jetLabel_
edm::InputTag subjetLabel_