Fireworks
Calo
plugins
FWMETLegoProxyBuilder.cc
Go to the documentation of this file.
1
/*
2
* FWMETLegoProxyBuilder.cc
3
* FWorks
4
*
5
* Created by Ianna Osborne on 9/3/10.
6
*
7
*/
8
9
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
10
#include "
Fireworks/Core/interface/BuilderUtils.h
"
11
12
#include "
DataFormats/METReco/interface/MET.h
"
13
14
class
FWMETLegoProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::MET> {
15
public
:
16
FWMETLegoProxyBuilder
(
void
) {}
17
~FWMETLegoProxyBuilder
(
void
)
override
{}
18
19
REGISTER_PROXYBUILDER_METHODS
();
20
21
private
:
22
FWMETLegoProxyBuilder
(
const
FWMETLegoProxyBuilder
&) =
delete
;
// stop default
23
const
FWMETLegoProxyBuilder
&
operator=
(
const
FWMETLegoProxyBuilder
&) =
delete
;
// stop default
24
25
using
FWSimpleProxyBuilderTemplate<reco::MET>::build
;
26
void
build
(
const
reco::MET
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
27
};
28
29
void
FWMETLegoProxyBuilder::build
(
const
reco::MET
& iData,
30
unsigned
int
iIndex,
31
TEveElement& oItemHolder,
32
const
FWViewContext
*) {
33
fireworks::addDoubleLines
(iData.
phi
(), &oItemHolder,
this
);
34
}
35
36
REGISTER_FWPROXYBUILDER
(
FWMETLegoProxyBuilder
,
reco::MET
,
"recoMET"
,
FWViewType::kAllLegoBits
);
FWSimpleProxyBuilderTemplate.h
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
FWMETLegoProxyBuilder::FWMETLegoProxyBuilder
FWMETLegoProxyBuilder(void)
Definition:
FWMETLegoProxyBuilder.cc:16
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:27
BuilderUtils.h
fireworks::addDoubleLines
void addDoubleLines(double phi, TEveElement *comp, FWProxyBuilderBase *pb)
Definition:
BuilderUtils.cc:209
FWMETLegoProxyBuilder
Definition:
FWMETLegoProxyBuilder.cc:14
reco::MET
Definition:
MET.h:41
FWMETLegoProxyBuilder::operator=
const FWMETLegoProxyBuilder & operator=(const FWMETLegoProxyBuilder &)=delete
FWViewType::kAllLegoBits
static const int kAllLegoBits
Definition:
FWViewType.h:69
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWViewContext
Definition:
FWViewContext.h:32
MET.h
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
FWMETLegoProxyBuilder::~FWMETLegoProxyBuilder
~FWMETLegoProxyBuilder(void) override
Definition:
FWMETLegoProxyBuilder.cc:17
Generated for CMSSW Reference Manual by
1.8.16