CMS 3D CMS Logo

FWL1MuonParticleProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calo
4 // Class : FWL1MuonParticleProxyBuilder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author:
10 // Created: Sun Jan 6 23:57:00 EST 2008
11 //
12 
15 
17 
18 class FWL1MuonParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1MuonParticle> {
19 public:
22 
24 
25 private:
26  FWL1MuonParticleProxyBuilder(const FWL1MuonParticleProxyBuilder&) = delete; // stop default
27  const FWL1MuonParticleProxyBuilder& operator=(const FWL1MuonParticleProxyBuilder&) = delete; // stop default
28 
30  void build(const l1extra::L1MuonParticle& iData,
31  unsigned int iIndex,
32  TEveElement& oItemHolder,
33  const FWViewContext*) override;
34 };
35 
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 
47  "L1MuonParticle",
FWSimpleProxyBuilderTemplate.h
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition: FWViewType.h:67
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
BuilderUtils.h
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
fireworks::addDashedLine
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
Definition: BuilderUtils.cc:190
FWL1MuonParticleProxyBuilder::operator=
const FWL1MuonParticleProxyBuilder & operator=(const FWL1MuonParticleProxyBuilder &)=delete
FWL1MuonParticleProxyBuilder
Definition: FWL1MuonParticleProxyBuilder.cc:18
reco::LeafCandidate::theta
double theta() const final
momentum polar angle
Definition: LeafCandidate.h:150
FWL1MuonParticleProxyBuilder::~FWL1MuonParticleProxyBuilder
~FWL1MuonParticleProxyBuilder(void) override
Definition: FWL1MuonParticleProxyBuilder.cc:21
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWViewContext
Definition: FWViewContext.h:32
L1MuonParticle.h
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
FWL1MuonParticleProxyBuilder::FWL1MuonParticleProxyBuilder
FWL1MuonParticleProxyBuilder(void)
Definition: FWL1MuonParticleProxyBuilder.cc:20
l1extra::L1MuonParticle
Definition: L1MuonParticle.h:27
FWSimpleProxyBuilderTemplate
Definition: FWSimpleProxyBuilderTemplate.h:30