CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
15 public:
17  virtual ~FWMuonGlimpseProxyBuilder( void ) {}
18 
20 
21 private:
22  // Disable default copy constructor
24  // Disable default assignment operator
26 
28  void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* ) override;
29 };
30 
31 void
32 FWMuonGlimpseProxyBuilder::build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* )
33 {
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
void addStraightLineSegment(TEveStraightLineSet *marker, reco::Candidate const *cand, double scale_factor=2)
const FWMuonGlimpseProxyBuilder & operator=(const FWMuonGlimpseProxyBuilder &)