Fireworks
Calo
plugins
FWMETGlimpseProxyBuilder.cc
Go to the documentation of this file.
1
/*
2
* FWMETGlimpseProxyBuilder.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
FWMETGlimpseProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::MET> {
15
public
:
16
FWMETGlimpseProxyBuilder
(
void
) {}
17
~FWMETGlimpseProxyBuilder
(
void
)
override
{}
18
19
REGISTER_PROXYBUILDER_METHODS
();
20
21
private
:
22
FWMETGlimpseProxyBuilder
(
const
FWMETGlimpseProxyBuilder
&) =
delete
;
// stop default
23
const
FWMETGlimpseProxyBuilder
&
operator=
(
const
FWMETGlimpseProxyBuilder
&) =
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
FWMETGlimpseProxyBuilder::build
(
const
reco::MET
& iData,
30
unsigned
int
iIndex,
31
TEveElement& oItemHolder,
32
const
FWViewContext
*) {
33
fireworks::addDashedArrow
(iData.
phi
(), iData.
et
(), &oItemHolder,
this
);
34
}
35
36
REGISTER_FWPROXYBUILDER
(
FWMETGlimpseProxyBuilder
,
reco::MET
,
"recoMET"
,
FWViewType::kGlimpseBit
);
FWSimpleProxyBuilderTemplate.h
FWMETGlimpseProxyBuilder::FWMETGlimpseProxyBuilder
FWMETGlimpseProxyBuilder(void)
Definition:
FWMETGlimpseProxyBuilder.cc:16
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:28
BuilderUtils.h
FWViewType::kGlimpseBit
Definition:
FWViewType.h:58
reco::MET
Definition:
MET.h:41
FWMETGlimpseProxyBuilder::~FWMETGlimpseProxyBuilder
~FWMETGlimpseProxyBuilder(void) override
Definition:
FWMETGlimpseProxyBuilder.cc:17
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWViewContext
Definition:
FWViewContext.h:32
reco::LeafCandidate::et
double et() const final
transverse energy
Definition:
LeafCandidate.h:127
MET.h
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
FWMETGlimpseProxyBuilder
Definition:
FWMETGlimpseProxyBuilder.cc:14
FWMETGlimpseProxyBuilder::operator=
const FWMETGlimpseProxyBuilder & operator=(const FWMETGlimpseProxyBuilder &)=delete
fireworks::addDashedArrow
void addDashedArrow(double phi, double size, TEveElement *comp, FWProxyBuilderBase *pb)
Definition:
BuilderUtils.cc:180
Generated for CMSSW Reference Manual by
1.8.16