CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWPFTrack3DProxyBuilder Class Reference

#include <FWPFTrack3DProxyBuilder.h>

Inheritance diagram for FWPFTrack3DProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::Track > FWSimpleProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWPFTrack3DProxyBuilder ()
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWPFTrack3DProxyBuilder ()

Private Member Functions

virtual void build (const reco::Track &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *vc)
 FWPFTrack3DProxyBuilder (const FWPFTrack3DProxyBuilder &)
const FWPFTrack3DProxyBuilderoperator= (const FWPFTrack3DProxyBuilder &)

Detailed Description

Definition at line 25 of file FWPFTrack3DProxyBuilder.h.


Constructor & Destructor Documentation

FWPFTrack3DProxyBuilder::FWPFTrack3DProxyBuilder ( ) [inline]

Definition at line 29 of file FWPFTrack3DProxyBuilder.h.

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

Definition at line 30 of file FWPFTrack3DProxyBuilder.h.

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

Member Function Documentation

void FWPFTrack3DProxyBuilder::build ( const reco::Track 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::Track >.

Definition at line 5 of file FWPFTrack3DProxyBuilder.cc.

References FWPFTrackUtils::getCollisionMarkers(), FWProxyBuilderBase::setupAddElement(), and FWPFTrackUtils::setupTrack().

{
   FWPFTrackUtils *utils = new FWPFTrackUtils();
   TEveTrack *trk = utils->setupTrack( iData );
   TEvePointSet *ps = utils->getCollisionMarkers( trk );
   setupAddElement( trk, &oItemHolder );
   if( ps->GetN() != 0 )
      setupAddElement( ps, &oItemHolder );
   else
      delete ps;

   delete utils; 
}
const FWPFTrack3DProxyBuilder& FWPFTrack3DProxyBuilder::operator= ( const FWPFTrack3DProxyBuilder ) [private]
FWPFTrack3DProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )