CMS 3D CMS Logo

FWL1EtMissParticleProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calo
4 // Class : FWL1EtMissParticleProxyBuilder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author:
10 // Created: Sun Jan 6 23:57:00 EST 2008
11 //
12 
15 
17 
18 class FWL1EtMissParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1EtMissParticle>
19 {
20 public:
22  ~FWL1EtMissParticleProxyBuilder( void ) override {}
23 
25 
26 private:
27  FWL1EtMissParticleProxyBuilder( const FWL1EtMissParticleProxyBuilder& ) = delete; // stop default
28  const FWL1EtMissParticleProxyBuilder& operator=( const FWL1EtMissParticleProxyBuilder& ) = delete; // stop default
29 
31  void build( const l1extra::L1EtMissParticle& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* ) override;
32 };
33 
34 void
35 FWL1EtMissParticleProxyBuilder::build( const l1extra::L1EtMissParticle& iData, unsigned int iIndex, TEveElement& oItemHolder , const FWViewContext* )
36 {
37  double scale = 10;
38 
39  fireworks::addDashedLine( iData.phi(), iData.theta(), iData.pt() * scale, &oItemHolder, this );
40 }
41 
const FWL1EtMissParticleProxyBuilder & operator=(const FWL1EtMissParticleProxyBuilder &)=delete
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
Definition: FWViewType.h:58
double theta() const final
momentum polar angle
double pt() const final
transverse momentum
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
double phi() const final
momentum azimuthal angle