PhysicsTools
PatUtils
interface
JetSubstructurePacker.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: JetSubstructurePacker
4
// Class: JetSubstructurePacker
5
//
6
// \class JetSubstructurePacker JetSubstructurePacker.h PhysicsTools/PatUtils/interface/JetSubstructurePacker.h
7
// Description: Class to pack subjet information from various pat::Jet collections into a single one.
8
//
9
// Original Author: "Salvatore Rappoccio"
10
// $Id: JetSubstructurePacker.cc,v 1.1 2013/03/07 20:13:55 srappocc Exp $
11
//
12
//
13
14
// system include files
15
#include <memory>
16
17
// user include files
18
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
19
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
20
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/Framework/interface/MakerMacros.h
"
23
24
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
25
#include "
DataFormats/PatCandidates/interface/Jet.h
"
26
#include "
DataFormats/Common/interface/View.h
"
27
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
28
#include "
FWCore/Utilities/interface/transform.h
"
29
#include "
DataFormats/PatCandidates/interface/PackedCandidate.h
"
30
//
31
// class decleration
32
//
33
34
class
JetSubstructurePacker
:
public
edm::stream::EDProducer
<> {
35
public
:
36
explicit
JetSubstructurePacker
(
const
edm::ParameterSet
&);
37
~JetSubstructurePacker
()
override
;
38
39
private
:
40
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
41
42
// ----------member data ---------------------------
43
44
// data labels
45
float
distMax_
;
46
edm::EDGetTokenT<edm::View<pat::Jet>
>
jetToken_
;
47
std::vector<std::string>
algoLabels_
;
48
std::vector<edm::InputTag>
algoTags_
;
49
std::vector<edm::EDGetTokenT<edm::View<pat::Jet>>>
algoTokens_
;
50
bool
fixDaughters_
;
51
edm::EDGetTokenT<edm::Association<pat::PackedCandidateCollection>
>
pf2pc_
;
52
edm::EDGetTokenT<edm::Association<reco::PFCandidateCollection>
>
pc2pf_
;
53
};
edm::EDGetTokenT
Definition:
EDGetToken.h:33
EDProducer.h
JetSubstructurePacker
Definition:
JetSubstructurePacker.h:34
JetSubstructurePacker::~JetSubstructurePacker
~JetSubstructurePacker() override
Definition:
JetSubstructurePacker.cc:23
JetSubstructurePacker::algoTags_
std::vector< edm::InputTag > algoTags_
Definition:
JetSubstructurePacker.h:48
JetSubstructurePacker::jetToken_
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
Definition:
JetSubstructurePacker.h:46
CandidateFwd.h
MakerMacros.h
JetSubstructurePacker::pc2pf_
edm::EDGetTokenT< edm::Association< reco::PFCandidateCollection > > pc2pf_
Definition:
JetSubstructurePacker.h:52
JetSubstructurePacker::fixDaughters_
bool fixDaughters_
Definition:
JetSubstructurePacker.h:50
JetSubstructurePacker::algoTokens_
std::vector< edm::EDGetTokenT< edm::View< pat::Jet > > > algoTokens_
Definition:
JetSubstructurePacker.h:49
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
JetSubstructurePacker::JetSubstructurePacker
JetSubstructurePacker(const edm::ParameterSet &)
Definition:
JetSubstructurePacker.cc:5
PackedCandidate.h
JetSubstructurePacker::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
JetSubstructurePacker.cc:26
JetSubstructurePacker::distMax_
float distMax_
Definition:
JetSubstructurePacker.h:45
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:58
Jet.h
JetSubstructurePacker::pf2pc_
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
Definition:
JetSubstructurePacker.h:51
JetSubstructurePacker::algoLabels_
std::vector< std::string > algoLabels_
Definition:
JetSubstructurePacker.h:47
Frameworkfwd.h
transform.h
View.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16