CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/Fireworks/Calo/plugins/FWL1EtMissParticleProxyBuilder.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Calo
00004 // Class  :     FWL1EtMissParticleProxyBuilder
00005 //
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:
00010 //         Created:  Sun Jan  6 23:57:00 EST 2008
00011 // $Id: FWL1EtMissParticleProxyBuilder.cc,v 1.9 2010/09/16 15:42:20 yana Exp $
00012 //
00013 
00014 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00015 #include "Fireworks/Core/interface/BuilderUtils.h"
00016 
00017 #include "DataFormats/L1Trigger/interface/L1EtMissParticle.h"
00018 
00019 class FWL1EtMissParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1EtMissParticle>
00020 {
00021 public:
00022    FWL1EtMissParticleProxyBuilder( void ) {}
00023    virtual ~FWL1EtMissParticleProxyBuilder( void ) {}
00024 
00025    REGISTER_PROXYBUILDER_METHODS();
00026 
00027 private:
00028    FWL1EtMissParticleProxyBuilder( const FWL1EtMissParticleProxyBuilder& );    // stop default
00029    const FWL1EtMissParticleProxyBuilder& operator=( const FWL1EtMissParticleProxyBuilder& );    // stop default
00030   
00031    virtual void build( const l1extra::L1EtMissParticle& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
00032 };
00033 
00034 void
00035 FWL1EtMissParticleProxyBuilder::build( const l1extra::L1EtMissParticle& iData, unsigned int iIndex, TEveElement& oItemHolder , const FWViewContext* ) 
00036 {
00037    double scale = 10;
00038 
00039    fireworks::addDashedLine( iData.phi(), iData.theta(), iData.pt() * scale, &oItemHolder, this );
00040 }
00041 
00042 REGISTER_FWPROXYBUILDER( FWL1EtMissParticleProxyBuilder, l1extra::L1EtMissParticle, "L1EtMissParticle", FWViewType::kAllRPZBits );