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/L1Trigger/interface/L1JetParticle.h"
0013
0014 class FWL1JetParticleLegoProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1JetParticle> {
0015 public:
0016 FWL1JetParticleLegoProxyBuilder() {}
0017 ~FWL1JetParticleLegoProxyBuilder() override {}
0018
0019 REGISTER_PROXYBUILDER_METHODS();
0020
0021 FWL1JetParticleLegoProxyBuilder(const FWL1JetParticleLegoProxyBuilder&) = delete;
0022 const FWL1JetParticleLegoProxyBuilder& operator=(const FWL1JetParticleLegoProxyBuilder&) = delete;
0023
0024 private:
0025 using FWSimpleProxyBuilderTemplate<l1extra::L1JetParticle>::build;
0026 void build(const l1extra::L1JetParticle& iData,
0027 unsigned int iIndex,
0028 TEveElement& oItemHolder,
0029 const FWViewContext*) override;
0030 };
0031
0032 void FWL1JetParticleLegoProxyBuilder::build(const l1extra::L1JetParticle& iData,
0033 unsigned int iIndex,
0034 TEveElement& oItemHolder,
0035 const FWViewContext*) {
0036 fireworks::addCircle(iData.eta(), iData.phi(), 0.5, 6, &oItemHolder, this);
0037 }
0038
0039 REGISTER_FWPROXYBUILDER(FWL1JetParticleLegoProxyBuilder,
0040 l1extra::L1JetParticle,
0041 "L1JetParticle",
0042 FWViewType::kAllLegoBits);