Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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