File indexing completed on 2024-04-06 12:11:28
0001
0002
0003
0004
0005
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;
0022 const FWMETLegoProxyBuilder& operator=(const FWMETLegoProxyBuilder&) = delete;
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);