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 // $Id: FWPhotonLegoProxyBuilder.cc,v 1.4 2010/12/01 11:41:36 amraktad Exp $
7 //
8 
9 #include "TEveStraightLineSet.h"
10 
12 
14 
16 {
17 public:
20 
22 
23 private:
26 
27  virtual void build(const reco::Photon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*);
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_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:61