PhysicsTools
PatUtils
interface
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
19
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
20
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
21
22
#include "
FWCore/Framework/interface/Event.h
"
23
#include "
FWCore/Framework/interface/MakerMacros.h
"
24
25
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
26
#include "
DataFormats/PatCandidates/interface/Jet.h
"
27
28
//
29
// class decleration
30
//
31
38
struct
FindCorrectedSubjet
{
39
// Input the daughter you're interested in checking
40
FindCorrectedSubjet
(
edm::Ptr<reco::Candidate>
const
&
da
) :
da_
(
da
) {}
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
51
edm::Ptr<reco::Candidate>
da_
;
52
};
53
54
class
BoostedJetMerger
:
public
edm::stream::EDProducer
<> {
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
65
edm::EDGetTokenT<edm::View<pat::Jet>
>
jetToken_
;
66
edm::EDGetTokenT<edm::View<pat::Jet>
>
subjetToken_
;
67
};
BoostedJetMerger
Definition:
BoostedJetMerger.h:54
edm::EDGetTokenT
Definition:
EDGetToken.h:33
BoostedJetMerger::BoostedJetMerger
BoostedJetMerger(const edm::ParameterSet &)
Definition:
BoostedJetMerger.cc:3
Calorimetry_cff.da
da
Definition:
Calorimetry_cff.py:154
EDProducer.h
BoostedJetMerger::jetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
Definition:
BoostedJetMerger.h:65
FindCorrectedSubjet
Definition:
BoostedJetMerger.h:38
MakerMacros.h
pat::Jet
Analysis-level calorimeter jet class.
Definition:
Jet.h:77
FindCorrectedSubjet::operator()
bool operator()(pat::Jet const &subjet) const
Definition:
BoostedJetMerger.h:43
BoostedJetMerger::~BoostedJetMerger
~BoostedJetMerger() override
Definition:
BoostedJetMerger.cc:11
pat::PATObject::originalObjectRef
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
Definition:
PATObject.h:542
BoostedJetMerger::subjetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_
Definition:
BoostedJetMerger.h:66
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
BoostedJetMerger::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
BoostedJetMerger.cc:14
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:57
Jet.h
edm::Ptr< reco::Candidate >
Frameworkfwd.h
FindCorrectedSubjet::FindCorrectedSubjet
FindCorrectedSubjet(edm::Ptr< reco::Candidate > const &da)
Definition:
BoostedJetMerger.h:40
ParameterSet.h
edm::Event
Definition:
Event.h:73
FindCorrectedSubjet::da_
edm::Ptr< reco::Candidate > da_
Definition:
BoostedJetMerger.h:51
Generated for CMSSW Reference Manual by
1.8.16