CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWPFTrack3DProxyBuilder.cc
Go to the documentation of this file.
2 
3 //______________________________________________________________________________
4 void
5 FWPFTrack3DProxyBuilder::build( const reco::Track &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *vc )
6 {
7  FWPFTrackUtils *utils = new FWPFTrackUtils();
8  TEveTrack *trk = utils->setupTrack( iData );
9  TEvePointSet *ps = utils->getCollisionMarkers( trk );
10  setupAddElement( trk, &oItemHolder );
11  if( ps->GetN() != 0 )
12  setupAddElement( ps, &oItemHolder );
13  else
14  delete ps;
15 
16  delete utils;
17 }
18 
19 //______________________________________________________________________________
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEvePointSet * getCollisionMarkers(const TEveTrack *)
TEveTrack * setupTrack(const reco::Track &)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const