CMS 3D CMS Logo

FWL1JetParticleProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calo
4 // Class : FWL1JetParticleProxyBuilder
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 FWL1JetParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<l1extra::L1JetParticle> {
19 public:
21  ~FWL1JetParticleProxyBuilder(void) override {}
22 
24 
25  FWL1JetParticleProxyBuilder(const FWL1JetParticleProxyBuilder&) = delete; // stop default
26  const FWL1JetParticleProxyBuilder& operator=(const FWL1JetParticleProxyBuilder&) = delete; // stop default
27 
28 private:
30  void build(const l1extra::L1JetParticle& iData,
31  unsigned int iIndex,
32  TEveElement& oItemHolder,
33  const FWViewContext*) override;
34 };
35 
37  unsigned int iIndex,
38  TEveElement& oItemHolder,
39  const FWViewContext*) {
40  double scale = 10;
41 
42  fireworks::addDashedLine(iData.phi(), iData.theta(), iData.pt() * scale, &oItemHolder, this);
43 }
44 
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
double pt() const final
transverse momentum
static const int kAllRPZBits
Definition: FWViewType.h:57
double theta() const final
momentum polar angle
void addDashedLine(double phi, double theta, double size, TEveElement *comp, FWProxyBuilderBase *pb)
const FWL1JetParticleProxyBuilder & operator=(const FWL1JetParticleProxyBuilder &)=delete
double phi() const final
momentum azimuthal angle