CMS 3D CMS Logo

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"
12 
14 public:
16  ~FWMuonGlimpseProxyBuilder(void) override {}
17 
19 
20 private:
21  // Disable default copy constructor
23  // Disable default assignment operator
25 
27  void build(const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
28 };
29 
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 
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