File indexing completed on 2024-04-06 12:11:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
0014 #include "Fireworks/Core/interface/BuilderUtils.h"
0015
0016 #include "DataFormats/L1Trigger/interface/L1EmParticle.h"
0017
0018 class FWL1EmParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1EmParticle> {
0019 public:
0020 FWL1EmParticleProxyBuilder(void) {}
0021 ~FWL1EmParticleProxyBuilder(void) override {}
0022
0023 REGISTER_PROXYBUILDER_METHODS();
0024
0025 FWL1EmParticleProxyBuilder(const FWL1EmParticleProxyBuilder&) = delete;
0026 const FWL1EmParticleProxyBuilder& operator=(const FWL1EmParticleProxyBuilder&) = delete;
0027
0028 private:
0029 using FWSimpleProxyBuilderTemplate<l1extra::L1EmParticle>::build;
0030 void build(const l1extra::L1EmParticle& iData,
0031 unsigned int iIndex,
0032 TEveElement& oItemHolder,
0033 const FWViewContext*) override;
0034 };
0035
0036 void FWL1EmParticleProxyBuilder::build(const l1extra::L1EmParticle& iData,
0037 unsigned int iIndex,
0038 TEveElement& oItemHolder,
0039 const FWViewContext*) {
0040 double scale = 10;
0041
0042 fireworks::addDashedLine(iData.phi(), iData.theta(), iData.pt() * scale, &oItemHolder, this);
0043 }
0044
0045 REGISTER_FWPROXYBUILDER(FWL1EmParticleProxyBuilder, l1extra::L1EmParticle, "L1EmParticle", FWViewType::kAllRPZBits);