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  // Disable default copy constructor
22  // Disable default assignment operator
24 
25 private:
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 
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static constexpr unsigned int kGlimpseBit
Definition: FWViewType.h:52
void addStraightLineSegment(TEveStraightLineSet *marker, reco::Candidate const *cand, double scale_factor=2)
const FWMuonGlimpseProxyBuilder & operator=(const FWMuonGlimpseProxyBuilder &)=delete