8 #include "TEveStraightLineSet.h"
37 TEveStraightLineSet *
marker =
new TEveStraightLineSet(
"marker");
48 const double delta = 0.1;
49 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi()-
delta, 0.1,
50 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi()+
delta, 0.1);
51 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi()+
delta, 0.1,
52 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi()-
delta, 0.1);
53 marker->AddLine(track->GetEndMomentum().Eta(), track->GetEndMomentum().Phi()-
delta, 0.1,
54 track->GetEndMomentum().Eta(), track->GetEndMomentum().Phi()+
delta, 0.1);
55 marker->AddLine(track->GetEndMomentum().Eta()-
delta, track->GetEndMomentum().Phi(), 0.1,
56 track->GetEndMomentum().Eta()+
delta, track->GetEndMomentum().Phi(), 0.1);
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual ~FWElectronLegoProxyBuilder()
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
TEveTrackPropagator * getTrackPropagator() const
const FWElectronLegoProxyBuilder & operator=(const FWElectronLegoProxyBuilder &)
FWElectronLegoProxyBuilder()
static const int kAllLegoBits
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
REGISTER_PROXYBUILDER_METHODS()
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack