test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
16 public:
19 
21 
22 private:
25 
27  virtual void build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
28 };
29 
30 void FWPhotonLegoProxyBuilder::build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*)
31 {
32  TEveStraightLineSet *marker = new TEveStraightLineSet("marker");
33  setupAddElement(marker, &oItemHolder);
34 
35  const double delta = 0.1;
36  marker->AddLine(iData.eta()-delta, iData.phi()-delta, 0.1,
37  iData.eta()+delta, iData.phi()+delta, 0.1);
38  marker->AddLine(iData.eta()-delta, iData.phi()+delta, 0.1,
39  iData.eta()+delta, iData.phi()-delta, 0.1);
40 }
41 
43 
44 
45 
dbl * delta
Definition: mlp_gen.cc:36
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
virtual double phi() const final
momentum azimuthal angle
const FWPhotonLegoProxyBuilder & operator=(const FWPhotonLegoProxyBuilder &)
static const int kAllLegoBits
Definition: FWViewType.h:60
virtual double eta() const final
momentum pseudorapidity