Fireworks
Calo
plugins
FWJetLegoProxyBuilder.cc
Go to the documentation of this file.
1
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
2
#include "
DataFormats/JetReco/interface/Jet.h
"
3
#include "
Fireworks/Core/interface/BuilderUtils.h
"
4
5
class
FWJetLegoProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::Jet> {
6
public
:
7
FWJetLegoProxyBuilder
() {}
8
~FWJetLegoProxyBuilder
()
override
{}
9
10
REGISTER_PROXYBUILDER_METHODS
();
11
12
protected
:
13
using
FWSimpleProxyBuilderTemplate<reco::Jet>::build
;
14
void
build
(
const
reco::Jet
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
15
16
private
:
17
FWJetLegoProxyBuilder
(
const
FWJetLegoProxyBuilder
&) =
delete
;
// stop default
18
const
FWJetLegoProxyBuilder
&
operator=
(
const
FWJetLegoProxyBuilder
&) =
delete
;
// stop default
19
};
20
21
void
FWJetLegoProxyBuilder::build
(
const
reco::Jet
& iData,
22
unsigned
int
iIndex,
23
TEveElement& oItemHolder,
24
const
FWViewContext
*) {
25
fireworks::addCircle
(iData.
eta
(), iData.
phi
(), 0.5, 20, &oItemHolder,
this
);
26
}
27
28
REGISTER_FWPROXYBUILDER
(
FWJetLegoProxyBuilder
,
reco::Jet
,
"Jets"
,
FWViewType::kAllLegoBits
|
FWViewType::kLegoHFBit
);
FWJetLegoProxyBuilder::~FWJetLegoProxyBuilder
~FWJetLegoProxyBuilder() override
Definition:
FWJetLegoProxyBuilder.cc:8
reco::Jet
Base class for all types of Jets.
Definition:
Jet.h:20
FWSimpleProxyBuilderTemplate.h
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:27
Jet.h
BuilderUtils.h
FWJetLegoProxyBuilder::FWJetLegoProxyBuilder
FWJetLegoProxyBuilder()
Definition:
FWJetLegoProxyBuilder.cc:7
FWJetLegoProxyBuilder::operator=
const FWJetLegoProxyBuilder & operator=(const FWJetLegoProxyBuilder &)=delete
FWViewType::kLegoHFBit
Definition:
FWViewType.h:56
FWViewType::kAllLegoBits
static const int kAllLegoBits
Definition:
FWViewType.h:69
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition:
LeafCandidate.h:152
fireworks::addCircle
void addCircle(double eta, double phi, double radius, const unsigned int nLineSegments, TEveElement *comp, FWProxyBuilderBase *pb)
Definition:
BuilderUtils.cc:161
FWJetLegoProxyBuilder
Definition:
FWJetLegoProxyBuilder.cc:5
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWViewContext
Definition:
FWViewContext.h:32
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
Generated for CMSSW Reference Manual by
1.8.16