RecoJets
JetProducers
plugins
CMSInsideOutJetProducer.cc
Go to the documentation of this file.
1
//
3
// CMSInsideOutJetProducer
4
// ------------------
5
//
6
// 04/21/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch>
8
9
#include "
RecoJets/JetProducers/plugins/CMSInsideOutJetProducer.h
"
10
11
#include "
RecoJets/JetProducers/interface/JetSpecific.h
"
12
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
FWCore/Framework/interface/EventSetup.h
"
15
#include "
FWCore/Framework/interface/ESHandle.h
"
16
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
17
#include "
FWCore/Framework/interface/MakerMacros.h
"
18
19
#include "
DataFormats/Common/interface/View.h
"
20
#include "
DataFormats/Common/interface/Handle.h
"
21
#include "
DataFormats/VertexReco/interface/Vertex.h
"
22
#include "
DataFormats/VertexReco/interface/VertexFwd.h
"
23
#include "
DataFormats/JetReco/interface/CaloJetCollection.h
"
24
#include "
DataFormats/JetReco/interface/GenJetCollection.h
"
25
#include "
DataFormats/JetReco/interface/PFJetCollection.h
"
26
#include "
DataFormats/JetReco/interface/BasicJetCollection.h
"
27
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
28
#include "
DataFormats/Candidate/interface/LeafCandidate.h
"
29
30
#include "
Geometry/CaloGeometry/interface/CaloGeometry.h
"
31
#include "
Geometry/Records/interface/CaloGeometryRecord.h
"
32
33
#include "fastjet/SISConePlugin.hh"
34
#include "fastjet/CMSIterativeConePlugin.hh"
35
#include "fastjet/ATLASConePlugin.hh"
36
#include "fastjet/CDFMidPointPlugin.hh"
37
38
#include <iostream>
39
#include <memory>
40
#include <algorithm>
41
#include <limits>
42
#include <cmath>
43
44
using namespace
std
;
45
47
// construction / destruction
49
50
//______________________________________________________________________________
51
CMSInsideOutJetProducer::CMSInsideOutJetProducer
(
const
edm::ParameterSet
& iConfig)
52
:
VirtualJetProducer
(iConfig),
53
alg_(iConfig.getParameter<double>(
"seedObjectPt"
),
54
iConfig.getParameter<double>(
"growthParameter"
),
55
iConfig.getParameter<double>(
"maxSize"
),
56
iConfig.getParameter<double>(
"minSize"
)) {}
57
58
//______________________________________________________________________________
59
CMSInsideOutJetProducer::~CMSInsideOutJetProducer
() {}
60
62
// implementation of member functions
64
65
void
CMSInsideOutJetProducer::produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
66
VirtualJetProducer::produce
(
iEvent
, iSetup);
67
}
68
69
//______________________________________________________________________________
70
void
CMSInsideOutJetProducer::runAlgorithm
(
edm::Event
&
iEvent
,
edm::EventSetup
const
& iSetup) {
71
fjJets_
.clear();
72
73
alg_
.
run
(
fjInputs_
,
fjJets_
);
74
}
75
77
// define as cmssw plugin
79
80
DEFINE_FWK_MODULE
(
CMSInsideOutJetProducer
);
VirtualJetProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
VirtualJetProducer.cc:264
CaloJetCollection.h
GenJetCollection.h
Handle.h
CMSInsideOutJetProducer::alg_
CMSInsideOutAlgorithm alg_
Definition:
CMSInsideOutJetProducer.h:35
MessageLogger.h
ESHandle.h
PFJetCollection.h
BasicJetCollection.h
CMSInsideOutJetProducer
Definition:
CMSInsideOutJetProducer.h:18
CMSInsideOutJetProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
CMSInsideOutJetProducer.cc:65
CMSInsideOutJetProducer::~CMSInsideOutJetProducer
~CMSInsideOutJetProducer() override
Definition:
CMSInsideOutJetProducer.cc:59
CandidateFwd.h
MakerMacros.h
CMSInsideOutJetProducer::CMSInsideOutJetProducer
CMSInsideOutJetProducer(const edm::ParameterSet &iConfig)
Definition:
CMSInsideOutJetProducer.cc:51
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
CMSInsideOutAlgorithm::run
void run(const std::vector< fastjet::PseudoJet > &fInput, std::vector< fastjet::PseudoJet > &fOutput)
Build from input candidate collection.
Definition:
CMSInsideOutAlgorithm.cc:7
LeafCandidate.h
VirtualJetProducer
Definition:
VirtualJetProducer.h:35
CMSInsideOutJetProducer::runAlgorithm
void runAlgorithm(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
CMSInsideOutJetProducer.cc:70
CaloGeometryRecord.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:58
VertexFwd.h
std
Definition:
JetResolutionObject.h:76
Vertex.h
CaloGeometry.h
VirtualJetProducer::fjJets_
std::vector< fastjet::PseudoJet > fjJets_
Definition:
VirtualJetProducer.h:192
JetSpecific.h
EventSetup.h
View.h
VirtualJetProducer::fjInputs_
std::vector< fastjet::PseudoJet > fjInputs_
Definition:
VirtualJetProducer.h:191
edm::Event
Definition:
Event.h:73
CMSInsideOutJetProducer.h
Generated for CMSSW Reference Manual by
1.8.16