CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWPFCandidate3DProxyBuilder Class Reference

Inheritance diagram for FWPFCandidate3DProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::PFCandidate > FWSimpleProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWPFCandidate3DProxyBuilder ()
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWPFCandidate3DProxyBuilder ()

Private Member Functions

void build (const reco::PFCandidate &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 FWPFCandidate3DProxyBuilder (const FWPFCandidate3DProxyBuilder &)
const FWPFCandidate3DProxyBuilderoperator= (const FWPFCandidate3DProxyBuilder &)

Detailed Description

Definition at line 30 of file FWPFCandidate3DProxyBuilder.cc.


Constructor & Destructor Documentation

FWPFCandidate3DProxyBuilder::FWPFCandidate3DProxyBuilder ( ) [inline]

Definition at line 35 of file FWPFCandidate3DProxyBuilder.cc.

{}
FWPFCandidate3DProxyBuilder::~FWPFCandidate3DProxyBuilder ( ) [virtual]

Definition at line 53 of file FWPFCandidate3DProxyBuilder.cc.

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

Member Function Documentation

void FWPFCandidate3DProxyBuilder::build ( const reco::PFCandidate 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::PFCandidate >.

Definition at line 57 of file FWPFCandidate3DProxyBuilder.cc.

References reco::LeafCandidate::charge(), FWProxyBuilderBase::context(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), fireworks::setTrackTypePF(), FWProxyBuilderBase::setupAddElement(), matplotRender::t, and reco::PFCandidate::vertex().

{
  TEveRecTrack t;
  t.fBeta = 1.;
  t.fP = TEveVector( iData.px(), iData.py(), iData.pz() );
  t.fV = TEveVector( iData.vertex().x(), iData.vertex().y(), iData.vertex().z() );
  t.fSign = iData.charge();
  TEveTrack* trk = new TEveTrack(&t, context().getTrackPropagator() );

  trk->MakeTrack();

  fireworks::setTrackTypePF( iData, trk );
  setupAddElement( trk, &oItemHolder );
}
const FWPFCandidate3DProxyBuilder& FWPFCandidate3DProxyBuilder::operator= ( const FWPFCandidate3DProxyBuilder ) [private]
FWPFCandidate3DProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )