CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Fireworks/Calo/plugins/FWMETLegoProxyBuilder.cc

Go to the documentation of this file.
00001 /*
00002  *  FWMETLegoProxyBuilder.cc
00003  *  FWorks
00004  *
00005  *  Created by Ianna Osborne on 9/3/10.
00006  *
00007  */
00008 
00009 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00010 #include "Fireworks/Core/interface/BuilderUtils.h"
00011 
00012 #include "DataFormats/METReco/interface/MET.h"
00013 
00014 class FWMETLegoProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::MET>
00015 {
00016 public:
00017    FWMETLegoProxyBuilder( void ) {}
00018    virtual ~FWMETLegoProxyBuilder( void ) {}
00019    
00020    REGISTER_PROXYBUILDER_METHODS();
00021    
00022 private:
00023    FWMETLegoProxyBuilder( const FWMETLegoProxyBuilder& );    // stop default
00024    const FWMETLegoProxyBuilder& operator=( const FWMETLegoProxyBuilder& );    // stop default
00025    
00026    virtual void build( const reco::MET& iData, unsigned int iIndex, TEveElement& oItemHolder , const FWViewContext* );
00027 };
00028 
00029 void
00030 FWMETLegoProxyBuilder::build( const reco::MET& iData, unsigned int iIndex, TEveElement& oItemHolder , const FWViewContext* ) 
00031 {
00032    fireworks::addDoubleLines( iData.phi(), &oItemHolder, this );
00033 }
00034 
00035 REGISTER_FWPROXYBUILDER( FWMETLegoProxyBuilder, reco::MET, "recoMET", FWViewType::kAllLegoBits );