00001 #include "FWPFTrack3DProxyBuilder.h" 00002 00003 //______________________________________________________________________________ 00004 void 00005 FWPFTrack3DProxyBuilder::build( const reco::Track &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *vc ) 00006 { 00007 FWPFTrackUtils *utils = new FWPFTrackUtils(); 00008 TEveTrack *trk = utils->setupTrack( iData ); 00009 TEvePointSet *ps = utils->getCollisionMarkers( trk ); 00010 setupAddElement( trk, &oItemHolder ); 00011 if( ps->GetN() != 0 ) 00012 setupAddElement( ps, &oItemHolder ); 00013 else 00014 delete ps; 00015 00016 delete utils; 00017 } 00018 00019 //______________________________________________________________________________ 00020 REGISTER_FWPROXYBUILDER( FWPFTrack3DProxyBuilder, reco::Track, "PF Tracks", FWViewType::k3DBit );