CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Fireworks/Calo/plugins/FWJetLegoProxyBuilder.cc

Go to the documentation of this file.
00001 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00002 #include "DataFormats/JetReco/interface/Jet.h"
00003 #include "Fireworks/Core/interface/BuilderUtils.h"
00004 
00005 class FWJetLegoProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::Jet>
00006 {
00007 public:
00008    FWJetLegoProxyBuilder() {}
00009    virtual ~FWJetLegoProxyBuilder() {}
00010   
00011    REGISTER_PROXYBUILDER_METHODS();
00012 
00013 protected:
00014    virtual void build(const reco::Jet& iData, unsigned int iIndex, TEveElement& oItemHolder,
00015                       const FWViewContext*);
00016 
00017 private:
00018    FWJetLegoProxyBuilder( const FWJetLegoProxyBuilder& ); // stop default
00019    const FWJetLegoProxyBuilder& operator=( const FWJetLegoProxyBuilder& ); // stop default
00020 };
00021 
00022 void
00023 FWJetLegoProxyBuilder::build(const reco::Jet& iData, unsigned int iIndex, TEveElement& oItemHolder,
00024                              const FWViewContext*) 
00025 {
00026    fireworks::addCircle( iData.eta(), iData.phi(), 0.5, 20, &oItemHolder, this );
00027 }
00028 
00029 REGISTER_FWPROXYBUILDER( FWJetLegoProxyBuilder, reco::Jet, "Jets", FWViewType::kAllLegoBits | FWViewType::kLegoHFBit );