CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWBeamSpotProxyBuilder Class Reference

Inheritance diagram for FWBeamSpotProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::BeamSpot > FWSimpleProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWBeamSpotProxyBuilder (void)
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWBeamSpotProxyBuilder (void)

Private Member Functions

virtual void build (const reco::BeamSpot &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 FWBeamSpotProxyBuilder (const FWBeamSpotProxyBuilder &)
const FWBeamSpotProxyBuilderoperator= (const FWBeamSpotProxyBuilder &)

Detailed Description

Definition at line 15 of file FWBeamSpotProxyBuilder.cc.


Constructor & Destructor Documentation

FWBeamSpotProxyBuilder::FWBeamSpotProxyBuilder ( void  ) [inline]

Definition at line 18 of file FWBeamSpotProxyBuilder.cc.

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

Definition at line 19 of file FWBeamSpotProxyBuilder.cc.

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

Member Function Documentation

void FWBeamSpotProxyBuilder::build ( const reco::BeamSpot 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::BeamSpot >.

Definition at line 33 of file FWBeamSpotProxyBuilder.cc.

References pos, reco::BeamSpot::position(), and FWProxyBuilderBase::setupAddElement().

{
  const reco::BeamSpot::Point &pos =  iData.position();
  TEvePointSet* pointSet = new TEvePointSet;
  pointSet->SetMarkerSize(0.5);
  setupAddElement( pointSet, &oItemHolder );

  pointSet->SetNextPoint( pos.x(),  pos.y(),  pos.z()); 
}
const FWBeamSpotProxyBuilder& FWBeamSpotProxyBuilder::operator= ( const FWBeamSpotProxyBuilder ) [private]
FWBeamSpotProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )