RecoJets
JetProducers
interface
NjettinessAdder.h
Go to the documentation of this file.
1
#ifndef NjettinessAdder_h
2
#define NjettinessAdder_h
3
4
#include <memory>
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
#include "
FWCore/Utilities/interface/InputTag.h
"
10
#include "
DataFormats/JetReco/interface/Jet.h
"
11
#include "
DataFormats/Common/interface/ValueMap.h
"
12
#include "fastjet/contrib/Njettiness.hh"
13
14
class
NjettinessAdder
:
public
edm::stream::EDProducer
<> {
15
public
:
16
enum
MeasureDefinition_t
{
17
NormalizedMeasure
= 0,
// (beta,R0)
18
UnnormalizedMeasure
,
// (beta)
19
OriginalGeometricMeasure
,
// (beta)
20
NormalizedCutoffMeasure
,
// (beta,R0,Rcutoff)
21
UnnormalizedCutoffMeasure
,
// (beta,Rcutoff)
22
GeometricCutoffMeasure
,
// (beta,Rcutoff)
23
N_MEASURE_DEFINITIONS
24
};
25
enum
AxesDefinition_t
{
26
KT_Axes
= 0,
27
CA_Axes
,
28
AntiKT_Axes
,
// (axAxesR0)
29
WTA_KT_Axes
,
30
WTA_CA_Axes
,
31
Manual_Axes
,
32
OnePass_KT_Axes
,
33
OnePass_CA_Axes
,
34
OnePass_AntiKT_Axes
,
// (axAxesR0)
35
OnePass_WTA_KT_Axes
,
36
OnePass_WTA_CA_Axes
,
37
OnePass_Manual_Axes
,
38
MultiPass_Axes
,
39
N_AXES_DEFINITIONS
40
};
41
42
explicit
NjettinessAdder
(
const
edm::ParameterSet
& iConfig);
43
44
~NjettinessAdder
()
override
{}
45
46
void
produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
override
;
47
float
getTau
(
unsigned
num
,
const
edm::Ptr<reco::Jet>
&
object
)
const
;
48
49
private
:
50
edm::InputTag
src_
;
51
edm::EDGetTokenT<edm::View<reco::Jet>
>
src_token_
;
52
std::vector<unsigned>
Njets_
;
53
54
// Measure definition :
55
unsigned
measureDefinition_
;
56
double
beta_
;
57
double
R0_
;
58
double
Rcutoff_
;
59
60
// Axes definition :
61
unsigned
axesDefinition_
;
62
int
nPass_
;
63
double
akAxesR0_
;
64
65
edm::EDGetTokenT<edm::ValueMap<float>
>
input_weights_token_
;
66
edm::ValueMap<float>
const
*
weightsHandle_
;
67
68
std::unique_ptr<fastjet::contrib::Njettiness>
routine_
;
69
};
70
71
#endif
NjettinessAdder::KT_Axes
Definition:
NjettinessAdder.h:26
NjettinessAdder::N_MEASURE_DEFINITIONS
Definition:
NjettinessAdder.h:23
NjettinessAdder::OnePass_WTA_KT_Axes
Definition:
NjettinessAdder.h:35
NjettinessAdder::Manual_Axes
Definition:
NjettinessAdder.h:31
NjettinessAdder::routine_
std::unique_ptr< fastjet::contrib::Njettiness > routine_
Definition:
NjettinessAdder.h:68
NjettinessAdder::OnePass_WTA_CA_Axes
Definition:
NjettinessAdder.h:36
edm::EDGetTokenT
Definition:
EDGetToken.h:33
NjettinessAdder::OriginalGeometricMeasure
Definition:
NjettinessAdder.h:19
NjettinessAdder::CA_Axes
Definition:
NjettinessAdder.h:27
NjettinessAdder::OnePass_CA_Axes
Definition:
NjettinessAdder.h:33
EDProducer.h
Jet.h
NjettinessAdder::N_AXES_DEFINITIONS
Definition:
NjettinessAdder.h:39
NjettinessAdder::nPass_
int nPass_
Definition:
NjettinessAdder.h:62
NjettinessAdder::OnePass_AntiKT_Axes
Definition:
NjettinessAdder.h:34
NjettinessAdder::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
NjettinessAdder.cc:112
NjettinessAdder::NormalizedCutoffMeasure
Definition:
NjettinessAdder.h:20
NjettinessAdder::AntiKT_Axes
Definition:
NjettinessAdder.h:28
NjettinessAdder::NormalizedMeasure
Definition:
NjettinessAdder.h:17
NjettinessAdder::measureDefinition_
unsigned measureDefinition_
Definition:
NjettinessAdder.h:55
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
NjettinessAdder::AxesDefinition_t
AxesDefinition_t
Definition:
NjettinessAdder.h:25
NjettinessAdder::Rcutoff_
double Rcutoff_
Definition:
NjettinessAdder.h:58
NjettinessAdder::beta_
double beta_
Definition:
NjettinessAdder.h:56
NjettinessAdder::src_
edm::InputTag src_
Definition:
NjettinessAdder.h:50
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::stream::EDProducer
Definition:
EDProducer.h:38
NjettinessAdder::akAxesR0_
double akAxesR0_
Definition:
NjettinessAdder.h:63
edm::EventSetup
Definition:
EventSetup.h:58
NjettinessAdder::Njets_
std::vector< unsigned > Njets_
Definition:
NjettinessAdder.h:52
NjettinessAdder::UnnormalizedMeasure
Definition:
NjettinessAdder.h:18
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:34
InputTag.h
NjettinessAdder::weightsHandle_
edm::ValueMap< float > const * weightsHandle_
Definition:
NjettinessAdder.h:66
NjettinessAdder::axesDefinition_
unsigned axesDefinition_
Definition:
NjettinessAdder.h:61
edm::Ptr< reco::Jet >
ValueMap.h
NjettinessAdder::NjettinessAdder
NjettinessAdder(const edm::ParameterSet &iConfig)
Definition:
NjettinessAdder.cc:7
NjettinessAdder::WTA_CA_Axes
Definition:
NjettinessAdder.h:30
NjettinessAdder::~NjettinessAdder
~NjettinessAdder() override
Definition:
NjettinessAdder.h:44
edm::ValueMap< float >
NjettinessAdder::input_weights_token_
edm::EDGetTokenT< edm::ValueMap< float > > input_weights_token_
Definition:
NjettinessAdder.h:65
NjettinessAdder::UnnormalizedCutoffMeasure
Definition:
NjettinessAdder.h:21
EventSetup.h
NjettinessAdder
Definition:
NjettinessAdder.h:14
NjettinessAdder::R0_
double R0_
Definition:
NjettinessAdder.h:57
NjettinessAdder::src_token_
edm::EDGetTokenT< edm::View< reco::Jet > > src_token_
Definition:
NjettinessAdder.h:51
NjettinessAdder::OnePass_Manual_Axes
Definition:
NjettinessAdder.h:37
NjettinessAdder::MeasureDefinition_t
MeasureDefinition_t
Definition:
NjettinessAdder.h:16
NjettinessAdder::WTA_KT_Axes
Definition:
NjettinessAdder.h:29
ParameterSet.h
edm::Event
Definition:
Event.h:73
NjettinessAdder::MultiPass_Axes
Definition:
NjettinessAdder.h:38
edm::InputTag
Definition:
InputTag.h:15
NjettinessAdder::OnePass_KT_Axes
Definition:
NjettinessAdder.h:32
NjettinessAdder::getTau
float getTau(unsigned num, const edm::Ptr< reco::Jet > &object) const
Definition:
NjettinessAdder.cc:146
NjettinessAdder::GeometricCutoffMeasure
Definition:
NjettinessAdder.h:22
Generated for CMSSW Reference Manual by
1.8.16