src
Fireworks
Calo
plugins
FWL1JetParticleProxyBuilder.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Calo
4
// Class : FWL1JetParticleProxyBuilder
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author:
10
// Created: Sun Jan 6 23:57:00 EST 2008
11
//
12
13
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
14
#include "
Fireworks/Core/interface/BuilderUtils.h
"
15
16
#include "
DataFormats/L1Trigger/interface/L1JetParticle.h
"
17
18
class
FWL1JetParticleProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<l1extra::L1JetParticle> {
19
public
:
20
FWL1JetParticleProxyBuilder
(
void
) {}
21
~FWL1JetParticleProxyBuilder
(
void
)
override
{}
22
23
REGISTER_PROXYBUILDER_METHODS
();
24
25
FWL1JetParticleProxyBuilder
(
const
FWL1JetParticleProxyBuilder
&) =
delete
;
// stop default
26
const
FWL1JetParticleProxyBuilder
&
operator=
(
const
FWL1JetParticleProxyBuilder
&) =
delete
;
// stop default
27
28
private
:
29
using
FWSimpleProxyBuilderTemplate<l1extra::L1JetParticle>::build
;
30
void
build
(
const
l1extra::L1JetParticle
& iData,
31
unsigned
int
iIndex,
32
TEveElement& oItemHolder,
33
const
FWViewContext
*)
override
;
34
};
35
36
void
FWL1JetParticleProxyBuilder::build
(
const
l1extra::L1JetParticle
& iData,
37
unsigned
int
iIndex,
38
TEveElement& oItemHolder,
39
const
FWViewContext
*) {
40
double
scale
= 10;
41
42
fireworks::addDashedLine
(iData.
phi
(), iData.
theta
(), iData.
pt
() *
scale
, &oItemHolder,
this
);
43
}
44
45
REGISTER_FWPROXYBUILDER
(
FWL1JetParticleProxyBuilder
,
l1extra::L1JetParticle
,
"L1JetParticle"
,
FWViewType::kAllRPZBits
);
FWL1JetParticleProxyBuilder::FWL1JetParticleProxyBuilder
FWL1JetParticleProxyBuilder(void)
Definition:
FWL1JetParticleProxyBuilder.cc:20
FWSimpleProxyBuilderTemplate.h
FWL1JetParticleProxyBuilder
Definition:
FWL1JetParticleProxyBuilder.cc:18
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:31
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition:
LeafCandidate.h:146
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:67
l1extra::L1JetParticle
Definition:
L1JetParticle.h:28
FWViewContext
Definition:
FWViewContext.h:32
FWL1JetParticleProxyBuilder::~FWL1JetParticleProxyBuilder
~FWL1JetParticleProxyBuilder(void) override
Definition:
FWL1JetParticleProxyBuilder.cc:21
reco::LeafCandidate::theta
double theta() const final
momentum polar angle
Definition:
LeafCandidate.h:150
fireworks::addDashedLine
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
Definition:
BuilderUtils.cc:190
L1JetParticle.h
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
L1EGammaClusterEmuProducer_cfi.scale
scale
Definition:
L1EGammaClusterEmuProducer_cfi.py:15
FWL1JetParticleProxyBuilder::operator=
const FWL1JetParticleProxyBuilder & operator=(const FWL1JetParticleProxyBuilder &)=delete
BuilderUtils.h
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.14