Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:28

0001 /*
0002  *  FWL1JetParticleLegoProxyBuilder.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/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;                   // stop default
0022   const FWL1JetParticleLegoProxyBuilder& operator=(const FWL1JetParticleLegoProxyBuilder&) = delete;  // stop default
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);