CMS 3D CMS Logo

FWPhotonLegoProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Muons
4 // Class : FWPhotonLegoProxyBuilder
5 //
6 //
7 
8 #include "TEveStraightLineSet.h"
9 
11 
13 
15 public:
18 
20 
23 
24 private:
26  void build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
27 };
28 
30  unsigned int iIndex,
31  TEveElement& oItemHolder,
32  const FWViewContext*) {
33  TEveStraightLineSet* marker = new TEveStraightLineSet("marker");
34  setupAddElement(marker, &oItemHolder);
35 
36  const double delta = 0.1;
37  marker->AddLine(iData.eta() - delta, iData.phi() - delta, 0.1, iData.eta() + delta, iData.phi() + delta, 0.1);
38  marker->AddLine(iData.eta() - delta, iData.phi() + delta, 0.1, iData.eta() + delta, iData.phi() - delta, 0.1);
39 }
40 
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static const int kAllLegoBits
Definition: FWViewType.h:69
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity
const FWPhotonLegoProxyBuilder & operator=(const FWPhotonLegoProxyBuilder &)=delete