Fireworks
Muons
plugins
FWMuonGlimpseProxyBuilder.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Muons
4
// Class : FWMuonGlimpseProxyBuilder
5
//
6
//
7
8
#include "TEveScalableStraightLineSet.h"
9
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
10
#include "
Fireworks/Candidates/interface/CandidateUtils.h
"
11
#include "
DataFormats/MuonReco/interface/Muon.h
"
12
13
class
FWMuonGlimpseProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::Muon> {
14
public
:
15
FWMuonGlimpseProxyBuilder
(
void
) {}
16
~FWMuonGlimpseProxyBuilder
(
void
)
override
{}
17
18
REGISTER_PROXYBUILDER_METHODS
();
19
20
private
:
21
// Disable default copy constructor
22
FWMuonGlimpseProxyBuilder
(
const
FWMuonGlimpseProxyBuilder
&) =
delete
;
23
// Disable default assignment operator
24
const
FWMuonGlimpseProxyBuilder
&
operator=
(
const
FWMuonGlimpseProxyBuilder
&) =
delete
;
25
26
using
FWSimpleProxyBuilderTemplate<reco::Muon>::build
;
27
void
build
(
const
reco::Muon
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
28
};
29
30
void
FWMuonGlimpseProxyBuilder::build
(
const
reco::Muon
& iData,
31
unsigned
int
iIndex,
32
TEveElement& oItemHolder,
33
const
FWViewContext
*) {
34
TEveScalableStraightLineSet* marker =
new
TEveScalableStraightLineSet(
""
,
""
);
35
marker->SetLineWidth(2);
36
fireworks::addStraightLineSegment
(marker, &iData, 1.0);
37
setupAddElement
(marker, &oItemHolder);
38
//add to scaler at end so that it can scale the line after all ends have been added
39
// FIXME: scaler()->addElement(marker);
40
}
41
42
REGISTER_FWPROXYBUILDER
(
FWMuonGlimpseProxyBuilder
,
reco::Muon
,
"Muons"
,
FWViewType::kGlimpseBit
);
Muon.h
FWMuonGlimpseProxyBuilder::FWMuonGlimpseProxyBuilder
FWMuonGlimpseProxyBuilder(void)
Definition:
FWMuonGlimpseProxyBuilder.cc:15
FWSimpleProxyBuilderTemplate.h
fireworks::addStraightLineSegment
void addStraightLineSegment(TEveStraightLineSet *marker, reco::Candidate const *cand, double scale_factor=2)
Definition:
CandidateUtils.cc:19
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
FWMuonGlimpseProxyBuilder::~FWMuonGlimpseProxyBuilder
~FWMuonGlimpseProxyBuilder(void) override
Definition:
FWMuonGlimpseProxyBuilder.cc:16
reco::Muon
Definition:
Muon.h:27
FWViewType::kGlimpseBit
Definition:
FWViewType.h:58
FWMuonGlimpseProxyBuilder::operator=
const FWMuonGlimpseProxyBuilder & operator=(const FWMuonGlimpseProxyBuilder &)=delete
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWMuonGlimpseProxyBuilder
Definition:
FWMuonGlimpseProxyBuilder.cc:13
FWViewContext
Definition:
FWViewContext.h:32
CandidateUtils.h
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
Generated for CMSSW Reference Manual by
1.8.16