Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:09:56

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