Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /*
0002  *  FWMETLegoProxyBuilder.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 FWMETLegoProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::MET> {
0015 public:
0016   FWMETLegoProxyBuilder(void) {}
0017   ~FWMETLegoProxyBuilder(void) override {}
0018 
0019   REGISTER_PROXYBUILDER_METHODS();
0020 
0021   FWMETLegoProxyBuilder(const FWMETLegoProxyBuilder&) = delete;                   // stop default
0022   const FWMETLegoProxyBuilder& operator=(const FWMETLegoProxyBuilder&) = 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 FWMETLegoProxyBuilder::build(const reco::MET& iData,
0030                                   unsigned int iIndex,
0031                                   TEveElement& oItemHolder,
0032                                   const FWViewContext*) {
0033   fireworks::addDoubleLines(iData.phi(), &oItemHolder, this);
0034 }
0035 
0036 REGISTER_FWPROXYBUILDER(FWMETLegoProxyBuilder, reco::MET, "recoMET", FWViewType::kAllLegoBits);