CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWPhotonLegoProxyBuilder Class Reference

Inheritance diagram for FWPhotonLegoProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::Photon > FWSimpleProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWPhotonLegoProxyBuilder ()
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWPhotonLegoProxyBuilder ()

Private Member Functions

virtual void build (const reco::Photon &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 FWPhotonLegoProxyBuilder (const FWPhotonLegoProxyBuilder &)
const FWPhotonLegoProxyBuilderoperator= (const FWPhotonLegoProxyBuilder &)

Detailed Description

Definition at line 15 of file FWPhotonLegoProxyBuilder.cc.


Constructor & Destructor Documentation

FWPhotonLegoProxyBuilder::FWPhotonLegoProxyBuilder ( ) [inline]

Definition at line 18 of file FWPhotonLegoProxyBuilder.cc.

{}
virtual FWPhotonLegoProxyBuilder::~FWPhotonLegoProxyBuilder ( ) [inline, virtual]

Definition at line 19 of file FWPhotonLegoProxyBuilder.cc.

{}
FWPhotonLegoProxyBuilder::FWPhotonLegoProxyBuilder ( const FWPhotonLegoProxyBuilder ) [private]

Member Function Documentation

void FWPhotonLegoProxyBuilder::build ( const reco::Photon iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
) [private, virtual]

iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement

Reimplemented from FWSimpleProxyBuilderTemplate< reco::Photon >.

Definition at line 30 of file FWPhotonLegoProxyBuilder.cc.

References delta, reco::LeafCandidate::eta(), create_public_lumi_plots::marker, reco::LeafCandidate::phi(), and FWProxyBuilderBase::setupAddElement().

{
   TEveStraightLineSet *marker = new TEveStraightLineSet("marker");
   setupAddElement(marker, &oItemHolder);
 
   const double delta = 0.1;
   marker->AddLine(iData.eta()-delta, iData.phi()-delta, 0.1,
                   iData.eta()+delta, iData.phi()+delta, 0.1);
   marker->AddLine(iData.eta()-delta, iData.phi()+delta, 0.1,
                   iData.eta()+delta, iData.phi()-delta, 0.1);
}
const FWPhotonLegoProxyBuilder& FWPhotonLegoProxyBuilder::operator= ( const FWPhotonLegoProxyBuilder ) [private]
FWPhotonLegoProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )