Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:31

0001 #include "FWPFTrack3DProxyBuilder.h"
0002 
0003 //______________________________________________________________________________
0004 void FWPFTrack3DProxyBuilder::build(const reco::Track &iData,
0005                                     unsigned int iIndex,
0006                                     TEveElement &oItemHolder,
0007                                     const FWViewContext *vc) {
0008   FWPFTrackUtils *utils = new FWPFTrackUtils();
0009   TEveTrack *trk = utils->setupTrack(iData);
0010   TEvePointSet *ps = utils->getCollisionMarkers(trk);
0011   setupAddElement(trk, &oItemHolder);
0012   if (ps->GetN() != 0)
0013     setupAddElement(ps, &oItemHolder);
0014   else
0015     delete ps;
0016 
0017   delete utils;
0018 }
0019 
0020 //______________________________________________________________________________
0021 REGISTER_FWPROXYBUILDER(FWPFTrack3DProxyBuilder, reco::Track, "PF Tracks", FWViewType::k3DBit);