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 
26  virtual void build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
27 };
28 
29 void FWPhotonLegoProxyBuilder::build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*)
30 {
31  TEveStraightLineSet *marker = new TEveStraightLineSet("marker");
32  setupAddElement(marker, &oItemHolder);
33 
34  const double delta = 0.1;
35  marker->AddLine(iData.eta()-delta, iData.phi()-delta, 0.1,
36  iData.eta()+delta, iData.phi()+delta, 0.1);
37  marker->AddLine(iData.eta()-delta, iData.phi()+delta, 0.1,
38  iData.eta()+delta, iData.phi()-delta, 0.1);
39 }
40 
42 
43 
44 
dbl * delta
Definition: mlp_gen.cc:36
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWPhotonLegoProxyBuilder & operator=(const FWPhotonLegoProxyBuilder &)
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
static const int kAllLegoBits
Definition: FWViewType.h:60