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 // $Id: FWMuonGlimpseProxyBuilder.cc,v 1.2 2010/09/02 18:28:13 amraktad Exp $
7 //
8 
9 #include "TEveScalableStraightLineSet.h"
13 
15 {
16 public:
18  virtual ~FWMuonGlimpseProxyBuilder( void ) {}
19 
21 
22 private:
23  // Disable default copy constructor
25  // Disable default assignment operator
27 
28  void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
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 &)