Main Page
Namespaces
Classes
Package Documentation
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
16
// system include files
17
#include <memory>
18
19
// user include files
20
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
21
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
22
23
#include "
FWCore/Framework/interface/Event.h
"
24
#include "
FWCore/Framework/interface/MakerMacros.h
"
25
26
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
27
#include "
DataFormats/PatCandidates/interface/Jet.h
"
28
29
//
30
// class decleration
31
//
32
33
40
struct
FindCorrectedSubjet
{
41
// Input the daughter you're interested in checking
42
FindCorrectedSubjet
(
edm::Ptr<reco::Candidate>
const
&
da
) :
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
54
edm::Ptr<reco::Candidate>
da_
;
55
};
56
57
class
BoostedJetMerger
:
public
edm::stream::EDProducer
<> {
58
public
:
59
explicit
BoostedJetMerger
(
const
edm::ParameterSet
&);
60
~
BoostedJetMerger
();
61
62
private
:
63
virtual
void
produce(
edm::Event
&,
const
edm::EventSetup
&)
override
;
64
65
// ----------member data ---------------------------
66
67
// data labels
68
edm::EDGetTokenT<edm::View<pat::Jet>
>
jetToken_
;
69
edm::EDGetTokenT<edm::View<pat::Jet>
>
subjetToken_
;
70
};
BoostedJetMerger
Definition:
BoostedJetMerger.h:57
pyrootRender.da
da
Definition:
pyrootRender.py:62
Event.h
MakerMacros.h
edm::EDGetTokenT
Definition:
EDGetToken.h:32
Frameworkfwd.h
ParameterSet.h
FindCorrectedSubjet::FindCorrectedSubjet
FindCorrectedSubjet(edm::Ptr< reco::Candidate > const &da)
Definition:
BoostedJetMerger.h:42
EDProducer.h
FindCorrectedSubjet
Definition:
BoostedJetMerger.h:40
edm::EventSetup
Definition:
EventSetup.h:44
edm::Ptr< reco::Candidate >
pat::PATObject::originalObjectRef
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
Definition:
PATObject.h:500
BoostedJetMerger::jetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
Definition:
BoostedJetMerger.h:68
FindCorrectedSubjet::da_
edm::Ptr< reco::Candidate > da_
Definition:
BoostedJetMerger.h:54
edm::stream::EDProducer
Definition:
EDProducer.h:33
pat::Jet
Analysis-level calorimeter jet class.
Definition:
Jet.h:78
FindCorrectedSubjet::operator()
bool operator()(pat::Jet const &subjet) const
Definition:
BoostedJetMerger.h:46
BoostedJetMerger::subjetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_
Definition:
BoostedJetMerger.h:69
Jet.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:69
Generated for CMSSW Reference Manual by
1.8.11