CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWElectronGlimpseProxyBuilder Class Reference

Inheritance diagram for FWElectronGlimpseProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::GsfElectron > FWSimpleProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWElectronGlimpseProxyBuilder ()
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWElectronGlimpseProxyBuilder ()

Private Member Functions

virtual void build (const reco::GsfElectron &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 FWElectronGlimpseProxyBuilder (const FWElectronGlimpseProxyBuilder &)
const
FWElectronGlimpseProxyBuilder
operator= (const FWElectronGlimpseProxyBuilder &)

Detailed Description

Definition at line 129 of file FWElectronProxyBuilder.cc.


Constructor & Destructor Documentation

FWElectronGlimpseProxyBuilder::FWElectronGlimpseProxyBuilder ( ) [inline]

Definition at line 131 of file FWElectronProxyBuilder.cc.

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

Definition at line 132 of file FWElectronProxyBuilder.cc.

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

Member Function Documentation

void FWElectronGlimpseProxyBuilder::build ( const reco::GsfElectron 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::GsfElectron >.

Definition at line 145 of file FWElectronProxyBuilder.cc.

References fireworks::addStraightLineSegment(), and FWProxyBuilderBase::setupAddElement().

{
   TEveScalableStraightLineSet* marker = new TEveScalableStraightLineSet("", "");
   marker->SetLineWidth(2);
   fireworks::addStraightLineSegment( marker, &iData, 1.0 );
   setupAddElement(marker, &oItemHolder);
   //add to scaler at end so that it can scale the line after all ends have been added
   // FIXME: It's not a part of a standard FWSimpleProxyBuilderTemplate: the scaler is not set!
//    assert(scaler());
//    scaler()->addElement(marker);
}
const FWElectronGlimpseProxyBuilder& FWElectronGlimpseProxyBuilder::operator= ( const FWElectronGlimpseProxyBuilder ) [private]
FWElectronGlimpseProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )