Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:09:56

0001 /*
0002  *  FWMETGlimpseProxyBuilder.cc
0003  *  FWorks
0004  *
0005  *  Created by Ianna Osborne on 9/3/10.
0006  *
0007  */
0008 
0009 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
0010 #include "Fireworks/Core/interface/BuilderUtils.h"
0011 
0012 #include "DataFormats/METReco/interface/MET.h"
0013 
0014 class FWMETGlimpseProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::MET> {
0015 public:
0016   FWMETGlimpseProxyBuilder(void) {}
0017   ~FWMETGlimpseProxyBuilder(void) override {}
0018 
0019   REGISTER_PROXYBUILDER_METHODS();
0020 
0021   FWMETGlimpseProxyBuilder(const FWMETGlimpseProxyBuilder&) = delete;                   // stop default
0022   const FWMETGlimpseProxyBuilder& operator=(const FWMETGlimpseProxyBuilder&) = delete;  // stop default
0023 
0024 private:
0025   using FWSimpleProxyBuilderTemplate<reco::MET>::build;
0026   void build(const reco::MET& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
0027 };
0028 
0029 void FWMETGlimpseProxyBuilder::build(const reco::MET& iData,
0030                                      unsigned int iIndex,
0031                                      TEveElement& oItemHolder,
0032                                      const FWViewContext*) {
0033   fireworks::addDashedArrow(iData.phi(), iData.et(), &oItemHolder, this);
0034 }
0035 
0036 REGISTER_FWPROXYBUILDER(FWMETGlimpseProxyBuilder, reco::MET, "recoMET", FWViewType::kGlimpseBit);