CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions

FWTracksRecHitsProxyBuilder Class Reference

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

List of all members.

Public Member Functions

 FWTracksRecHitsProxyBuilder (void)
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWTracksRecHitsProxyBuilder (void)

Static Public Member Functions

static bool representsSubPart (void)

Private Member Functions

void build (const reco::Track &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 FWTracksRecHitsProxyBuilder (const FWTracksRecHitsProxyBuilder &)
const FWTracksRecHitsProxyBuilderoperator= (const FWTracksRecHitsProxyBuilder &)

Detailed Description

Definition at line 18 of file FWTracksRecHitsProxyBuilder.cc.


Constructor & Destructor Documentation

FWTracksRecHitsProxyBuilder::FWTracksRecHitsProxyBuilder ( void  ) [inline]

Definition at line 21 of file FWTracksRecHitsProxyBuilder.cc.

{}
virtual FWTracksRecHitsProxyBuilder::~FWTracksRecHitsProxyBuilder ( void  ) [inline, virtual]

Definition at line 22 of file FWTracksRecHitsProxyBuilder.cc.

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

Member Function Documentation

void FWTracksRecHitsProxyBuilder::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 36 of file FWTracksRecHitsProxyBuilder.cc.

References fireworks::addSiStripClusters(), reco::Track::extra(), FWProxyBuilderBase::item(), fireworks::pushPixelHits(), and FWProxyBuilderBase::setupAddElement().

{
   if( track.extra().isAvailable() )
   {
      std::vector<TVector3> points;
      const FWEventItem &iItem = *item();
      fireworks::pushPixelHits( points, iItem, track );
    
      TEvePointSet* pointSet = new TEvePointSet();
      for( std::vector<TVector3>::const_iterator it = points.begin(), itEnd = points.end(); it != itEnd; ++it )
      {
         pointSet->SetNextPoint( it->x(), it->y(), it->z());
      }
      setupAddElement(pointSet, &oItemHolder);
      
      fireworks::addSiStripClusters( item(), track, &oItemHolder, false, true );
   }
}
const FWTracksRecHitsProxyBuilder& FWTracksRecHitsProxyBuilder::operator= ( const FWTracksRecHitsProxyBuilder ) [private]
FWTracksRecHitsProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )
bool FWTracksRecHitsProxyBuilder::representsSubPart ( void  ) [static]

Used by the plugin system to determine precidence of different proxy builders for same type this returns 'true' if the proxy builder is specialized to only show a sub-part of the object as opposed to showing the object as a whole

Reimplemented from FWProxyBuilderBase.

Definition at line 56 of file FWTracksRecHitsProxyBuilder.cc.

{
   return true;
}