CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Fireworks/SimData/plugins/FWSimVertexProxyBuilder.cc

Go to the documentation of this file.
00001 /*
00002  *  FWSimVertexProxyBuilder.cc
00003  *  FWorks
00004  *
00005  *  Created by Ianna Osborne on 9/9/10.
00006  *
00007  */
00008 
00009 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00010 #include "SimDataFormats/Vertex/interface/SimVertex.h"
00011 
00012 #include "TEvePointSet.h"
00013 
00014 class FWSimVertexProxyBuilder : public FWSimpleProxyBuilderTemplate<SimVertex>
00015 {
00016 public:
00017    FWSimVertexProxyBuilder( void ) {} 
00018    virtual ~FWSimVertexProxyBuilder( void ) {}
00019 
00020    REGISTER_PROXYBUILDER_METHODS();
00021 
00022 private:
00023    // Disable default copy constructor
00024    FWSimVertexProxyBuilder( const FWSimVertexProxyBuilder& );
00025    // Disable default assignment operator
00026    const FWSimVertexProxyBuilder& operator=( const FWSimVertexProxyBuilder& );
00027 
00028    void build( const SimVertex& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
00029 };
00030 
00031 void
00032 FWSimVertexProxyBuilder::build( const SimVertex& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* )
00033 {
00034    TEvePointSet* pointSet = new TEvePointSet;
00035    setupAddElement( pointSet, &oItemHolder );
00036    pointSet->SetNextPoint( iData.position().x() * 0.01, iData.position().y() * 0.01, iData.position().z() * 0.01 );
00037 }
00038 
00039 REGISTER_FWPROXYBUILDER( FWSimVertexProxyBuilder, SimVertex, "SimVertices", FWViewType::kAll3DBits | FWViewType::kAllRPZBits );