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