CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWBeamSpotProxyBuilder.cc
Go to the documentation of this file.
1 /*
2  * FWBeamSpotProxyBuilder.cc
3  * FWorks
4  *
5  * Created by Ianna Osborne on 7/29/10.
6  *
7  */
8 #include "TEvePointSet.h"
9 
12 
14 
16 {
17 public:
19  virtual ~FWBeamSpotProxyBuilder( void ) {}
20 
22 
23 private:
24  // Disable default copy constructor
26  // Disable default assignment operator
28 
29  virtual void build( const reco::BeamSpot& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
30 };
31 
32 void
33 FWBeamSpotProxyBuilder::build( const reco::BeamSpot& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* )
34 {
35  const reco::BeamSpot::Point &pos = iData.position();
36  TEvePointSet* pointSet = new TEvePointSet;
37  pointSet->SetMarkerSize(0.5);
38  setupAddElement( pointSet, &oItemHolder );
39 
40  pointSet->SetNextPoint( pos.x(), pos.y(), pos.z());
41 }
42 
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
Definition: FWViewType.h:56
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:30
static const int kAll3DBits
Definition: FWViewType.h:57
const FWBeamSpotProxyBuilder & operator=(const FWBeamSpotProxyBuilder &)
const Point & position() const
position
Definition: BeamSpot.h:63