Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00015 #include "Fireworks/Core/interface/BuilderUtils.h"
00016
00017 #include "DataFormats/L1Trigger/interface/L1MuonParticle.h"
00018
00019 class FWL1MuonParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1MuonParticle>
00020 {
00021 public:
00022 FWL1MuonParticleProxyBuilder( void ) {}
00023 virtual ~FWL1MuonParticleProxyBuilder( void ) {}
00024
00025 REGISTER_PROXYBUILDER_METHODS();
00026
00027 private:
00028 FWL1MuonParticleProxyBuilder( const FWL1MuonParticleProxyBuilder& );
00029 const FWL1MuonParticleProxyBuilder& operator=( const FWL1MuonParticleProxyBuilder& );
00030
00031 virtual void build( const l1extra::L1MuonParticle& iData, unsigned int iIndex, TEveElement& oItemHolder , const FWViewContext* );
00032 };
00033
00034 void
00035 FWL1MuonParticleProxyBuilder::build( const l1extra::L1MuonParticle& 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(FWL1MuonParticleProxyBuilder, l1extra::L1MuonParticle, "L1MuonParticle", FWViewType::kAllRPZBits);